summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmkinitcpio2
1 files changed, 1 insertions, 1 deletions
diff --git a/mkinitcpio b/mkinitcpio
index 01fe8ba..d2d7ea8 100755
--- a/mkinitcpio
+++ b/mkinitcpio
@@ -222,7 +222,7 @@ build_image() {
fi
pushd "$BUILDROOT" >/dev/null
- find . -print0 |
+ find -mindepth 1 -printf '%P\0' |
LANG=C bsdcpio "${cpio_opts[@]}" |
$compress $COMPRESSION_OPTIONS > "$out"
pipesave=("${PIPESTATUS[@]}") # save immediately