Added automatic enabling of swap partition before installation starts.

Mainly to suppress installer stoppages caused by oom killer.
This commit is contained in:
Masato Toyoshima 2023-02-21 22:24:11 +09:00
parent 9050566bdb
commit 6c25be670d
No known key found for this signature in database
GPG Key ID: 536487F1470D7187

View File

@ -329,7 +329,8 @@ def run():
# swap
swap_partitions = [p['device'] for p in partitions if p['fs'] == 'linuxswap' ]
enable_swap_partitions(swap_partitions)
if ( swap_partitions != [] ):
enable_swap_partition(swap_partitions)
root_mount_point = tempfile.mkdtemp(prefix="calamares-root-")