summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2014-06-04 16:06:29 +0000
committerRichard Maw <richard.maw@codethink.co.uk>2014-06-06 13:32:11 +0000
commit06b97e8741b6cc5a4149bbafbaabea997b420c39 (patch)
tree104f2ae7c95ddfb0c4841ee9820905cc7328786f
parente0d7338382ce69156de0514525ab3935971fcf85 (diff)
downloadmorph-06b97e8741b6cc5a4149bbafbaabea997b420c39.tar.gz
initramfs.write: create parent directories of location
-rwxr-xr-xmorphlib/exts/initramfs.write4
1 files changed, 2 insertions, 2 deletions
diff --git a/morphlib/exts/initramfs.write b/morphlib/exts/initramfs.write
index 815772f2..f8af6d84 100755
--- a/morphlib/exts/initramfs.write
+++ b/morphlib/exts/initramfs.write
@@ -23,5 +23,5 @@ INITRAMFS_PATH="$2"
(cd "$ROOTDIR" &&
find . -print0 |
- cpio -0 -H newc -o |
- gzip -c) >"$INITRAMFS_PATH"
+ cpio -0 -H newc -o) |
+ gzip -c | install -D -m644 /dev/stdin "$INITRAMFS_PATH"