So I am working on making my first liveCD for my system.
I finally manage to make an iso file able to start grub. But the problem I have now is, after grub start, nothing is loaded.
I think obviously I miss configured something, but because I am not very use of making live CD, actually I can't find what is going wrong.
So basically, this is the hierarchy of my liveCD (these files are in a main directory called livecd-ism):
https://i.ibb.co/tw0s6CVJ/DIRS.png
My grub.cfg:
Code: Select all
set timeout=90
set default=0
set fallback=1
set pager=1
if loadfont /boot/grub/font.pf2 ; then
set gfxmode=auto
insmod efi_gop
insmod efi_uga
insmod gfxterm
insmod all_video
insmod videotest
insmod videoinfo
terminal_output gfxterm
fi
menuentry "Boot ISM LiveCD" {
set gfxpayload=keep
linux /boot/vmlinuz-linux-6.11.0 loop=/livecd-ism/livecd-ism.squashfs looptype=squashfs
initrd /boot/initramfs-6.11.0.img
}
Code: Select all
grub2-mkrescue -o livecd-ism-20250209.iso livecd-ism -V LiveCD-ISM-20250209The initramfs was generated with dracut via chroot like this:
Code: Select all
dracut -m "kernel-modules base" --force --kver=6.11.0 /boot/initramfs-6.11.0.imgCode: Select all
#hostonly="yes"
install_items+=" /lib/elogind/elogind-uaccess-command /usr/lib/libgcc_s.so.1 "
add_dracutmodules+=" kernel-modules base dmsquash-live "
The squashfs image was generated like this:
Code: Select all
mksquashfs /home/zohran/Downloads/files livecd-ism.squashfs -wildcards -ef /home/zohran/Downloads/exclude.txt -b 1024K -comp xz -progress -processors 16 -Xdict-size 100%exclude.txt:
Code: Select all
proc/*
sys/*
dev/*
run/*
boot/*
root/*
var/cache/edb/*
var/db/pkg/*
var/db/repos/local/*
tmp/ism/*
var/cache/distfiles/*
var/cache/binpkgs/*
var/log/*
var/tmp/*
usr/include/*
usr/src/*
etc/kernels/*
sources/*
And this is what happened after I passed the grub menu and try to load my livecd:
https://i.postimg.cc/xYWGDxnb/Screensho ... 131824.png
Let me know if you want me to upload the livecd files for you

