summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2017-04-14 10:44:30 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2017-04-14 10:44:30 +0000
commite244f655f05a60d426235773f496bded4622fc8c (patch)
tree0668e056fea20010b6d385544aeecadfafd9eff3
parent6e81bdc57790eb0816777711c4b4eda97076b5f1 (diff)
downloadalpine-conf-e244f655f05a60d426235773f496bded4622fc8c.zip
setup-disk: disable 64bit ext4 on /boot
pv-grub does not support 64bit in ext4. We will likely never need a 16T boot partition so let us just disable 64bit for /boot. ref #6962
-rw-r--r--setup-disk.in5
1 files changed, 4 insertions, 1 deletions
diff --git a/setup-disk.in b/setup-disk.in
index d5ffc4b..92627d9 100644
--- a/setup-disk.in
+++ b/setup-disk.in
@@ -555,7 +555,10 @@ setup_boot_dev() {
--metadata=0.90 --quiet --run $@ $missing || return 1
bootdev=/dev/md0
fi
- [ "$BOOTFS" = "btrfs" ] && mkfs_args=""
+ case "$BOOTFS" in
+ btrfs) mkfs_args="";;
+ ext4) mkfs_args="$mkfs_args -O ^64bit";; # pv-grub does not support 64bit
+ esac
mkfs.$BOOTFS $MKFS_OPTS_BOOT $mkfs_args $bootdev
BOOT_DEV="$bootdev"
}