commit: 763cacbdaf0f0ea7eb3f5fe732513098cf2abe32
parent 69459b11082d876c0fcd7d26765dd0c92312feda
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Sun, 20 Apr 2025 08:41:07 +0200
make-initrd: output *.img instead of *.cpio.xz
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/make-initrd.sh b/make-initrd.sh
@@ -65,9 +65,9 @@ for lib in $(find bin -type f -exec lddtree -l {} + | grep -v bin/ | sort | uniq
cp "$lib" lib/ || die
done
-if find . -print0 | cpio --null -ov --format=newc | xz -9 --check=crc32 > "../${out_base}.cpio.xz"; then
- test -e "/boot/${out_base}.cpio.xz" && mv "/boot/${out_base}.cpio.xz" "/boot/${out_base}.cpio.xz.old"
- cp "../${out_base}.cpio.xz" /boot
+if find . -print0 | cpio --null -ov --format=newc | xz -9 --check=crc32 > "../${out_base}.img"; then
+ test -e "/boot/${out_base}.img" && mv "/boot/${out_base}.img" "/boot/${out_base}.img.old"
+ cp "../${out_base}.img" /boot
fi
cd "${WORKDIR}"