[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [Fedora-livecd-list] [PATCH] Run post after having configured the network
- From: Jeroen van Meeuwen <kanarip kanarip com>
- To: fedora-livecd-list redhat com
- Subject: Re: [Fedora-livecd-list] [PATCH] Run post after having configured the network
- Date: Sun, 05 Aug 2007 22:00:59 +0200
Jeroen van Meeuwen wrote:
> As proposed earlier, a patch to run %post only after configureNetwork()
> has run because %post network configuration may override
> configureNetwork() configuration, but vice-versa just seems wrong as you
> cannot do everything with kickstart network configuration directives.
>
> Thanks to Mads Kiilerich for pointing this out.
>
It needs instroot, too
--- pilgrim.py.prepatch-runpost 2007-08-05 20:52:09.000000000 +0200
+++ pilgrim.py 2007-08-05 20:52:41.000000000 +0200
@@ -771,6 +771,7 @@
f.write(buf)
f.close()
+ def runPost(self):
+ instroot = "%s/install_root" %(self.build_dir,)
# and now, for arbitrary %post scripts
for s in filter(lambda s: s.type == pykickstart.parser.KS_SCRIPT_POST,
self.ksparser.handler.scripts):
@@ -1129,6 +1130,7 @@
except Exception, e: #FIXME: we should be a little bit more fine-grained
raise InstallationError(_("Error configuring live image: %s") %(e,))
self.configureNetwork()
+ self.runPost()
self.relabelSystem()
if not self.skip_prelink:
self.prelinkSystem()
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]