From c3df1bc57dce82adad0d394c63696b8f0995734c Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 12 Oct 2019 13:31:37 +0200 Subject: [PATCH] filesystems: disable automouting of swap partition if running live to fix installation with Calamares --- postplug.d/10filesystems | 3 +++ 1 file changed, 3 insertions(+) diff --git a/postplug.d/10filesystems b/postplug.d/10filesystems index 90269c0..a18d678 100644 --- a/postplug.d/10filesystems +++ b/postplug.d/10filesystems @@ -164,6 +164,9 @@ let "swapon = 0" # scan for new devices using the searching mask `$devs2scan' [[ "$FS_PARTS_MOUNT" = "yes" ]] && AUTO_ADD="" || AUTO_ADD="noauto," +# disable automounting of swap partition if live to fix Calamares installation +[ -e /run/overlayfs ] && FS_SWAP_UPDATE="no" + [[ "$FS_PARTS_UPDATE" != "yes" && "$FS_SWAP_UPDATE" != "yes" ]] || blkid | while read line; do unset dev uuid devline devfstype TYPE UUID LABEL