From aa3e0c2c3e0101a195298af1f1c909beccf4f7ab Mon Sep 17 00:00:00 2001 From: xfnw Date: Sun, 6 Feb 2022 19:00:46 -0500 Subject: [PATCH] set NOCOMPRESS flag on /boot --- example/configure.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/example/configure.sh b/example/configure.sh index a147c05..5ac0168 100755 --- a/example/configure.sh +++ b/example/configure.sh @@ -46,5 +46,10 @@ step 'Creating authorized_keys for root' mkdir -p /root/.ssh/ echo "$SSHPUBKEY" >> /root/.ssh/authorized_keys - +# without this, the system will fail to boot on the next +# initramfs rebuild +if [ "$ROOTFS" = 'btrfs' ]; then + step 'Disabling compression on /boot' + btrfs property set /boot compression "" +fi