Skip to content

Commit 33322f0

Browse files
authored
same change
Signed-off-by: Daniel Hansson <[email protected]>
1 parent ccdd355 commit 33322f0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Diff for: disk/format-sdb.sh

+5-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,11 @@ then
166166
check_command zfs set atime=off "$POOLNAME"
167167
check_command zfs set recordsize=128k "$POOLNAME"
168168
check_command zfs set logbias=latency "$POOLNAME"
169-
check_command zfs set dnodesize=auto "$POOLNAME"
169+
if [ -d /sys/firmware/efi ]
170+
then
171+
# dnodesize can't boot on BIOS, only UEFI mode
172+
check_command zfs set dnodesize=auto "$POOLNAME"
173+
fi
170174

171175
else
172176
msg_box "It seems like /dev/$DEVTYPE does not exist.

0 commit comments

Comments
 (0)