From dsd at laptop.org Sun Jan 3 13:39:43 2010 From: dsd at laptop.org (Daniel Drake) Date: Sun, 03 Jan 2010 13:39:43 +0000 Subject: [Fedora-livecd-list] [PATCH v2] Implement %post --erroronfail In-Reply-To: <20091224113146.EABF59D400D@zog.reactivated.net> References: <20091224113146.EABF59D400D@zog.reactivated.net> Message-ID: <1262525983.3180.2.camel@localhost.localdomain> On Thu, 2009-12-24 at 11:31 +0000, Daniel Drake wrote: > This flag is documented and parsed, but not acted upon. bump... Any further comments on this patch? > imgcreate/creator.py | 11 +++++++++-- > 1 files changed, 9 insertions(+), 2 deletions(-) > > diff --git a/imgcreate/creator.py b/imgcreate/creator.py > index 909f616..4deb49e 100644 > --- a/imgcreate/creator.py > +++ b/imgcreate/creator.py > @@ -23,6 +23,7 @@ import sys > import tempfile > import shutil > import logging > +import subprocess > > import selinux > import yum > @@ -702,11 +703,17 @@ class ImageCreator(object): > script = "/tmp/" + os.path.basename(path) > > try: > - subprocess.call([s.interp, script], > - preexec_fn = preexec, env = env) > + subprocess.check_call([s.interp, script], > + preexec_fn = preexec, env = env) > except OSError, (err, msg): > raise CreatorError("Failed to execute %%post script " > "with '%s' : %s" % (s.interp, msg)) > + except subprocess.CalledProcessError, err: > + if s.errorOnFail: > + raise CreatorError("%%post script failed with code %d " > + % err.returncode) > + logging.warning("ignoring %%post failure (code %d)" > + % err.returncode) > finally: > os.unlink(path) > From danjde at msw.it Mon Jan 4 11:04:20 2010 From: danjde at msw.it (Davide Marchi) Date: Mon, 04 Jan 2010 12:04:20 +0100 Subject: [Fedora-livecd-list] fc11 Live: impossible to create the generic user Message-ID: <4B41CB34.8050004@msw.it> hi, finalizes the FC11 live, it is impossible to create the generic user; Indeed, the initiation of live, you are missing any generic part "firstboot"; this behavior even with the original version of fedora-base.ks Many thanks -- cosmogoniA noprovarenofareononfarenonc'?provare -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 3284 bytes Desc: S/MIME Cryptographic Signature URL: