Commit 7f49675b authored by Sven-Hendrik Haase's avatar Sven-Hendrik Haase
Browse files

Merge branch 'cp-reflink' into 'master'

Use --reflink=always when copying the fallback initramfs

See merge request archlinux/arch-boxes!159
parents 05c8cd6e c97486b2
Pipeline #5006 passed with stages
in 30 minutes and 29 seconds
...@@ -92,7 +92,7 @@ function image_cleanup() { ...@@ -92,7 +92,7 @@ function image_cleanup() {
# So for the initial install we use the fallback initramfs, and # So for the initial install we use the fallback initramfs, and
# "autodetect" should add the relevant modules to the initramfs when # "autodetect" should add the relevant modules to the initramfs when
# the user updates the kernel. # 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" sync -f "${MOUNT}/etc/os-release"
fstrim --verbose "${MOUNT}" fstrim --verbose "${MOUNT}"
......
Supports Markdown
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