filesystems: disable automouting of swap partition if running live to fix installation with Calamares

This commit is contained in:
Silvan Calarco 2019-10-12 13:31:37 +02:00
parent a6acd7d48f
commit c3df1bc57d

View File

@ -164,6 +164,9 @@ let "swapon = 0"
# scan for new devices using the searching mask `$devs2scan' # scan for new devices using the searching mask `$devs2scan'
[[ "$FS_PARTS_MOUNT" = "yes" ]] && AUTO_ADD="" || AUTO_ADD="noauto," [[ "$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" ]] || [[ "$FS_PARTS_UPDATE" != "yes" && "$FS_SWAP_UPDATE" != "yes" ]] ||
blkid | while read line; do blkid | while read line; do
unset dev uuid devline devfstype TYPE UUID LABEL unset dev uuid devline devfstype TYPE UUID LABEL