From d12042cda96f1d76b82bb35d180bcfccff16eff4 Mon Sep 17 00:00:00 2001 From: "pico.dev" Date: Thu, 4 Apr 2024 22:52:17 +0200 Subject: [PATCH] Set permissions boot options only for uefi Fixes #252 --- alis-commons.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/alis-commons.sh b/alis-commons.sh index c87693a0..eeb75733 100755 --- a/alis-commons.sh +++ b/alis-commons.sh @@ -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"