]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
base/init: do not set umask
authorHarald Hoyer <harald@redhat.com>
Wed, 17 Nov 2010 16:37:22 +0000 (17:37 +0100)
committerHarald Hoyer <harald@redhat.com>
Wed, 17 Nov 2010 16:37:22 +0000 (17:37 +0100)
somehow /dev/dri gets created with the wrong permissions
https://bugzilla.redhat.com/show_bug.cgi?id=626559

modules.d/99base/init

index ee67ae53f94a8fabc6e749d527fa49603381976b..1c695c2f7430f8e73fb25b6df219e438efc9ca28 100755 (executable)
@@ -66,9 +66,6 @@ export PATH=/sbin:/bin:/usr/sbin:/usr/bin
 NEWROOT="/sysroot"
 
 trap "emergency_shell Signal caught!" 0
-# set umask
-OLD_UMASK=$(umask)
-umask 0007
 
 RDDEBUG=""
 . /lib/dracut-lib.sh
@@ -326,7 +323,6 @@ info "Switching root"
 
 wait_for_loginit
 
-umask $OLD_UMASK
 export PATH="$OLD_PATH"
 
 exec /sbin/switch_root "$NEWROOT" "$INIT" $initargs || {