# HG changeset patch # User Pascal Bellard # Date 1440678754 -7200 # Node ID 4321dbbe16c7468ae0fba9b7eea7f9defcba4686 # Parent f9871e7a85b468294dba39cc856b029632f458a6 init: partitonless support diff -r f9871e7a85b4 -r 4321dbbe16c7 init --- a/init Wed Aug 26 19:01:52 2015 +0200 +++ b/init Thu Aug 27 14:32:34 2015 +0200 @@ -91,7 +91,7 @@ mnt() { -r=$(busybox blkid 2> /dev/null | sed "s|\"||g;/$(echo $root | sed 's|/|.|g')/!d;s|:.*||;q") +r=$(busybox blkid 2> /dev/null | sed "s|\"||g;/${root//[^a-zA-Z0-9]/.}/!d;s|:.*||;q") r=${r:-$root} if [ ! -b $r ]; then r=${r#/dev/} @@ -177,6 +177,7 @@ sh fi for i in /sys/block/*/dev /sys/block/*/*/dev ; do + [ -s "$i" ] || continue n=${i%/dev} n=/dev/${n##*/} [ -e $n ] && continue