Skip to content

Commit ccdd355

Browse files
authored
only on efi
Signed-off-by: Daniel Hansson <[email protected]>
1 parent 7c52571 commit ccdd355

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Diff for: disk/format-chosen.sh

+5-1
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,11 @@ then
183183
check_command zfs set atime=off "$POOLNAME"
184184
check_command zfs set recordsize=128k "$POOLNAME"
185185
check_command zfs set logbias=latency "$POOLNAME"
186-
check_command zfs set dnodesize=auto "$POOLNAME"
186+
if [ -d /sys/firmware/efi ]
187+
then
188+
# dnodesize can't boot on BIOS, only UEFI mode
189+
check_command zfs set dnodesize=auto "$POOLNAME"
190+
fi
187191

188192
else
189193
msg_box "It seems like /dev/$DEVTYPE does not exist.

0 commit comments

Comments
 (0)