Skip to content

Commit

Permalink
Set permissions boot options only for uefi
Browse files Browse the repository at this point in the history
Fixes #252
  • Loading branch information
picodotdev committed Apr 4, 2024
1 parent 169779f commit d12042c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion alis-commons.sh
Original file line number Diff line number Diff line change
Expand Up @@ -420,9 +420,12 @@ function partition_device() {
}

function partition_options() {
PARTITION_OPTIONS_BOOT="defaults,uid=0,gid=0,fmask=0077,dmask=0077"
PARTITION_OPTIONS_BOOT="defaults"
PARTITION_OPTIONS="defaults"

if [ BIOS_TYPE == "uefi"]; then
PARTITION_OPTIONS_BOOT="$PARTITION_OPTIONS_BOOT,uid=0,gid=0,fmask=0077,dmask=0077"
fi
if [ "$DEVICE_TRIM" == "true" ]; then
PARTITION_OPTIONS_BOOT="$PARTITION_OPTIONS_BOOT,noatime"
PARTITION_OPTIONS="$PARTITION_OPTIONS,noatime"
Expand Down

0 comments on commit d12042c

Please sign in to comment.