]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dracut.sh: add early_cpio marker file to the early cpio
authorHarald Hoyer <harald@redhat.com>
Fri, 24 Jan 2014 14:29:24 +0000 (15:29 +0100)
committerHarald Hoyer <harald@redhat.com>
Fri, 24 Jan 2014 14:29:24 +0000 (15:29 +0100)
dracut.sh

index 0970710661b14e67dfcd967cd8c829628c7d7d01..9b715abfbbe4c017006683369b1ae12c65fbbc89 100755 (executable)
--- a/dracut.sh
+++ b/dracut.sh
@@ -1463,6 +1463,7 @@ fi
 rm -f -- "$outfile"
 dinfo "*** Creating image file ***"
 if [[ $create_early_cpio = yes ]]; then
+    echo 1 > "$early_cpio_dir/d/early_cpio"
     # The microcode blob is _before_ the initramfs blob, not after
     (cd "$early_cpio_dir/d";     find . -print0 | cpio --null -R 0:0 -H newc -o --quiet >../early.cpio)
     mv $early_cpio_dir/early.cpio $outfile.$$