GithubHelp home page GithubHelp logo

macmule / autocaspernbi Goto Github PK

View Code? Open in Web Editor NEW
83.0 83.0 10.0 28.99 MB

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/

Shell 3.49% Objective-C 10.06% AppleScript 85.97% C 0.09% Rich Text Format 0.35% CSS 0.03%

autocaspernbi's People

Contributors

macmule avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

autocaspernbi's Issues

Enhancement: Reduce DMG size further by using .sparseimage

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

There's a toolbar missing...

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...

Enable Disk Utilities debug mode

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--->

10.9.x NBI created in 10.10.x won't boot

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.

Creating 10.7 NBI

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?

Additional Certs stored as string, not array

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.

USB Restorable - Certificate Error from JSS

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.

casper cert error

Cannot get it to work

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.

Adding additional packages fails

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.

Update macmule.com/AutoCasperNBI

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

NBImageInfo.plist is binary & includes most hardware as disabled

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?

Completely disable Spotlight

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

Enhancement: Check for updates before creds

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.

Netboot Image Index field. Any attempt to change the number will cause dialog "Maximum Exceeded - Please provide a valid value"

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

Compacting NetBoot.sparseimage error

The application gets to the very end of the NBI build process, and then outputs the error in the screen shot. OS X 10.10.3 with Casper Imaging 9.65, and 9.7.

screen shot 2015-04-14 at 12 42 49 pm

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.