summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornl6720 <nl6720@gmail.com>2022-08-23 14:38:22 +0300
committernl6720 <nl6720@gmail.com>2023-03-26 19:35:29 +0300
commit76ca7216bc2df1e1c40d5284f28bf290fca96942 (patch)
treee5f232562b9bcc49e303c75b9b68d92dace0dad9
parent7330031441ffa681b2e2e1ad638fab74284cabc7 (diff)
Do not create a UUID for the swap file
A swap file cannot be referenced by its UUID so there's no need for it to have one in the first place.
-rw-r--r--images/base.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/images/base.sh b/images/base.sh
index 683ffc9..8776c28 100644
--- a/images/base.sh
+++ b/images/base.sh
@@ -12,7 +12,7 @@ function pre() {
chmod 0700 "${MOUNT}/swap"
fallocate -l 512M "${MOUNT}/swap/swapfile"
chmod 0600 "${MOUNT}/swap/swapfile"
- mkswap "${MOUNT}/swap/swapfile"
+ mkswap -U clear "${MOUNT}/swap/swapfile"
echo -e "/swap/swapfile none swap defaults 0 0" >>"${MOUNT}/etc/fstab"
arch-chroot "${MOUNT}" /usr/bin/systemd-firstboot --locale=C.UTF-8 --timezone=UTC --hostname=archlinux --keymap=us