]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
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 83085028cecc270853b78a5d54b57ac43d7106da..fa5499741c406808074762f3debcd9232a505928 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