View previous topic :: View next topic |
Author |
Message |
Fulgurance Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/14669969405a12bd7a28944.jpg)
Joined: 15 Feb 2017 Posts: 1253
|
Posted: Mon Feb 10, 2025 1:36 pm Post subject: Custom liveCD don't boot my project (ISM) |
|
|
Hi guys, as some knows, I am working actually on my distribution. Almost everything work fine now.
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: | 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
}
|
The liveCD was generated like this:
Code: | grub2-mkrescue -o livecd-ism-20250209.iso livecd-ism -V LiveCD-ISM-20250209 |
The initramfs was generated with dracut via chroot like this:
Code: | dracut -m "kernel-modules base" --force --kver=6.11.0 /boot/initramfs-6.11.0.img |
dracut.conf:
Code: | #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: | 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: | 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/*
|
If I can get a bit of your expertise I will appreciate a lot !
And this is what happened after I passed the grub menu and try to load my livecd:
https://i.postimg.cc/xYWGDxnb/Screenshot-20250210-131824.png
Let me know if you want me to upload the livecd files for you _________________ My actual project: https://github.com/Fulgurance/ISM
Ingenius Software Manager is a tool to build and manage a Linux system from scratch.
It will able to manage a linux installation just with a given path to the futur root path |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Fulgurance Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/14669969405a12bd7a28944.jpg)
Joined: 15 Feb 2017 Posts: 1253
|
Posted: Mon Feb 10, 2025 5:21 pm Post subject: |
|
|
I investigated this afternoon, and I replaced my kernel image by the gentoo livecd kernel image, and it booted.
So I guess the way I generate my kernel is wrong ?
Because I generated it like this:
Code: | make allmodconfig && make modules_prepare && make && make modules_install && make install |
Nothing should be build as module maybe ? _________________ My actual project: https://github.com/Fulgurance/ISM
Ingenius Software Manager is a tool to build and manage a Linux system from scratch.
It will able to manage a linux installation just with a given path to the futur root path |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Fulgurance Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/14669969405a12bd7a28944.jpg)
Joined: 15 Feb 2017 Posts: 1253
|
Posted: Wed Feb 12, 2025 11:24 am Post subject: |
|
|
No idea ?
Just to update you, if I use the gentoo kernel instead from the gentoo livecd, my system can boot from the liveCD, so I think the problem is the kernel I generated, but why ? _________________ My actual project: https://github.com/Fulgurance/ISM
Ingenius Software Manager is a tool to build and manage a Linux system from scratch.
It will able to manage a linux installation just with a given path to the futur root path |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
pietinger Moderator
![Moderator Moderator](/images/ranks/rank-mod.gif)
Joined: 17 Oct 2006 Posts: 5400 Location: Bavaria
|
Posted: Wed Feb 12, 2025 1:21 pm Post subject: |
|
|
To answer this question, you would have to examine the initramfs. Why?
You surely know the difference between a kernel WITH initramfs and a kernel WITHOUT initramfs:
A kernel WITHOUT initramfs requires all modules necessary to access the root partition as built-in, so that the kernel itself can mount the root partition. Only then can kernel modules be loaded from the root FS.
A kernel WITH initramfs does not mount the root partition. This is now the task of the initramfs. But first the initramfs must load all kernel modules that are necessary to access the root partition. Should the initramfs NOT (be able to) load some modules, then these must be built-in in the kernel.
The following applies to a LiveCD: It must be able to access a CD-ROM and also offer a SqashFS. It could be that the standard initramfs does not load these modules and therefore in the kernel of our LiveCD some modules are configured as built-in in the kernel.
But I can't answer that for sure, because I don't know the config of your initramfs, nor the config of the live kernel. _________________ https://wiki.gentoo.org/wiki/User:Pietinger |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Fulgurance Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/14669969405a12bd7a28944.jpg)
Joined: 15 Feb 2017 Posts: 1253
|
Posted: Wed Feb 12, 2025 7:11 pm Post subject: |
|
|
So during the time you answered, I partially solved the problem, the issue with the kernel was because of the kernel configuration. So I just copy pasted the config file from the gentoo livecd and I regenerate my kernel. It's fine now.
And as you predicted, now I have to deal with my initramfs.
I will come back _________________ My actual project: https://github.com/Fulgurance/ISM
Ingenius Software Manager is a tool to build and manage a Linux system from scratch.
It will able to manage a linux installation just with a given path to the futur root path |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|