filesystems: disable automouting of swap partition if running live to fix installation with Calamares
This commit is contained in:
parent
a6acd7d48f
commit
c3df1bc57d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user