File: roimage

package info (click to toggle)
dracut 020-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 2,536 kB
  • sloc: sh: 11,827; ansic: 1,960; makefile: 183; python: 165; perl: 55
file content (15 lines) | stat: -rw-r--r-- 586 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Index: dracut-020/dracut.sh
===================================================================
--- dracut-020.orig/dracut.sh	2012-06-29 12:54:38.000000000 +0200
+++ dracut-020/dracut.sh	2012-11-04 18:47:30.000000000 +0100
@@ -887,8 +887,9 @@
     dinfo "*** hardlinking files done ***"
 }

+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