# HG changeset patch # User Pascal Bellard # Date 1345996906 -7200 # Node ID 11c525ec4906e7f304af7cf99ef1fd950af3e8a5 # Parent afd4941fd37696233da651f40da490b970963164 init: fix suboot diff -r afd4941fd376 -r 11c525ec4906 init --- a/init Sun Aug 26 15:09:53 2012 +0200 +++ b/init Sun Aug 26 18:01:46 2012 +0200 @@ -8,7 +8,7 @@ quit() { [ -d /mnt$4/etc ] || return -mount /mnt -o remount,ro +[ -n "$4" ] || mount /mnt -o remount,ro mount --move /run /mnt/${1:-run} cat>/run/init< \(/lib/l[^ ]*\).*|\1|;/^\//!d') /usr/sbin/chroot /run r=$root/run quit $r "export LD_LIBRARY_PATH=$r:/lib"\ - "$(cd /mnt; ls $r/ld-*) $r/chroot $root" "/$root" + "$root$(ls /run/ld-*) $r/chroot $root" "/$root" fi msg tmpfs root=100