umts / bib-buildroot

Buildroot recipes for BusInfoBoard kiosks
0 stars 0 forks source link

Switch LiveCD to isolinux #11

Closed werebus closed 7 years ago

werebus commented 7 years ago

Rather than "Grub legacy". ISOLinux (syslinux) despite seeming older is actually still actively developed. Might be worth switching bootloaders.

werebus commented 7 years ago

syslinux can also build a "Hybrid image" which could be used as a live USB.

werebus commented 7 years ago

isolinux works great, and doesn't require any customization of the boot menu like Grub does. However, I ran into a little difficulty with the "hybrid image". It boots fine, but the kernel command line is hard-coded to have root=/dev/sr0 in it, which doesn't work if root is actually /dev/sda1 e.g.

You can get around this by using an initramfs, but I don't want the entire system in memory for no reason. It does work, but seems like the wrong solution here.

I'm thinking I might be able to make a small initramfs by leveraging the tools Buildroot uses, but only selecting a small subset of the files. It appears to be the case that an initramfs only technically needs /dev/console and /init in it. Perhaps it's as simple as redefining ROOTFS_CPIO_CMD? to only put some of the target dir into it?

Possible useful reference: https://wiki.gentoo.org/wiki/Custom_Initramfs

werebus commented 7 years ago

Done in 1399a1adbae07070968e7db3c6231b1225672e2a...45f49a23962b8c3dd6f14b7fed22948eee25510f