Mike Burns
2011-Aug-25 18:07 UTC
[Ovirt-devel] [PATCH node 1/3] add reinstall and uninstall options to boot menu
rhbz#733357 Signed-off-by: Mike Burns <mburns at redhat.com> --- recipe/common-nochroot.ks | 19 +++++++++++++++++-- 1 files changed, 17 insertions(+), 2 deletions(-) diff --git a/recipe/common-nochroot.ks b/recipe/common-nochroot.ks index c5d009f..c6dd76d 100644 --- a/recipe/common-nochroot.ks +++ b/recipe/common-nochroot.ks @@ -17,6 +17,9 @@ sed -i -e 's/ quiet//' $LIVE_ROOT/isolinux/isolinux.cfg # Remove Verify and Boot option sed -i -e '/label check0/{N;N;N;d;}' $LIVE_ROOT/isolinux/isolinux.cfg +# Rename Boot option to Install or Upgrade +sed -i 's/^ menu label Boot$/ menu label Install or Upgrade/' $LIVE_ROOT/isolinux/isolinux.cfg + # add serial console boot entry menu=$(mktemp) awk ' @@ -27,9 +30,21 @@ linux0==1 && $1=="append" { linux0==1 && $1=="label" && $2!="linux0" { linux0=2 print "label serial-console" - print " menu label Boot with serial console" + print " menu label Install or Upgrade with serial console" print " kernel vmlinuz0" - print append0" console=ttyS0,115200n8" + print append0" console=ttyS0,115200n8 " + print "label reinstall" + print " menu label Reinstall" + print " kernel vmlinux0" + print append0" reinstall " + print "label reinstall-serial" + print " menu label Reinstall with serial console" + print " kernel vmlinux0" + print append0" reinstall console=ttyS0,115200n8 " + print "label uninstall" + print " menu label Uninstall" + print " kernel vmlinux0" + print append0" uninstall " } { print } ' $LIVE_ROOT/isolinux/isolinux.cfg > $menu -- 1.7.4.4
Mike Burns
2011-Aug-26 15:26 UTC
[Ovirt-devel] [PATCH node 1/3] add reinstall and uninstall options to boot menu
On Thu, 2011-08-25 at 14:07 -0400, Mike Burns wrote:> rhbz#733357 > > Signed-off-by: Mike Burns <mburns at redhat.com> > --- > recipe/common-nochroot.ks | 19 +++++++++++++++++-- > 1 files changed, 17 insertions(+), 2 deletions(-) > > diff --git a/recipe/common-nochroot.ks b/recipe/common-nochroot.ks > index c5d009f..c6dd76d 100644 > --- a/recipe/common-nochroot.ks > +++ b/recipe/common-nochroot.ks > @@ -17,6 +17,9 @@ sed -i -e 's/ quiet//' $LIVE_ROOT/isolinux/isolinux.cfg > # Remove Verify and Boot option > sed -i -e '/label check0/{N;N;N;d;}' $LIVE_ROOT/isolinux/isolinux.cfg > > +# Rename Boot option to Install or Upgrade > +sed -i 's/^ menu label Boot$/ menu label Install or Upgrade/' $LIVE_ROOT/isolinux/isolinux.cfg > + > # add serial console boot entry > menu=$(mktemp) > awk ' > @@ -27,9 +30,21 @@ linux0==1 && $1=="append" { > linux0==1 && $1=="label" && $2!="linux0" { > linux0=2 > print "label serial-console" > - print " menu label Boot with serial console" > + print " menu label Install or Upgrade with serial console" > print " kernel vmlinuz0" > - print append0" console=ttyS0,115200n8" > + print append0" console=ttyS0,115200n8 " > + print "label reinstall" > + print " menu label Reinstall" > + print " kernel vmlinux0"should be vmlinuz0> + print append0" reinstall " > + print "label reinstall-serial" > + print " menu label Reinstall with serial console" > + print " kernel vmlinux0"should be vmlinuz0> + print append0" reinstall console=ttyS0,115200n8 " > + print "label uninstall" > + print " menu label Uninstall" > + print " kernel vmlinux0"should be vmlinuz0> + print append0" uninstall " > } > { print } > ' $LIVE_ROOT/isolinux/isolinux.cfg > $menu