From 294b030b9903e5f0e6d29885c693790c3e7f7cb2 Mon Sep 17 00:00:00 2001 From: demmm Date: Sat, 14 Feb 2015 18:03:50 -0500 Subject: [PATCH] correct swap in fallback too --- src/modules/bootloader/main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/modules/bootloader/main.py b/src/modules/bootloader/main.py index 9699ac9c2..4a8d11cdd 100644 --- a/src/modules/bootloader/main.py +++ b/src/modules/bootloader/main.py @@ -57,6 +57,7 @@ def create_conf(uuid, conf_path): for partition in partitions: if partition["fs"] == "linuxswap": swap = partition["uuid"] + lines = [ '## This is just an exmaple config file.\n', '## Please edit the paths and kernel parameters according to your system.\n', @@ -78,11 +79,11 @@ def create_fallback(uuid, fallback_path): kernel = libcalamares.job.configuration["kernel"] fb_img = libcalamares.job.configuration["fallback"] partitions = libcalamares.globalstorage.value("partitions") + swap = "" for partition in partitions: if partition["fs"] == "linuxswap": swap = partition["uuid"] - else: - swap = "" + lines = [ '## This is just an exmaple config file.\n', '## Please edit the paths and kernel parameters according to your system.\n',