I'm looking for a way to boot an existing linux kernel without an initramfs. According to this link it should be possible simply by editing /boot/grub2/grub.cfg
. But if I try this config
menuentry 'Fedora Linux, no initramfs' {
set root='hd0,msdos1'
linux /vmlinuz-3.3.4-5.fc17.i686.PAE rootfstype=ext4 root=/dev/sda2 rd.md=0 rd.lvm=0 rd.dm=0 SYSFONT=True KEYTABLE=us rd.luks=0 LANG=en_US.UTF-8
}
the boot process stops with a kernel panic at the point where the kernel tries to mount the initramfs. Do I have to tell during compile process that I don't want an initramfs? The only config option I found is CONFIG_INITRAMFS_SOURCE
which is already set to CONFIG_INITRAMFS_SOURCE=""
.
I know there is a similar question but it lacks an explanation how to do it in practice.