@Tom-Elliott said in New PXE menu entry: Deploy Image & Shutdown:
https://raw.githubusercontent.com/FOGProject/fogproject/working/packages/web/lib/fog/bootmenu.class.php
Ok. I’ve done the following.
root@hs-fog:~# wget -O /var/www/fog/lib/fog/bootmenu.class.php https://raw.githu busercontent.com/FOGProject/fogproject/working/packages/web/lib/fog/bootmenu.cla ss.php
--2017-05-17 23:03:43-- https://raw.githubusercontent.com/FOGProject/fogproject /working/packages/web/lib/fog/bootmenu.class.php
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.124.1 33
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.124. 133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 62089 (61K) [text/plain]
Saving to: ‘/var/www/fog/lib/fog/bootmenu.class.php’
/var/www/fog/lib/fo 100%[===================>] 60.63K --.-KB/s in 0.03s
2017-05-17 23:03:44 (1.97 MB/s) - ‘/var/www/fog/lib/fog/bootmenu.class.php’ save d [62089/62089]
root@hs-fog:~# reboot
After reboot I booted to pxe menu with a registered host and deployed an image to it with the modified “Deploy Image” option.
I then went to this address.
http://10.20.21.136/fog/service/ipxe/boot.php?mac=<hostmac>
And got the following results:
#!ipxe
set fog-ip 10.20.21.136
set fog-webroot fog
set boot-url http://${fog-ip}/${fog-webroot}
kernel bzImage32 loglevel=4 initrd=init_32.xz root=/dev/ram0 rw ramdisk_size=127000 web=10.20.21.136/fog/ consoleblank=0 rootfstype=ext4 storage=10.20.21.136:/images/ storageip=10.20.21.136 mac=<hostmac> ftp=10.20.21.136 storage=10.20.21.136:/images/ storageip=10.20.21.136 osid=9 irqpoll hostname=<hostname> chkdsk=0 img=Windows10 imgType=n imgPartitionType=all imgid=1 imgFormat=0 PIGZ_COMP=-9 hostearly=1 type=down
imgfetch init_32.xz
boot
It’s deploying now. I don’t see the shutdown=1
option in there.