fosslinux / live-bootstrap

Use of a Linux initramfs to fully automate the bootstrapping process
291 stars 26 forks source link

Populate devices so kexec can read /proc/iomem. #410

Closed rick-masters closed 6 months ago

Googulator commented 6 months ago

I don't quite understand why this does anything at all, given that we run the same script a few steps earlier, but I guess it doesn't harm to re-run it, especially if it fixes something.

rick-masters commented 6 months ago

I don't quite understand why this does anything at all, given that we run the same script a few steps earlier, but I guess it doesn't harm to re-run it, especially if it fixes something.

When we run it earlier the mount command has not been built yet but after util-linux builds mount these commands will work in steps/improve/populate_device_nodes.sh:

if mount --version >/dev/null 2>&1; then
    test -d "/dev/shm" || (mkdir /dev/shm && mount -t tmpfs tmpfs /dev/shm)
    test -d "/proc" || (mkdir /proc && mount -t proc proc /proc)
fi