chore: reduce xz compression level of initramfs (#252)

This commit is contained in:
Andrew Rynhard 2018-12-01 19:35:57 -08:00 committed by GitHub
parent 678951b2c1
commit 090eb78f69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -146,11 +146,7 @@ tasks:
template: | template: |
WORKDIR /initramfs WORKDIR /initramfs
RUN cp -R {{ index .Variables "rootfs" }}/* ./ RUN cp -R {{ index .Variables "rootfs" }}/* ./
{{ if .Git.IsClean }}
RUN find . 2>/dev/null | cpio -H newc -o | xz -v -C crc32 -9 -e -T 0 -z >/tmp/initramfs.xz
{{ else }}
RUN find . 2>/dev/null | cpio -H newc -o | xz -v -C crc32 -0 -e -T 0 -z >/tmp/initramfs.xz RUN find . 2>/dev/null | cpio -H newc -o | xz -v -C crc32 -0 -e -T 0 -z >/tmp/initramfs.xz
{{ end }}
RUN cp /tmp/initramfs.xz . RUN cp /tmp/initramfs.xz .
osctl: osctl:
template: | template: |