Change livecd-iso with chroot

Hi all,

My first post here :slight_smile:
I’ll hope i’m in the rigth spot/category …

I’m trying to change a livecd-iso but it won’t boot. It stops with messages about dracut. Later the complete messages.

I followed this video on youtube “watch?v=_LobCfU_uIY” (could use only 2 links as a new user ) … but with the latest Fedora livecd : Fedora-Workstation-Live-x86_64-34-1.2.iso

These are the steps I made allready.

sudo -i
cd /root
mkdir mnt
mkdir iso
mount -o loop Fedora-Workstation-Live-x86_64-34-1.2.iso ./mnt

cp -rfp ./mnt/* iso/.
cd iso/LiveOS
unsquashfs squashfs.img					
cd squashfs-root/LiveOS/
mkdir rootfs

mount -o loop rootfs.img rootfs
chroot rootfs

# In "host" OS : 
sudo cp /etc/resolv.conf /root/tmp/iso/LiveOS/squashfs-root/LiveOS/rootfs/etc/resolv.conf

dnf remove libreoffice-core      (otherwise there isn't enough room)
dnf update -y

# All went well .....

exit         # out of chroot 

umount rootfs
rm -rf rootfs
cd ../..

rm squashfs.img
mksquashfs squashfs-root/ squashfs.img -noappend -always-use-fragments

rm -rf squashfs-root/
cd ..

#    Now create new iso : 

mkisofs -o /media/custom_iso.iso \
	-b isolinux/isolinux.bin \
	-c isolinux/ \
	--no-emul-boot \
	--boot-load-size 4 \
	--boot-info-table \
	-R -J -v -T -V "Fedora-Workstation-Live-x86_64-34-1.2" .

This results in : genisoimage: Volume ID string too long

Because of this i came at : Custom Bootable ISO from RHEL 7.1 - Red Hat Customer Portal

Which say’s that the name is too long and has to be like " inst.stage2= parameter in isolinux.cfg"
This inst.stage2 isn’t in isolinux.cfg but there are names like : " Fedora-WS-Live-34-1-2" which i used.
And that works (only because its not longer than 32 characters i think ).

Run qemu :
qemu-system-x86_64 -boot d -cdrom /media/custom_iso.iso -m 512

This takes time ( 7 year old laptop ).

Result is dracut problems …

I even tried without dnf update but makes no difference.

Please anybody … point me to the rigth direction … :slight_smile: .

1 Like

I am not sure what you are actually trying to do.

Are you trying to install fedora?
Are you trying to make a different bootable iso?
Are you thinking that copying the content of the install media will give you a bootable system?

First, that iso you have is already a bootable image, and if you use dd or rufus to put it on a usb stick you will have a bootable usb. It then can be used to either run as a live image or do an install.

Secondly, there is a tool called ventoy that can be put onto a usb then the iso you have can be directly copied onto that usb and will be bootable using ventoy.

Tell us in a little more detail the goal instead of just the already failed steps so we know how to proceed.

About dracut, did you see that?

Please put your terminal commands in pre-formatted text </> (see top bar). Your topic gets shorter and the formatted text is scroll-able.

About making a own boot-able Live-cd, there is a whole topic about it. There it explains also how you have to rebrand it , if you want to use it for your clients for example.

1 Like

Ah that one i did not see yet … i’ll look into that.

You mean this one : ?

1 Like