Changeset 173
- Timestamp:
- Aug 11, 2010, 10:21:52 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
drbl-virt/sbin/drbl_xen_patch.sh
r172 r173 42 42 43 43 # == Modify PXE booting menu == 44 # backup 44 # backup generate-pxe-menu 45 45 #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 47 generate_PXE_menu="/opt/drbl/sbin/generate-pxe-menu" 48 declare -i modify_line=$(cat -n $generate_PXE_menu | grep 'label drbl' | awk 'NR==1 {print $1}') 49 # modify menu 50 sed -i "${modify_line}i\label drbl-virt" $generate_PXE_menu 51 modify_line=$modify_line+1 52 sed -i "${modify_line}i\ MENU DEFAULT" $generate_PXE_menu 53 modify_line=$modify_line+1 54 sed -i "${modify_line}i\ MENU LABEL DRBL-Virtualization ($Xen, $Xen_Kernel)" $generate_PXE_menu 55 modify_line=$modify_line+1 56 sed -i "${modify_line}i\ kernel mboot.c32" $generate_PXE_menu 57 modify_line=$modify_line+1 58 sed -i "${modify_line}i\ append $Xen --- vmlinuz-pxe --- initrd-pxe.img devfs=nomount drblthincli=off selinux=0 nomodeset" $generate_PXE_menu 59 modify_line=$modify_line+1 60 sed -i "${modify_line}i\ TEXT HELP" $generate_PXE_menu 61 modify_line=$modify_line+1 62 sed -i "${modify_line}i\ ENDTEXT" $generate_PXE_menu 63 modify_line=$modify_line+1 64 sed -i "${modify_line}i\ " $generate_PXE_menu 46 65 47 66 48 67 # = 2. Patch DRBL initrd to support bridge = 49 68 # == Patch /usr/bin/mkpxeinitrd-net (1)modules (2)xen network scripts == 69 50 70 51 71 # == Copy xen netwrok scripts ==
Note: See TracChangeset
for help on using the changeset viewer.