# HG changeset patch # User Pascal Bellard # Date 1438521208 -7200 # Node ID 1542a6f14faed450d2ea5f064c2c3b2e60bee443 # Parent 1f15d8a06ea9a69b06e61b42437099b244df2fcb init: create missing block devices diff -r 1f15d8a06ea9 -r 1542a6f14fae init --- a/init Sun Aug 02 11:03:52 2015 +0200 +++ b/init Sun Aug 02 15:13:28 2015 +0200 @@ -13,7 +13,7 @@ # rootfssize= [RAMDISK] # size of / regarding the RAM size, default 90% # rootfsinodes= [RAMDISK] -# files count of / regarding the RAM size, 0 (unlimited) +# files count of / regarding the RAM size, default 0 (unlimited) # ### Indirect mode ; an initramfs is used to mount root from the hard disk. ### Any rootfs should fit, minimum required is slitaz-base. @@ -166,6 +166,10 @@ busybox mount -t proc proc /proc busybox mount -t sysfs sys /sys busybox mount -t tmpfs tmpfs /run + for i in /sys/block/*/dev /sys/block/*/*/dev ; do + n=/dev/$(basename ${i%/dev}) + [ -e $n ] || mknod $n b $(sed 's/:/ /' < $i) + done x=/sbin/init; echo "[ -x $x ] && exec $x" >/run/init $0 log 2>&1 | tee /run/boot.log busybox umount /proc