Commit 00075f86 authored by juadde's avatar juadde
Browse files

Add a workaround for fstrim command not working in some FS

parent 5ca90361
Pipeline #8269 passed with stages
in 24 minutes and 3 seconds
......@@ -97,7 +97,9 @@ function image_cleanup() {
cp --reflink=always -a "${MOUNT}/boot/"{initramfs-linux-fallback.img,initramfs-linux.img}
sync -f "${MOUNT}/etc/os-release"
fstrim --verbose "${MOUNT}"
# || true to workaround unsupported discard operation on some filesystem
fstrim --verbose "${MOUNT}" || true
# Helper function: wait until a given loop device has settled
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