Modifying JAMF’s NetSUS to host DeployStudio NetBoot boot sets
Gary Larizza updated his NetSUS appliance write-up earlier today, to include information on how to modify the NetSUS’s /var/www/webadmin/scripts/adminHelper.sh so that it can accommodate DeployStudio’s NetBoot sets.
Gary’s way is elegant and uses vim. Consider this the illustrated version that’s doing the same process the hard way with nano. See below the jump for the details.
Start up your NetSUS VM and hit the Enter key to get past the opening welcome screen
Log in as the shelluser account
Once at the prompt, run the following command to change to the /var/www/webadmin/scripts directory:
Once in /var/www/webadmin/scripts, use nano to open the adminHelper.sh script for editing.
sudo nano adminHelper.sh
In adminHelper.sh, go to line 98 and edit the following line (outlined in yellow):
From: dmgfile=`echo $files | grep dmg`
To: dmgfile=`echo $files | egrep dmg\|sparseimage`
Hit Control-X to exit nano, and you’ll be prompted to save your changes.
Save changes as adminHelper.sh
From here, you can use DeployStudio to generate a Netboot booter image and upload it to the NetSUS VM through the web-based GUI. Also, while you’re in here, consider installing SSH using Gary’s instructions at the linked post above. It’ll make future editing like this a lot more painless.
As Gary mentions in his post, the changes you made to the adminHelper.sh script should get propagated to /etc/dhcpd.conf when you use the GUI to set up a new Netboot image.