From fad5c06199e6557ede5408a81a0bf05c9d8a9759 Mon Sep 17 00:00:00 2001 From: oddlama Date: Sat, 2 May 2020 12:22:43 +0200 Subject: [PATCH] fstab swap entry by uuid --- scripts/main.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/main.sh b/scripts/main.sh index 3bb4d34..a5b29ea 100755 --- a/scripts/main.sh +++ b/scripts/main.sh @@ -232,7 +232,7 @@ generate_fstab() { add_fstab_entry "UUID=$(get_blkid_uuid_for_id "$DISK_ID_BIOS")" "/boot/bios" "vfat" "defaults,noatime,fmask=0177,dmask=0077,noexec,nodev,nosuid,discard" "0 2" fi if [[ -v "DISK_ID_SWAP" ]]; then - add_fstab_entry "$(resolve_device_by_id "$DISK_ID_SWAP")" "none" "swap" "defaults,discard" "0 0" + add_fstab_entry "UUID=$(get_blkid_uuid_for_id "$DISK_ID_SWAP")" "none" "swap" "defaults,discard" "0 0" fi }