macmule / autoimagrnbi Goto Github PK
View Code? Open in Web Editor NEWAutoCasperNBI variant for use with Imagr
Home Page: https://macmule.com/projects/AutoImagrNBI/
License: The Unlicense
AutoCasperNBI variant for use with Imagr
Home Page: https://macmule.com/projects/AutoImagrNBI/
License: The Unlicense
Some areas of AutoImgrNBI mention Casper, presumably from the fork from AutoCasperNBI.
Found the items as follows in v1.3.0:
"Options" Button
Thanks for another awesome tool!
Darren
Hi,
I have currently been testing out Imagr 1.0.3 in VMFusion 8 . I've built the nbi with AutoImagrNBI and imaged the vm with a clean 10.11 image and there was a package to install the latest munki tools and run the bootstrap at first boot.
When the machine reboots it loads the login log.app but the first boot
is not running. Permissions on the launchdaemon file are: unknown
read/write, unknown read, everyone read.
The only way we have been able to get this to work is to untick the
Ignore Volume Ownership and check that root has the rights on the
file.
Found by @thehill
on Slack https://macadmins.slack.com/archives/imagr/p1487072613003150.
validateplist doesn't support file:///
paths, so you should strip the file://
and pass the native path to the plist. With that said I think that's going to hit another error of relative/absolute paths. My recommendation would be to check for file:/// path and simple WARN that the admin should verify manually.
The application config at /private/var/root/Library/Preferences/com.grahamgilbert.Imagr.plist
can now take a reporturl
key which will configure Imagr to report to that server. See:
https://github.com/grahamgilbert/imagr/wiki/Reporting
validateplist is used to check that the Imagr config plist is correctly syntaxed.
do shell script "python /Volumes/Imagr/Tools/validateplist"
but add FoundationPlist to pythonpath 1st. https://developer.apple.com/library/mac/technotes/tn2065/_index.html & ./validateplist http://something.com/imagr_config.plist
Output can then be captured & displayed, only run if Imagr config can be accessed.
This issue circles around the FirmwareUpdate.pkg that needs to be applied for Macs to boot APFS drives.
When that package (re-generated to add exit 0
to the postinstall script) attempts to install in an AutoImagrNBI booted environment the installation fails stating folders can't be moved and I/O errors.
Using AutoNBI following the instructions at https://github.com/grahamgilbert/imagr/wiki/Manual-Creation results in a NetInstall environment that does not have SIP enabled. The same FirmwareUpdate.pkg installs via the same Imagr workflow (and fails or installs gracefully) without error.
It appears SIP will need to be disabled on the NetBoot environment if possible to allow the installation of the Firmware package to proceed.
https://github.com/macmule/AutoImagrNBI/blob/master/AutoImagrNBI/Boot.sh
Replace AutoCasperNBI with AutoImagrNBI.
The majority of people using imagr at the moment aren’t using os x server for netboot, & BSDPy currently cannot create AFP Shadow files
Created a NBI using 10.11.6 as the base image.
Entered in ARD username and password in AutoImagrNBI.
Unable to connect to net booted machine using Screen sharing or ARD
This is to help with VM's mosts default RAM is 2GB.
Hello there. Is it possible to get Danish keyboard under Options, Advanced, Localisation, Input Language ?
With 10.13 a new file system comes, this needs to be detected the mounting the OS.dmg.
The end result is still a HFS NetBoot.dmg, but need to better check the mount-point.
Output from: /usr/bin/hdiutil attach <os.dmg> -nobrowse -owners on -plist
10.12:
<dict>
<key>content-hint</key>
<string>Apple_HFS</string>
<key>dev-entry</key>
<string>/dev/disk2s2</string>
<key>mount-point</key>
<string>/Volumes/Macintosh HD 1</string>
<key>potentially-mountable</key>
<true/>
<key>unmapped-content-hint</key>
<string>48465300-0000-11AA-AA11-00306543ECAC</string>
<key>volume-kind</key>
<string>hfs</string>
</dict>
10.13:
<dict>
<key>content-hint</key>
<string>41504653-0000-11AA-AA11-00306543ECAC</string>
<key>dev-entry</key>
<string>/dev/disk2s1</string>
<key>mount-point</key>
<string>/Volumes/Macintosh HD 1</string>
<key>potentially-mountable</key>
<true/>
<key>unmapped-content-hint</key>
<string>41504653-0000-11AA-AA11-00306543ECAC</string>
<key>volume-kind</key>
<string>apfs</string>
</dict>
<dict>
<key>content-hint</key>
<string>41504653-0000-11AA-AA11-00306543ECAC</string>
<key>dev-entry</key>
<string>/dev/disk2s2</string>
<key>mount-point</key>
<string>/Volumes/Preboot</string>
<key>potentially-mountable</key>
<true/>
<key>unmapped-content-hint</key>
<string>41504653-0000-11AA-AA11-00306543ECAC</string>
<key>volume-kind</key>
<string>apfs</string>
</dict>
<dict>
<key>content-hint</key>
<string>41504653-0000-11AA-AA11-00306543ECAC</string>
<key>dev-entry</key>
<string>/dev/disk2s3</string>
<key>mount-point</key>
<string>/Volumes/Recovery</string>
<key>potentially-mountable</key>
<true/>
<key>unmapped-content-hint</key>
<string>41504653-0000-11AA-AA11-00306543ECAC</string>
<key>volume-kind</key>
<string>apfs</string>
</dict>
Not an AutoImagrNBI issue, but related to worth posting
As per: http://www.openradar.me/34639788
Trying to Boot an NBI hosted via the NetInstall Service from Server.app 5.4 (17S1207) will fail to boot
Booting to NBI completes
Booting to NBI never completes, verbose booting shows some RPC Timeout errors
Server.app 5.4 (17S1207)
The below (as root) seem to resolve the issue:
echo "/Library/NetBoot/NetBootSP0 -ro -maproot=root" >> /etc/exports
nfsd stop
nfsd start
When booting to 10.13, auto-login sometimes fails
As per: imagr/imagr#122
Looks to be an Apple issue, recreated with SIU.
As per: http://www.openradar.me/34251768
10.13 NetBoot images created with SIU from a beta 8, 9 source take 8+ minutes to boot.
10.12.x same hardware is 3-4 minutes
8-9 minutes but boot does complete
10.13
In my testing the source DMG was created with AutoDMG
Issue persists in release
10.11's PlatformSupport.plist, whilst still located at /System/Library/CoreServices/PlatformSupport.plist, only contains the "SupportedBoardIds" array & not also the "SupportedModelProperties" as other OS's.
This error is due to me looking for the "SupportedBoardIds" array.
I'll log a bug with Apple regarding this change & think about a solution.
10.9's PlatformSupport.plist below:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>SupportedBoardIds</key>
<array>
<string>Mac-031B6874CF7F642A</string>
<string>Mac-F2268DC8</string>
<string>Mac-F22587C8</string>
<string>Mac-50619A408DB004DA</string>
<string>Mac-F2218EA9</string>
<string>Mac-742912EFDBEE19B3</string>
<string>Mac-F22C8AC8</string>
<string>Mac-AFD8A9D944EA4843</string>
<string>Mac-F227BEC8</string>
<string>Mac-F226BEC8</string>
<string>Mac-F305150B0C7DEEEF</string>
<string>Mac-35C1E88140C3E6CF</string>
<string>Mac-77EB7D7DAF985301</string>
<string>Mac-2E6FAB96566FE58C</string>
<string>Mac-7BA5B2794B2CDB12</string>
<string>Mac-BE0E8AC46FE800CC</string>
<string>Mac-00BE6ED71E35EB86</string>
<string>Mac-F42D86A9</string>
<string>Mac-4B7AC7E43945597E</string>
<string>Mac-F22C89C8</string>
<string>Mac-F22587A1</string>
<string>Mac-937CB26E2E02BB01</string>
<string>Mac-942459F5819B171B</string>
<string>Mac-F42388C8</string>
<string>Mac-F223BEC8</string>
<string>Mac-F4238CC8</string>
<string>Mac-F222BEC8</string>
<string>Mac-4BC72D62AD45599E</string>
<string>Mac-F2208EC8</string>
<string>Mac-66F35F19FE2A0D05</string>
<string>Mac-F4238BC8</string>
<string>Mac-189A3D4F975D5FFC</string>
<string>Mac-C08A6BB70A942AC2</string>
<string>Mac-8ED6AF5B48C039E1</string>
<string>Mac-FA842E06C61E91C5</string>
<string>Mac-FC02E91DDD3FA6A4</string>
<string>Mac-06F11FD93F0323C5</string>
<string>Mac-F42C86C8</string>
<string>Mac-06F11F11946D27C5</string>
<string>Mac-6F01561E16C75D06</string>
<string>Mac-F60DEB81FF30ACF6</string>
<string>Mac-81E3E92DD6088272</string>
<string>Mac-F2268EC8</string>
<string>Mac-F22589C8</string>
<string>Mac-3CBD00234E554E41</string>
<string>Mac-F22788AA</string>
<string>Mac-F22586C8</string>
<string>Mac-F221BEC8</string>
<string>Mac-942C5DF58193131B</string>
<string>Mac-F2238BAE</string>
<string>Mac-9F18E312C5C2BF0B</string>
<string>Mac-F2268CC8</string>
<string>Mac-C3EC7CD22292981F</string>
<string>Mac-F221DCC8</string>
<string>Mac-F2218FC8</string>
<string>Mac-94245A3940C91C80</string>
<string>Mac-27ADBB7B4CEE8E61</string>
<string>Mac-F65AE981FFA204ED</string>
<string>Mac-F42D89C8</string>
<string>Mac-942B59F58194171B</string>
<string>Mac-F42D89A9</string>
<string>Mac-F2268AC8</string>
<string>Mac-F22C86C8</string>
<string>Mac-F2238AC8</string>
<string>Mac-942452F5819B1C1B</string>
<string>Mac-F2218FA9</string>
<string>Mac-F42D88C8</string>
<string>Mac-94245B3640C91C81</string>
<string>Mac-F42D86C8</string>
<string>Mac-42FD25EABCABB274</string>
<string>Mac-7DF2A3B5E5D671ED</string>
<string>Mac-F2268DAE</string>
<string>Mac-2BD1B31983FE1663</string>
<string>Mac-7DF21CB3ED6977E5</string>
<string>Mac-031AEE4D24BFF0B1</string>
<string>Mac-F42C88C8</string>
<string>Mac-35C5E08120C7EEAF</string>
<string>Mac-F42386C8</string>
<string>Mac-E43C1C25D4880AD6</string>
<string>Mac-F42C89C8</string>
<string>Mac-942B5BF58194151B</string>
<string>Mac-F2218EC8</string>
</array>
<key>SupportedModelProperties</key>
<array>
<string>MacPro6,1</string>
<string>MacBookPro4,1</string>
<string>Macmini5,3</string>
<string>Macmini5,2</string>
<string>Macmini5,1</string>
<string>iMac10,1</string>
<string>MacPro4,1</string>
<string>MacBookPro5,2</string>
<string>iMac8,1</string>
<string>MacBookPro5,5</string>
<string>MacBookAir4,2</string>
<string>iMac11,1</string>
<string>MacBookPro7,1</string>
<string>iMac11,3</string>
<string>MacBookPro8,2</string>
<string>MacBookPro3,1</string>
<string>iMac13,2</string>
<string>iMac13,3</string>
<string>MacPro5,1</string>
<string>iMac9,1</string>
<string>Macmini3,1</string>
<string>iMac13,1</string>
<string>Macmini7,1</string>
<string>iMac12,2</string>
<string>MacBook7,1</string>
<string>iMac12,1</string>
<string>MacBook5,1</string>
<string>MacBook5,2</string>
<string>iMac11,2</string>
<string>MacBookPro5,1</string>
<string>Macmini6,1</string>
<string>Macmini6,2</string>
<string>MacBookPro11,3</string>
<string>MacBookPro11,2</string>
<string>MacBookPro11,1</string>
<string>MacBookPro6,2</string>
<string>MacBookPro10,2</string>
<string>MacBookPro10,1</string>
<string>iMac14,4</string>
<string>MacBookPro9,2</string>
<string>iMac14,1</string>
<string>iMac14,3</string>
<string>iMac14,2</string>
<string>MacBookPro6,1</string>
<string>MacBookPro5,4</string>
<string>iMac15,1</string>
<string>MacBookAir3,1</string>
<string>MacBookAir3,2</string>
<string>Macmini4,1</string>
<string>Xserve3,1</string>
<string>MacBookAir2,1</string>
<string>MacBookAir6,1</string>
<string>MacBookAir6,2</string>
<string>MacBookPro8,1</string>
<string>MacBookAir4,1</string>
<string>MacBookPro8,3</string>
<string>iMac7,1</string>
<string>MacBookPro9,1</string>
<string>MacBook6,1</string>
<string>MacBookPro5,3</string>
<string>MacBookAir5,2</string>
<string>MacPro3,1</string>
<string>MacBookAir5,1</string>
</array>
</dict>
</plist>
10.10 PlatformSupport.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>SupportedBoardIds</key>
<array>
<string>Mac-031B6874CF7F642A</string>
<string>Mac-F2268DC8</string>
<string>Mac-F22C86C8</string>
<string>Mac-F22587C8</string>
<string>Mac-50619A408DB004DA</string>
<string>Mac-F2218EA9</string>
<string>Mac-742912EFDBEE19B3</string>
<string>Mac-F22C8AC8</string>
<string>Mac-F22586C8</string>
<string>Mac-AFD8A9D944EA4843</string>
<string>Mac-F227BEC8</string>
<string>Mac-F226BEC8</string>
<string>Mac-F305150B0C7DEEEF</string>
<string>Mac-35C1E88140C3E6CF</string>
<string>Mac-77EB7D7DAF985301</string>
<string>Mac-2E6FAB96566FE58C</string>
<string>Mac-7BA5B2794B2CDB12</string>
<string>Mac-BE0E8AC46FE800CC</string>
<string>Mac-00BE6ED71E35EB86</string>
<string>Mac-F42D86A9</string>
<string>Mac-4B7AC7E43945597E</string>
<string>Mac-F22C89C8</string>
<string>Mac-F22587A1</string>
<string>Mac-937CB26E2E02BB01</string>
<string>Mac-942459F5819B171B</string>
<string>Mac-F42388C8</string>
<string>Mac-F223BEC8</string>
<string>Mac-F4238CC8</string>
<string>Mac-F222BEC8</string>
<string>Mac-4BC72D62AD45599E</string>
<string>Mac-F2208EC8</string>
<string>Mac-66F35F19FE2A0D05</string>
<string>Mac-F4238BC8</string>
<string>Mac-189A3D4F975D5FFC</string>
<string>Mac-C08A6BB70A942AC2</string>
<string>Mac-8ED6AF5B48C039E1</string>
<string>Mac-FA842E06C61E91C5</string>
<string>Mac-FC02E91DDD3FA6A4</string>
<string>Mac-06F11FD93F0323C5</string>
<string>Mac-06F11F11946D27C5</string>
<string>Mac-6F01561E16C75D06</string>
<string>Mac-F60DEB81FF30ACF6</string>
<string>Mac-81E3E92DD6088272</string>
<string>Mac-F2268EC8</string>
<string>Mac-F22589C8</string>
<string>Mac-3CBD00234E554E41</string>
<string>Mac-F22788AA</string>
<string>Mac-F42C86C8</string>
<string>Mac-F221BEC8</string>
<string>Mac-942C5DF58193131B</string>
<string>Mac-F2238BAE</string>
<string>Mac-9F18E312C5C2BF0B</string>
<string>Mac-F2268CC8</string>
<string>Mac-C3EC7CD22292981F</string>
<string>Mac-F221DCC8</string>
<string>Mac-F2218FC8</string>
<string>Mac-94245A3940C91C80</string>
<string>Mac-27ADBB7B4CEE8E61</string>
<string>Mac-F65AE981FFA204ED</string>
<string>Mac-F42D89C8</string>
<string>Mac-942B59F58194171B</string>
<string>Mac-F42D89A9</string>
<string>Mac-F2268AC8</string>
<string>Mac-F42C89C8</string>
<string>Mac-F2238AC8</string>
<string>Mac-942452F5819B1C1B</string>
<string>Mac-F2218FA9</string>
<string>Mac-F42D88C8</string>
<string>Mac-94245B3640C91C81</string>
<string>Mac-F42D86C8</string>
<string>Mac-42FD25EABCABB274</string>
<string>Mac-7DF2A3B5E5D671ED</string>
<string>Mac-F2268DAE</string>
<string>Mac-2BD1B31983FE1663</string>
<string>Mac-7DF21CB3ED6977E5</string>
<string>Mac-031AEE4D24BFF0B1</string>
<string>Mac-F42C88C8</string>
<string>Mac-35C5E08120C7EEAF</string>
<string>Mac-F42386C8</string>
<string>Mac-E43C1C25D4880AD6</string>
<string>Mac-942B5BF58194151B</string>
<string>Mac-F2218EC8</string>
</array>
</dict>
</plist>
codesign --verify --deep --strict --verbose=2 /Applications/AutoImagrNBI.app
--prepared:/Applications/AutoImagrNBI.app/Contents/Frameworks/Sparkle.framework/Versions/Current/.
--validated:/Applications/AutoImagrNBI.app/Contents/Frameworks/Sparkle.framework/Versions/Current/.
/Applications/AutoImagrNBI.app: a sealed resource is missing or invalid
file modified: /Applications/AutoImagrNBI.app/Contents/Resources/AutoImagrNBI_1024.png
If we were to enable the web server (/usr/sbin/apachectl start
at boot) and have an option to copy a folder of stuff to /Library/WebServer/Documents
, we would be able to build a self contained Imagr environment. This would be useful for the usb drive option in particular.
Pinched from: imagr/imagr#192
This PR makes it where Disk Utility will show the disks vs the Volumes, allowing an Imagr user to easily format a disk from APFS to HFS and vice versa. The default UI of Disk Utility hides this feature.
defaults write /var/root/Library/Preferences/com.apple.DiskUtility.plist SidebarShowAllDevices -bool TRUE
The app itself is fine, most of these are cosmetics. The markdown in the release notes are a bit wonky: one 404 URL, wording is off on the version checking sentence, and your bullet points need a space for proper markdown rendering.
Because you're busy and everyone likes to copy and paste:
AutoImagrNBI now supports 10.11. Please see this post for more info: [AutoImagrNBI, AutoImagrNBI & El Capitan](https://macmule.com/2015/10/02/autocaspernbi-autoimagrnbi-el-capitan/)
NOTE: AutoImagrNBI will check the version of Imagr.app against latest release or it can download the latest release for you. Thanks to @clburlison for logging the enhancement & helping implement #2. For more information see: https://macmule.com/projects/autoimagrnbi/#Imagrapp
Other fixes included are:
* Move Imagr URL check to after adding OS.dmg & Imagr.app #16
* 10.11: Deleting dockfixup error #15
* 10.11: Error Copying booter.efi #14
* 10.11: Error Writing NBImageInfo.plist #13
* 10.11: SIP enabled #12
* Imagr slow to launch on 10.10 #11
Also, 1.3.0 is released as c61ad45 however you've made three commits since then (specifically the Sparkle fix) 0ad553e. Easiest way to correct this is just delete current 1.3.0 release and recreate with proper commit (unless Github has a way to change the release commit...however I don't believe that is the case).
Cheers, Clayton
As per: macmule/AutoCasperNBI#67
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.