base/init: mkdir $NEWROOT, if it does not exist
authorHarald Hoyer <harald@redhat.com>
Thu, 19 May 2011 21:26:06 +0000 (23:26 +0200)
committerHarald Hoyer <harald@redhat.com>
Fri, 20 May 2011 13:17:32 +0000 (15:17 +0200)
modules.d/99base/init

index 8308502..fa54997 100755 (executable)
@@ -65,6 +65,7 @@ emergency_shell()
 }
 
 NEWROOT="/sysroot"
+[ -d $NEWROOT ] || mkdir -p -m 0755 $NEWROOT
 
 trap "emergency_shell Signal caught!" 0
 OLDPATH=$PATH