Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Neat "if exists" method for iPXE Scripts...
2013-06-05, 03:06
Post: #1
Neat "if exists" method for iPXE Scripts...
Using initrd to function as an “if file exists” Boolean Determinor:
Code:
#!ipxe
set boot-path ${17}/Media-Depot/linux/VMware/4.1/ESX/HP/Z7550-00801
set config-path ${boot-path}/KickStart

initrd ${boot-path}/KickStart/${uuid}.cfg && goto stage2 || goto menu-option

:stage2
imgfree ${uuid}.cfg
echo Booting VMware ESX 4.1 Update 2 (OEM HP Z7550-00801)to Install to Local Disk for ${hostname}
initrd ${boot-path}/isolinux/initrd.img
chain ${boot-path}/isolinux/vmlinuz vmkopts=debugLogToSerial:1 mem=512M ks=${config-path}/${uuid}.cfg

:menu-option
chain ${17}/NetBoot/iPXE/ipxelinux.cfg/default/default.ipxe

"Thus far, you have been adrift within the sheltered harbor of my patience..."
Find all posts by this user
Quote this message in a reply
2013-06-05, 09:34
Post: #2
RE: Neat "if exists" method for iPXE Scripts...
That's a neat trick!
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)