diff options
-rw-r--r-- | .gitignore | 2 | ||||
-rwxr-xr-x | bootstrap | 7 |
2 files changed, 6 insertions, 3 deletions
@@ -1,4 +1,4 @@ -*.cpio.gz +*.cpio.xz buildos-buildid-* buildos-initrd-* buildos-image-* @@ -652,6 +652,9 @@ if [ "$stage" -le "5" ]; then # Quite a few files/directories are only accessible by root (e.g., /root) so # we run under sudo. # + # Note also that without --check=crc32 the kernel will not be able to + # decompress things. + # root_dirs="build dev etc mnt root usr var" root_links="bin sbin lib lib32 lib64" @@ -660,7 +663,7 @@ if [ "$stage" -le "5" ]; then cd "$root" sudo find $root_dirs $root_links -print0 | \ sudo cpio --null -o -H newc | \ - xz -9 > "$owd/buildos-rootfs.cpio.xz" + xz -9 --check=crc32 >"$owd/buildos-rootfs.cpio.xz" cd "$owd" subvol_snapshot -r "$root" "$root-5" @@ -691,7 +694,7 @@ if [ "$stage" -le "6" ]; then cd "$root" sudo cpio -o -H newc <<EOF | \ - xz -9 > "$owd/buildos-init.cpio.xz" + xz -9 --check=crc32 >"$owd/buildos-init.cpio.xz" usr/lib/os-release init usr/sbin/buildos |