From 5bdd4585c1332157b64e6885b3d50c34e801cddb Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Wed, 10 Apr 2024 07:20:11 +0200 Subject: [PATCH] retry systemd automounting --- CHANGELOG | 2 +- usr/lib/archboot/installer/mountpoints.sh | 4 ++++ usr/lib/archboot/installer/quicksetup.sh | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index d2974b2e3..c37ecb673 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -4,7 +4,7 @@ Highlights: setup: - cleanup hwdetect code - create XBOOTLDR partition with vfat by default -- allow systemd-auto-gpt setup without syncinc files to ESP +- allow systemd-auto-gpt setup without syncing files to ESP --- 2024.03 Highlights: - kernel 6.8.x diff --git a/usr/lib/archboot/installer/mountpoints.sh b/usr/lib/archboot/installer/mountpoints.sh index 7dc729fae..00180c5cc 100644 --- a/usr/lib/archboot/installer/mountpoints.sh +++ b/usr/lib/archboot/installer/mountpoints.sh @@ -248,6 +248,7 @@ _mountpoints() { # reformat device, if already swap partition format if [[ "${_FSTYPE}" == "swap" && -n "${_SWAP_DONE}" ]]; then _FSTYPE="" + _LABEL_NAME="SWAP" _DOMKFS=1 fi # reformat vfat, root cannot be vfat format @@ -561,6 +562,9 @@ _mkfs() { _GUID_VALUE="$(${_LSBLK} PARTTYPE "${1}")" if ! [[ "${_GUID_VALUE}" == "933ac7e1-2eb4-4f13-b844-0e14e2aef915" && "${5}" == "/home" ||\ "${_GUID_VALUE}" == "0657fd6d-a4ab-43c4-84e5-0933c84b4f4f" && "${5}" == "swap" ||\ + "${_GUID_VALUE}" == "c12a7328-f81f-11d2-ba4b-00a0c93ec93b" && "${5}" == "/efi" ||\ + "${_GUID_VALUE}" == "c12a7328-f81f-11d2-ba4b-00a0c93ec93b" && "${5}" == "/boot" ||\ + "${_GUID_VALUE}" == "bc13c2ff-59e6-4262-a352-b275fd6f7172" && "${5}" == "/boot" && "${2}" == "vfat" ||\ "${5}" == "/" ]]; then echo -n "${_DEV} ${5} ${2} defaults 0 " >>/tmp/.fstab _check_filesystem_fstab "$@" diff --git a/usr/lib/archboot/installer/quicksetup.sh b/usr/lib/archboot/installer/quicksetup.sh index 1a53efc68..c1e294385 100644 --- a/usr/lib/archboot/installer/quicksetup.sh +++ b/usr/lib/archboot/installer/quicksetup.sh @@ -23,7 +23,7 @@ _auto_partition() { fi if [[ -z "${_SKIP_SWAP}" ]]; then _progress "65" "Creating SWAP partition..." - echo "size=+${_SWAPDEV_SIZE}M, type=0657FD6D-A4AB-43C4-84E5-0933C84B4F4F, name=ARCH_LINUX_SWAP" | sfdisk -a "${_DISK}" &>"${_LOG}" + echo "size=+${_SWAPDEV_SIZE}M, type=0657FD6D-A4AB-43C4-84E5-0933C84B4F4F, name=SWAP" | sfdisk -a "${_DISK}" &>"${_LOG}" fi _progress "70" "Creating ROOT partition..." [[ "${_RUNNING_ARCH}" == "aarch64" ]] && _GUID_TYPE=B921B045-1DF0-41C3-AF44-4C6F280D3FAE