From 514d5f1fa641b0bfc66d43f4c0c7e7830f747899 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Sun, 7 Dec 2014 10:18:58 -0500 Subject: mkinitcpio avoiding adding a CPIO entry for '.' The archive goes from looking like this: . ./buildconfig ./config ./init ./init_functions ./VERSION ./lib64 ./sbin To: buildconfig config init init_functions VERSION lib64 sbin Note the lack of the "root" entry and leading "./". This fixes an issue with packing ucode into the initramfs since the kernel really wants an exact match, and not path equivalency. --- mkinitcpio | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3-24-g4f1b