From: Harald Hoyer Date: Mon, 2 Aug 2010 09:28:16 +0000 (+0200) Subject: init: set old umask before switch_root X-Git-Tag: 007~44 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=db3641a2ea227aca6d7fdcafd04e8e082da93b3f;p=thirdparty%2Fdracut.git init: set old umask before switch_root --- diff --git a/modules.d/99base/init b/modules.d/99base/init index 8938dfb6a..604eee6b6 100755 --- a/modules.d/99base/init +++ b/modules.d/99base/init @@ -63,6 +63,7 @@ NEWROOT="/sysroot" trap "emergency_shell Signal caught!" 0 # set umask +OLD_UMASK=$(umask) umask 0007 RDDEBUG="" @@ -312,6 +313,8 @@ info "Switching root" wait_for_loginit +umask $OLD_UMASK + exec switch_root "$NEWROOT" "$INIT" $initargs || { echo "Something went very badly wrong in the initramfs. Please " echo "file a bug against dracut."