Article
PROBLEM: How to dynamically add custom scripts to the ZENworks Imaging Kernel without editing the initrd or other imaging files. I found it a pain that each time I needed to add a custom script to the imaging kernel that I had to edit the imaging file initrd. A solution that I thought of was to tftp a tgz from the tftp server then extract our scripts into the bin dir or other directories as desired.
SOLUTION: Create a tar gzip that contains all custom scripts. Place the file in the tftp directory. Then modify the settings.txt to bring the tgz down and extract the files.
The end result is when a custom script needs to be added to ZENworks imaging just edit the scripts.tgz.
Example
In our case we added a directory script under
c:\Program Files\ZEN Preboot Services\tftp\Data then added a file scripts.tgz (a tar gzip containg all custom scripts).
FYI: Our Imaging Server is a Windows2003 Server -- a Linux or NetWare system will have a different directory structure.
Edit settings.txt and add the following lines.
tftp $PROXYADDR -c get /scripts/scripts.tgz /bin/scripts.tgz tar xvzf /bin/scripts.tgz cd /bin
If you have any questions you may contact Jamy at jamy.smithTAKETHISOUT@spectrum-health.org
Disclaimer: As with everything else at Cool Solutions, this content is definitely not supported by Novell (so don't even think of calling Support if you try something and it blows up).
It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test, test, test before you do anything drastic with it.
Related Articles
User Comments
- Be the first to comment! To leave a comment you need to Login or Register
- 3315 reads


0