From ccdd35543385d75ab5c5da6cab6d6ed4ceb10ecb Mon Sep 17 00:00:00 2001 From: Daniel Hansson Date: Sun, 15 Dec 2024 01:44:23 +0100 Subject: [PATCH] only on efi Signed-off-by: Daniel Hansson --- disk/format-chosen.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/disk/format-chosen.sh b/disk/format-chosen.sh index f92841fb27..212a192c89 100644 --- a/disk/format-chosen.sh +++ b/disk/format-chosen.sh @@ -183,7 +183,11 @@ then check_command zfs set atime=off "$POOLNAME" check_command zfs set recordsize=128k "$POOLNAME" check_command zfs set logbias=latency "$POOLNAME" - check_command zfs set dnodesize=auto "$POOLNAME" + if [ -d /sys/firmware/efi ] + then + # dnodesize can't boot on BIOS, only UEFI mode + check_command zfs set dnodesize=auto "$POOLNAME" + fi else msg_box "It seems like /dev/$DEVTYPE does not exist.