[rhel7 3/3] Write storage after liveimg install (#1080396)

Brian C. Lane bcl at redhat.com
Fri Aug 15 17:40:08 UTC 2014


When using the kickstart liveimg command to install a pre-built image we
need to write the storage config (/etc/fstab, etc.) after the files have
been extracted, not before.

Related: rhbz#1080396
---
 pyanaconda/install.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/pyanaconda/install.py b/pyanaconda/install.py
index 4b50cb0..c73ba68 100644
--- a/pyanaconda/install.py
+++ b/pyanaconda/install.py
@@ -158,6 +158,7 @@ def doInstall(storage, payload, ksdata, instClass):
 
     turnOnFilesystems(storage, mountOnly=flags.flags.dirInstall)
     write_storage_late = (flags.flags.livecdInstall or ksdata.ostreesetup.seen
+                          or ksdata.method.method == "liveimg"
                           and not flags.flags.dirInstall)
     if not write_storage_late:
         storage.write()
-- 
1.9.3



More information about the anaconda-patches mailing list