Added automatic enabling of swap partition before installation starts.
Mainly to suppress installer stoppages caused by oom killer.
This commit is contained in:
parent
9050566bdb
commit
6c25be670d
@ -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-")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user