Update main.py
This commit is contained in:
parent
7638f80373
commit
1f9e7b5ae9
@ -53,11 +53,10 @@ def create_conf(uuid, conf_path):
|
|||||||
kernel = libcalamares.job.configuration["kernel"]
|
kernel = libcalamares.job.configuration["kernel"]
|
||||||
img = libcalamares.job.configuration["img"]
|
img = libcalamares.job.configuration["img"]
|
||||||
partitions = libcalamares.globalstorage.value("partitions")
|
partitions = libcalamares.globalstorage.value("partitions")
|
||||||
|
swap = ""
|
||||||
for partition in partitions:
|
for partition in partitions:
|
||||||
if partition["fs"] == "linuxswap":
|
if partition["fs"] == "linuxswap":
|
||||||
swap = partition["uuid"]
|
swap = partition["uuid"]
|
||||||
else:
|
|
||||||
swap = ""
|
|
||||||
lines = [
|
lines = [
|
||||||
'## This is just an exmaple config file.\n',
|
'## This is just an exmaple config file.\n',
|
||||||
'## Please edit the paths and kernel parameters according to your system.\n',
|
'## Please edit the paths and kernel parameters according to your system.\n',
|
||||||
|
Loading…
Reference in New Issue
Block a user