Alan Pevec
2008-Nov-12 18:24 UTC
[Ovirt-devel] [PATCH node-image] add boot entry for oVirt Node standalone mode
Signed-off-by: Alan Pevec <apevec at redhat.com> --- ovirt-node-image.ks | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/ovirt-node-image.ks b/ovirt-node-image.ks index 5af154b..20ec36c 100644 --- a/ovirt-node-image.ks +++ b/ovirt-node-image.ks @@ -19,7 +19,22 @@ touch /.autorelabel %include common-blacklist.ks %post --nochroot +echo "Fixing boot menu" # remove quiet from Node bootparams, added by livecd-creator sed -i -e 's/ quiet//' $LIVE_ROOT/isolinux/isolinux.cfg +# add standalone boot entry +awk ' +/label linux0/ { linux0=1 } +linux0=1 && /append / { append0=$0 } +/label check0/ { + print "label standalone0" + print " menu label Boot in standalone mode" + print " kernel vmlinuz0" + print append0" ovirt_standalone" +} +{ print } +' $LIVE_ROOT/isolinux/isolinux.cfg > $LIVE_ROOT/isolinux/isolinux.cfg.standalone +mv $LIVE_ROOT/isolinux/isolinux.cfg.standalone $LIVE_ROOT/isolinux/isolinux.cfg + %end -- 1.5.6.5
Darryl Pierce
2008-Nov-12 18:40 UTC
[Ovirt-devel] [PATCH node-image] add boot entry for oVirt Node standalone mode
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Alan Pevec wrote:> Signed-off-by: Alan Pevec <apevec at redhat.com> > --- > ovirt-node-image.ks | 15 +++++++++++++++ > 1 files changed, 15 insertions(+), 0 deletions(-) > > diff --git a/ovirt-node-image.ks b/ovirt-node-image.ks > index 5af154b..20ec36c 100644 > --- a/ovirt-node-image.ks > +++ b/ovirt-node-image.ks > @@ -19,7 +19,22 @@ touch /.autorelabel > %include common-blacklist.ks > > %post --nochroot > +echo "Fixing boot menu" > # remove quiet from Node bootparams, added by livecd-creator > sed -i -e 's/ quiet//' $LIVE_ROOT/isolinux/isolinux.cfg > > +# add standalone boot entry > +awk ' > +/label linux0/ { linux0=1 } > +linux0=1 && /append / { append0=$0 } > +/label check0/ { > + print "label standalone0" > + print " menu label Boot in standalone mode" > + print " kernel vmlinuz0" > + print append0" ovirt_standalone" > +} > +{ print } > +' $LIVE_ROOT/isolinux/isolinux.cfg > $LIVE_ROOT/isolinux/isolinux.cfg.standalone > +mv $LIVE_ROOT/isolinux/isolinux.cfg.standalone $LIVE_ROOT/isolinux/isolinux.cfg > + > %endACK. Applied and I see the ovirt_standalone entry in /proc/cmdline as expected. - -- Darryl L. Pierce <dpierce at redhat.com> : GPG KEYID: 6C4E7F1B -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iEYEARECAAYFAkkbIy4ACgkQjaT4DmxOfxti/wCdHnjX0c5q5jlGN/zRxG/ff6lz yooAoNlcjZMuFY3IPMnANMBkCuy4/roG =2Ffu -----END PGP SIGNATURE----- -------------- next part -------------- A non-text attachment was scrubbed... Name: dpierce.vcf Type: text/x-vcard Size: 319 bytes Desc: not available URL: <http://listman.redhat.com/archives/ovirt-devel/attachments/20081112/b7d4af8d/attachment.vcf>