From 7ed1439f7a47d922f14b21bdcc89b618b6addb95 Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Sat, 12 Aug 2023 15:43:45 +0200 Subject: [PATCH] fix GPT on BIOS system fstab --- usr/lib/archboot/installer/mountpoints.sh | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/usr/lib/archboot/installer/mountpoints.sh b/usr/lib/archboot/installer/mountpoints.sh index 9e688158f..e3ad79ea2 100644 --- a/usr/lib/archboot/installer/mountpoints.sh +++ b/usr/lib/archboot/installer/mountpoints.sh @@ -484,15 +484,11 @@ _mkfs() { _FSUUID="$(_getfsuuid "${1}")" #shellcheck disable=SC2155 _FSLABEL="$(_getfslabel "${1}")" - if [[ -n "${_UEFI_BOOT}" ]]; then - #shellcheck disable=SC2155 - _PARTUUID="$(_getpartuuid "${1}")" - #shellcheck disable=SC2155 - _PARTLABEL="$(_getpartlabel "${1}")" - echo "# DEVICE DETAILS: ${1} PARTUUID=${_PARTUUID} PARTLABEL=${_PARTLABEL} UUID=${_FSUUID} LABEL=${_FSLABEL}" >> /tmp/.device-names - else - echo "# DEVICE DETAILS: ${1} UUID=${_FSUUID} LABEL=${_FSLABEL}" >> /tmp/.device-names - fi + #shellcheck disable=SC2155 + _PARTUUID="$(_getpartuuid "${1}")" + #shellcheck disable=SC2155 + _PARTLABEL="$(_getpartlabel "${1}")" + echo "# DEVICE DETAILS: ${1} PARTUUID=${_PARTUUID} PARTLABEL=${_PARTLABEL} UUID=${_FSUUID} LABEL=${_FSLABEL}" >> /tmp/.device-names # add to temp fstab if [[ "${_NAME_SCHEME_PARAMETER}" == "FSUUID" ]]; then if [[ -n "${_FSUUID}" ]]; then