Alan Pevec
2008-Aug-21 21:30 UTC
[Ovirt-devel] [PATCH] make oVirt-Node-$arch default boot option in Cobbler menu
Signed-off-by: Alan Pevec <apevec at redhat.com> --- wui-appliance/wui-devel.ks | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/wui-appliance/wui-devel.ks b/wui-appliance/wui-devel.ks index 6202e8b..a2d42b9 100644 --- a/wui-appliance/wui-devel.ks +++ b/wui-appliance/wui-devel.ks @@ -339,12 +339,13 @@ cobbler system add --netboot-enabled=1 --profile=oVirt-Node-$arch \ service cobblerd restart set +x echo "Add new oVirt Nodes as Cobbler systems to make them PXE boot oVirt Node image directly." -echo "Alternatively, choose oVirt-Node-$arch in default Cobbler boot menu." +echo "oVirt-Node-$arch is also default boot option in Cobbler menu" EOF chmod +x $INSTALL_ROOT/etc/rc.d/rc.cobbler-import echo "[ -x /etc/rc.d/rc.cobbler-import ] && /etc/rc.d/rc.cobbler-import" \ >> $INSTALL_ROOT/etc/rc.d/rc.local - echo done + printf "oVirt-Node-$arch" > $INSTALL_ROOT/tmp/cobbler-default + echo done ) %end @@ -365,4 +366,6 @@ EOF -e "s/^next_server:.*/next_server: '192.168.50.2'/" \ /etc/cobbler/settings sed -i -e '/kernel /a \\tIPAPPEND 2' /etc/cobbler/pxesystem.template + sed -i -e "s/^ONTIMEOUT.*/ONTIMEOUT $(cat /tmp/cobbler-default)/" \ + /etc/cobbler/pxedefault.template %end -- 1.5.4.1
Ian Main
2008-Aug-21 22:14 UTC
[Ovirt-devel] [PATCH] make oVirt-Node-$arch default boot option in Cobbler menu
On Thu, 21 Aug 2008 23:30:22 +0200 Alan Pevec <apevec at redhat.com> wrote:> Signed-off-by: Alan Pevec <apevec at redhat.com> > --- > wui-appliance/wui-devel.ks | 7 +++++-- > 1 files changed, 5 insertions(+), 2 deletions(-)ACK. Works nicely. We going to keep the macs for the vm nodes then? Guess it doesn't hurt.. With this plus my other patch I can boot a mccreary node right out of the box. Ian