[PATCH master] rpmostreepayload: write storage config after shared var is mounted (#1203234)

Radek Vykydal rvykydal at redhat.com
Wed Mar 18 12:40:08 UTC 2015


iscsi configuratiion is written to /var/lib/iscsi so we need to have
the shared /var already mounted to deployment
---
 pyanaconda/install.py | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/pyanaconda/install.py b/pyanaconda/install.py
index a68e793..f09c772 100644
--- a/pyanaconda/install.py
+++ b/pyanaconda/install.py
@@ -230,7 +230,6 @@ def doInstall(storage, payload, ksdata, instClass):
         if iutil.getSysroot() != iutil.getTargetPhysicalRoot():
             blivet.setSysroot(iutil.getTargetPhysicalRoot(),
                               iutil.getSysroot())
-            storage.write()
 
             # Now that we have the FS layout in the target, umount
             # things that were in the legacy sysroot, and put them in
@@ -249,8 +248,7 @@ def doInstall(storage, payload, ksdata, instClass):
             # since the bootloader code will expect to find /boot
             # inside the chroot.
             storage.mountFilesystems(skipRoot=True)
-        else:
-            storage.write()
+        storage.write()
 
     # Do bootloader.
     if willInstallBootloader:
-- 
1.9.3



More information about the anaconda-patches mailing list