slitaz-boot-scripts rev 406

init: fix mnt (thanks az_ua & aleksej)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Aug 01 15:08:42 2015 +0200 (2015-08-01)
parents 40d7ae9259a9
children 1f15d8a06ea9
files init
line diff
     1.1 --- a/init	Sat Aug 01 11:05:18 2015 +0200
     1.2 +++ b/init	Sat Aug 01 15:08:42 2015 +0200
     1.3 @@ -89,7 +89,7 @@
     1.4  
     1.5  mnt()
     1.6  {
     1.7 -r=$(blkid 2> /dev/null | sed "s|\"||g;/$root/!d;s|:.*||;q")
     1.8 +r=$(blkid 2> /dev/null | sed "s|\"||g;/$(echo $root | tr / .)/!d;s|:.*||;q")
     1.9  r=${r:-$root}
    1.10  r=${r#/dev/}
    1.11  r=/dev/${r%%/*}