File tree 2 files changed +11
-1
lines changed
2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ while
103
103
done
104
104
[[ -z " ${devtype_present+x} " ]]
105
105
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."
107
107
:
108
108
done
109
109
@@ -183,6 +183,11 @@ then
183
183
check_command zfs set atime=off " $POOLNAME "
184
184
check_command zfs set recordsize=128k " $POOLNAME "
185
185
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
186
191
187
192
else
188
193
msg_box " It seems like /dev/$DEVTYPE does not exist.
Original file line number Diff line number Diff line change @@ -166,6 +166,11 @@ then
166
166
check_command zfs set atime=off " $POOLNAME "
167
167
check_command zfs set recordsize=128k " $POOLNAME "
168
168
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
169
174
170
175
else
171
176
msg_box " It seems like /dev/$DEVTYPE does not exist.
You can’t perform that action at this time.
0 commit comments