projects
/
platform
/
upstream
/
dracut.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
194e074
)
dracut.sh: create the initramfs non-world readable
author
Harald Hoyer
<harald@redhat.com>
Thu, 27 Sep 2012 08:18:29 +0000
(10:18 +0200)
committer
Harald Hoyer
<harald@redhat.com>
Thu, 27 Sep 2012 08:18:29 +0000
(10:18 +0200)
dracut.sh
patch
|
blob
|
history
diff --git
a/dracut.sh
b/dracut.sh
index
7148d0f
..
96faa06
100755
(executable)
--- a/
dracut.sh
+++ b/
dracut.sh
@@
-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