Changeset 173 for drbl-virt


Ignore:
Timestamp:
Aug 11, 2010, 10:21:52 AM (14 years ago)
Author:
rock
Message:

Add: patch /opt/drbl/sbin/generate-pxe-menu

File:
1 edited

Legend:

Unmodified
Added
Removed
  • drbl-virt/sbin/drbl_xen_patch.sh

    r172 r173  
    4242
    4343# == Modify PXE booting menu ==
    44 # backup
     44# backup generate-pxe-menu
    4545#cp /tftpboot/nbi_img/pxelinux.cfg/default /tftpboot/nbi_img/pxelinux.cfg/default.drbl-virt_bak
     46#cp /opt/drbl/sbin/generate-pxe-menu /opt/drbl/sbin/generate-pxe-menu.drbl_virt_bak
     47generate_PXE_menu="/opt/drbl/sbin/generate-pxe-menu"
     48declare -i modify_line=$(cat -n $generate_PXE_menu | grep 'label drbl' | awk 'NR==1 {print $1}')
     49# modify menu
     50sed -i "${modify_line}i\label drbl-virt" $generate_PXE_menu
     51modify_line=$modify_line+1
     52sed -i "${modify_line}i\  MENU DEFAULT" $generate_PXE_menu
     53modify_line=$modify_line+1
     54sed -i "${modify_line}i\  MENU LABEL DRBL-Virtualization ($Xen, $Xen_Kernel)" $generate_PXE_menu
     55modify_line=$modify_line+1
     56sed -i "${modify_line}i\  kernel mboot.c32" $generate_PXE_menu
     57modify_line=$modify_line+1
     58sed -i "${modify_line}i\  append $Xen --- vmlinuz-pxe --- initrd-pxe.img devfs=nomount drblthincli=off selinux=0 nomodeset" $generate_PXE_menu
     59modify_line=$modify_line+1
     60sed -i "${modify_line}i\  TEXT HELP" $generate_PXE_menu
     61modify_line=$modify_line+1
     62sed -i "${modify_line}i\  ENDTEXT" $generate_PXE_menu
     63modify_line=$modify_line+1
     64sed -i "${modify_line}i\ " $generate_PXE_menu
    4665
    4766
    4867# = 2. Patch DRBL initrd to support bridge =
    4968# == Patch /usr/bin/mkpxeinitrd-net (1)modules (2)xen network scripts ==
     69
    5070
    5171# == Copy xen netwrok scripts ==
Note: See TracChangeset for help on using the changeset viewer.