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

Vratislav Podzimek vpodzime at redhat.com
Wed Mar 18 13:14:54 UTC 2015


On Wed, 2015-03-18 at 13:40 +0100, Radek Vykydal wrote:
> 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:
Looks good to me.

-- 
Vratislav Podzimek

Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic



More information about the anaconda-patches mailing list