]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
initramfs-framework/setup-live: also boot live image if root=/dev/ram0
authorCalifornia Sullivan <california.l.sullivan@intel.com>
Thu, 17 Aug 2017 22:47:30 +0000 (15:47 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 19 Aug 2017 08:19:12 +0000 (09:19 +0100)
commita30f8f60017d566d845ee5d3a8cfc338017211b0
tree2d02a74e2af342d38a768a6f7d4eda7b79d519d2
parent5585103c195104e85ed7ac1455bef91b2e88a04d
initramfs-framework/setup-live: also boot live image if root=/dev/ram0

Our grub and syslinux bootloaders both define root=/dev/ram0 for live
images by default. Kernel docs show that root=/dev/ram0 is just a
sentinel value for the kernel to mount the initrd as root, which then
mounts and switches to the real root. This is exactly what our scripts
do, so just check for root=/dev/ram0 as well.

See: https://www.kernel.org/doc/html/v4.11/admin-guide/initrd.html#operation

This fixes the issue where the new initramfs-framework scripts would not
boot live images that use grub or syslinux bootloaders.

Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/initrdscripts/initramfs-framework/setup-live