Absent Member.
Absent Member.

ZCM11 PXE pre-boot; custom script

I was hoping someone could give me some insight on how to add my own custom linux bash scripts to the PXE menu.

I have edited the pxemenu.txt file under /srv/tftp with:

option = execute ; "dd wipe drive" ; "ZERO drive/ISD with dd command" ;pxelinux.0 ; dd.cfg

I want to run this script automatically after picking the option in the menu

Here is my script file: dd.sh

dd if=/dev/zero of=/dev/sda bs=2048 seek=5 count=1

This I believe will clear the hdd including the ISD partition. I'm not too worried about writing with random vs. zeros.

What should I be adding to my .dd.cfg file to run this after our tech team chooses it.

Let's consider the dd.cfg file will be stored in /srv/tftp and the dd.sh file will be contained in /srv/tftp/dd

The dd.sh file has been chmod +x

Any help would be appreciated. 🙂

What is the best practice for this kind of situation?

I'd also like the option to boot a .ISO file like BART PE, I've done it on my FOG server at home, but it's been a while. Any help!

Thanks all
Labels (2)
1 Reply
Absent Member.
Absent Member.

Re: ZCM11 PXE pre-boot; custom script


It appears that in the past few days you have not received a response to your
posting. That concerns us, and has triggered this automated reply.

Has your problem been resolved? If not, you might try one of the following options:

- Visit http://support.novell.com and search the knowledgebase and/or check all
the other self support options and support programs available.
- You could also try posting your message again. Make sure it is posted in the
correct newsgroup. (http://forums.novell.com)

Be sure to read the forum FAQ about what to expect in the way of responses:

If this is a reply to a duplicate posting, please ignore and accept our apologies
and rest assured we will issue a stern reprimand to our posting bot.

Good luck!

Your Novell Product Support Forums Team

The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.