Commit c97486b2 authored by Kristian Klausen's avatar Kristian Klausen 🎉
Browse files

Use --reflink=always when copying the fallback initramfs

It saves us ~20MB.
parent 05c8cd6e
......@@ -92,7 +92,7 @@ function image_cleanup() {
# So for the initial install we use the fallback initramfs, and
# "autodetect" should add the relevant modules to the initramfs when
# the user updates the kernel.
cp -a "${MOUNT}/boot/"{initramfs-linux-fallback.img,initramfs-linux.img}
cp --reflink=always -a "${MOUNT}/boot/"{initramfs-linux-fallback.img,initramfs-linux.img}
sync -f "${MOUNT}/etc/os-release"
fstrim --verbose "${MOUNT}"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment