Skip to content

Commit dea94b6

Browse files
authored
add dnodesize (#2713)
1 parent 654e061 commit dea94b6

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

disk/format-chosen.sh

+6-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ while
103103
done
104104
[[ -z "${devtype_present+x}" ]]
105105
do
106-
printf "${BRed}$DEVTYPE is not a valid disk. Please try again.${Color_Off}\n"
106+
print_text_in_color "$BRed" "$DEVTYPE is not a valid disk. Please try again."
107107
:
108108
done
109109

@@ -183,6 +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+
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
186191

187192
else
188193
msg_box "It seems like /dev/$DEVTYPE does not exist.

disk/format-sdb.sh

+5
Original file line numberDiff line numberDiff line change
@@ -166,6 +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+
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
169174

170175
else
171176
msg_box "It seems like /dev/$DEVTYPE does not exist.

0 commit comments

Comments
 (0)