Shell Script via PXE boot menu

Itamar
New Member Posts: 1
Hi,
Not sure if that's the right place to ask about this, but I'm trying to get pxe boot to run a .sh script instead of restoring an image (.img/.iso)
I have installed clonezilla live on my pxe server, as was suggested to me by a colleague, which in theory should be able to execute .sh scripts - though I've followed the steps suggested by clonezilla to no avail.
I have modified the Default file (under /var/lib/tftpboot/pxelinux.cfg) to contain something like this:
initrd=/tftboot/initrd.img boot=live config noswap keyboard-layouts=en nolocales edd=on nomodeset ocs_live_run="sudo /tftpboot/create_target.sh" ocs_live_extra_param="" ocs_live_keymap="none" ocs_live_batch="yes" fetch=tftp://<<MY HOST DNS>>/images/clonezilla/live/filesystem.squashfs
A client that boots into the PXE boot option is shown the custom title i've created - but that's all. It doesn't attempt to execute the script.
If any of you good people can point me in the direction of solving this/finding a place appropriate this this kind of a question - it will be greatly appreciated!
Thanks!
Not sure if that's the right place to ask about this, but I'm trying to get pxe boot to run a .sh script instead of restoring an image (.img/.iso)
I have installed clonezilla live on my pxe server, as was suggested to me by a colleague, which in theory should be able to execute .sh scripts - though I've followed the steps suggested by clonezilla to no avail.
I have modified the Default file (under /var/lib/tftpboot/pxelinux.cfg) to contain something like this:
initrd=/tftboot/initrd.img boot=live config noswap keyboard-layouts=en nolocales edd=on nomodeset ocs_live_run="sudo /tftpboot/create_target.sh" ocs_live_extra_param="" ocs_live_keymap="none" ocs_live_batch="yes" fetch=tftp://<<MY HOST DNS>>/images/clonezilla/live/filesystem.squashfs
A client that boots into the PXE boot option is shown the custom title i've created - but that's all. It doesn't attempt to execute the script.
If any of you good people can point me in the direction of solving this/finding a place appropriate this this kind of a question - it will be greatly appreciated!
Thanks!
Categories
- 287 All Categories
- 104 Announcements & News
- 47 Product News - New Product/Product Change Notice/ End-of-life
- 179 Welcome Developers!
- 49 Unboxing & Project Sharing
- 18 Tech Updates
- 376 UP Products
- 6 UP Xtreme i11
- 12 UP Squared 6000
- 38 UP Squared Pro
- 126 UP Xtreme
- 796 UP Squared
- 1.4K UP Board
- 86 UP Core Plus
- 217 UP Core
- 3 UP Xtreme Lite
- 40 UP AI Edge
- 213 Starter Kits & Peripheral