Permalink
Browse files

dracut.sh: create the initramfs non-world readable

  • Loading branch information...
1 parent 194e074 commit e1b48995c26c4f06d1a718539cb1bd5b0179af91 @haraldh committed Sep 27, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 dracut.sh
View
@@ -1033,8 +1033,9 @@ if [[ $do_hardlink = yes ]] ; then
}
fi
+rm -f "$outfile"
dinfo "*** Creating image file ***"
-if ! ( cd "$initdir"; find . |cpio -R 0:0 -H newc -o --quiet| \
+if ! ( umask 077; cd "$initdir"; find . |cpio -R 0:0 -H newc -o --quiet| \
$compress > "$outfile"; ); then
dfatal "dracut: creation of $outfile failed"
exit 1

0 comments on commit e1b4899

Please sign in to comment.