Skip to content

Commit

Permalink
add dnodesize (#2713)
Browse files Browse the repository at this point in the history
  • Loading branch information
enoch85 authored Dec 15, 2024
1 parent 654e061 commit dea94b6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
7 changes: 6 additions & 1 deletion disk/format-chosen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ while
done
[[ -z "${devtype_present+x}" ]]
do
printf "${BRed}$DEVTYPE is not a valid disk. Please try again.${Color_Off}\n"
print_text_in_color "$BRed" "$DEVTYPE is not a valid disk. Please try again."
:
done

Expand Down Expand Up @@ -183,6 +183,11 @@ then
check_command zfs set atime=off "$POOLNAME"
check_command zfs set recordsize=128k "$POOLNAME"
check_command zfs set logbias=latency "$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.
Expand Down
5 changes: 5 additions & 0 deletions disk/format-sdb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,11 @@ then
check_command zfs set atime=off "$POOLNAME"
check_command zfs set recordsize=128k "$POOLNAME"
check_command zfs set logbias=latency "$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.
Expand Down

0 comments on commit dea94b6

Please sign in to comment.