From e79470ad32443ba7d0bf072a60fe2ff323fac21a Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Thu, 6 Jun 2024 07:23:05 +0200 Subject: [PATCH] start adding SWAP file support --- usr/lib/archboot/installer/mountpoints.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/lib/archboot/installer/mountpoints.sh b/usr/lib/archboot/installer/mountpoints.sh index ef0e534e6..19a5562d4 100644 --- a/usr/lib/archboot/installer/mountpoints.sh +++ b/usr/lib/archboot/installer/mountpoints.sh @@ -446,7 +446,7 @@ _mkfs() { if [[ "${2}" == "swap" ]]; then swapoff -a &>"${_NO_LOG}" if [[ -n "${4}" ]]; then - if _LSBLK NAME | grep -q "${1}"; then + if echo "${1}" | grep -q '^/dev'; then mkswap -L "${6}" "${1}" &>"${_LOG}" else mkswap "${7}" ${3}/"${1}" &>"${_LOG}"