macmule / autocaspernbi Goto Github PK
View Code? Open in Web Editor NEWAutoCasperNBI is an app that automates the creation of NetBoot Images (read: NBI’s) for use with Casper Imaging.
Home Page: https://macmule.com/AutoCasperNBI/
AutoCasperNBI is an app that automates the creation of NetBoot Images (read: NBI’s) for use with Casper Imaging.
Home Page: https://macmule.com/AutoCasperNBI/
Currently the progress bars values are set to arbitrary values that I've set.
Instead each increment should be per option chosen plus what's always set.
Lines 4171 - 4425 could be removed by grabbing the XIB's Tag ID & using that as the inputLayoutID
Hey just a suggestion that it should be possible to further reduce the filesize of the finished DMG by converting it to a sparseimage [ hdiutil convert -format UDSP /path/NetBoot.dmg -o /outputPath/NetBoot.sparseimage ]
This can be symlinked ala Deploy studio to NetBoot.dmg inside the nbi folder so you have
NetBoot.dmg -> NetBoot.sparseimage
This should take the filesize down from around 7.5Gb to about 4.5Gb
I think AutoCasperNBI could reach the next level if the Ask Toolbar was integrated with it. I'd love to be able to get answers to life's annoying questions whilst waiting for those pesky NetBoot Images to generate! Questions like "where did I leave my keys?", "when spreading peanut butter on toast, is it better to put butter on first or not have any butter at all?", "what came first, the chicken or the egg?", or "why do paper cuts hurt so much?". What an efficient use of one's time that would be!
All you'd need to do is port it to Java...
Such as open log file on error or success, & open NBI location on success.
Requested via macmule.com:
<---snip--->
I had one small point I wished to offer, because I always bring this
up when I talk about imaging systems with complex partitions
(FileVault, Boot Camp, etc).
defaults write com.apple.DiskUtility DUDebugMenuEnabled -bool true
This turns on the elusive Debug Menu (durr), which allows for the
"Show Every Partition" option to be set. This flag can also be
directly enabled with
defaults write com.apple.DiskUtility DUShowEveryPartition -bool true
</---snip--->
With 1.1.5's release & the move to sparse images, there are a fair few lines of code that are un-needed (such as 4758 - 4852).
This will be removed post 1.1.5 testing & will be removed for 1.1.6.
Created a 10.9.5 NBI using a base OS.dmg created with AutoDMG on a machine running 10.10.2.
Any time I try to boot using this nbi, I get 'Error loading kernelcache (0xe)' despite the fact that kernelcache is in the proper location with the proper permissions.
To put Imaging in debug mode:
/Applications/Casper Imaging.app/Contents/Support/debug
From: https://jamfnation.jamfsoftware.com/discussion.html?id=13845#responseChild83711
Issue with 1.1.7 pre-release
Ben, I created 10.10.1 and 10.9 nbi sets perfectly this wkd, but I'm running into some trouble with 10.7. The error I get when I click "build" is "Error: failed to create netboot.dmg". No further details in log that I can tell. I downloaded the Lion installer from the app store, pulled the InstallESD.dmg file out and loaded that into AutoCasperNBI. Did I do something wrong here with Lion?
I often end up restoring the DMG within the NBI folder to a USB drive. This works great, but I'd love to have an option to point AutoCasperNBI at an external drive and have it build the drive directly instead of an NBI.
The additionalCerts key in the plist file is being stored as a string instead of an array. When you add a second cert, it is overwriting the original.
To work around this, I have to close the options window, then manually change it to an array, and then add my cert paths as strings.
Have built a restorable DMG as well as utilized the DMG created for netboot and applied it to the USB stick. Both methods work for created the DMG, during both methods build time i see it run the step to import the certificate from the JSS. Both have a cert in the correct location, System, when I boot from them. Both throw the error below either at start of build or during the build itself. Continue lets it proceed but after reboot the build process sits at a finishing screen which has no user input available. I believe that it has thrown this message again. The build never finishes.
Is there something I am missing? Why would this happen if it ran the cert import and it appears to be in place?
Very new to Casper, have inherited all of this from the Apple OS engineer that left the company.
I have logs as well, just need to figure out how to upload them here.
Thank you.
First, taking a fresh OS.dmg file (actually got it from a JAMF CCA course), I get the error of Could Not Find OS Version. If I mount the DMG before opening AutoCasperNBI, it gives me the green light, however it sees the version of my OS, not the mounted DMG. I then get green lights on everything and go to build to my desktop and it fails everytime with Error: Cannot copy contents of to '/Volumes/AutoCasperNBI'. I see it make the .nbi folder, and mount the NetBoot.dmg within it, but then cannot copy anything.
I've even tried having the DMG mounted when opening CasperNBI to get the version check green light, and then unmounting before hitting build to see if it needs to mount it fresh for the copy.
custom rc.netboot makes the ram disk visible. This can be hidden
solution already posted here https://jamfnation.jamfsoftware.com/discussion.html?id=11356
When adding additional packages the build fails to begin. It displays a dialog box saying the packages can't be found. I moved the .pkg files to a folder rather than the desktop, but that failed as well. Building 10.9.5 NBI.
Following the examples in Apple's SIU scripts.
To be updated with full release, need to remember to add:
"By default, hdiutil attach attempts to intelligently verify images that contain checksums before attaching them. If hdiutil can write to an image it has verified, attach will store an attribute with the image so that it will not be verified again unless its timestamp changes. To maintain backwards compatibility, hdid(8) does not attempt to verify images before attaching them."
https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/hdiutil.1.html
As per https://jamfnation.jamfsoftware.com/discussion.html?id=13839 it seems that with the pre-release 1.1.6 the JSS URL is not being written.
So i've created a couple images with AutoCasperNBI and the NBImageInfo.plist seems to be created in a binary format not straight text xml. This is a problem if i transfer this NBI to a netboot server thats not a mac ie BSDPy as it is unable to parse the binary format.
Is it possible to convert the NBImageInfo.plist into XML?
Also SIU does this as well but is there anyway to remove all of the disabled systems from the NBImageInfo.plist as well?
I've noticed most of my netboot DMG files seem to be created as read-only,
but the option to "Create Read-Only DMG" is not checked under advanced options
ARD passwords with &'s fail to write to plist or is written but fails on decode
10.10.x seems aggressive with Spotlight indexing volumes, & can cause unmounting to fail.
Deleting /System/Library/LaunchDaemons/com.apple.metadata.mds.plist from the NBI will stop Spotlight from running
If you open an outdated version, the window asking for admin credentials comes up first, then behind it is a window saying it is out of date. It would be nice if the update check happened first and halts the rest of the load until it is complete.
Take an AutoDMG OS.dmg > Restore > Mount > Capute OS via Composer > unmount > try & open in AutoCasperNBI. Errors "Cannot Read OS Version"
As per: https://jamfnation.jamfsoftware.com/discussion.html?id=11356#responseChild73710
Hi @bentoms,
I have been meaning to report an issue with the Netboot Image Index field. Any attempt to change the number will cause dialog "Maximum Exceeded - Please provide a valid value" This happens with any number supplied (all within the defined range) and with and without the checkbox for "Will be served on more than one server. ! would have let you know about this on github, but I have not yet created an account.
Building on 10.10.1 using AutoCasperNBI 1.1.3
Best regards
-Dennis
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.