GithubHelp home page GithubHelp logo

macmule / autoimagrnbi Goto Github PK

View Code? Open in Web Editor NEW
32.0 32.0 2.0 15.31 MB

AutoCasperNBI variant for use with Imagr

Home Page: https://macmule.com/projects/AutoImagrNBI/

License: The Unlicense

AppleScript 83.19% Shell 3.40% Objective-C 9.80% C 0.09% Python 3.37% Rich Text Format 0.12% CSS 0.03%

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

mosen tmaone

autoimagrnbi's Issues

Mentions of 'Casper' (Gasp!) in some tooltips

Some areas of AutoImgrNBI mention Casper, presumably from the fork from AutoCasperNBI.

Found the items as follows in v1.3.0:
"Options" Button

  • "Always Set" Tab
  • "Creates a minimal Dock..." - Mentions "Casper" instead of "Imagr" in the tool tip
  • "Copies Imagr to NBI's Application's folder" - Mentions "Casper" instead of "Imagr" in the tool tip
  • "Launches Imagr at Login" - Mentions "Casper" instead of "Imagr" in the tool tip
  • "Removes Imagr's Quarantine Flag" - Mentions "Casper" instead of "Imagr" in the tool tip
  • "Standard" Tab
  • Netboot - "Reduce Image Size" - Mentions "Casper" instead of "Imagr" in the tool tip
  • Screen Sharing - VNC - "Passwords are saved in AutoCasperNBI's" - Wrong name and seems to end mid-sentence

Thanks for another awesome tool!

Darren

LoginLog.app and /Library/LaunchDaemons/com.grahamgilbert.first-boot-pkg.plist.

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.

Add validateplist & foundation plist to app bundle

validateplist is used to check that the Imagr config plist is correctly syntaxed.

  1. This can be found in: Imagr.dmg/Tools/. So add to app bundle, & if the Imagr.dmg is supplied use that one.
  2. Requires FoundationPlist from: https://github.com/munki/munki/blob/master/code/client/munkilib/FoundationPlist.py
  3. Call validateplist via 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.

screenshot 2015-11-26 16 11 04

SIP enabled NetBoot environment blocking pkg installation

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.
pasted image at 2017_09_28 08_11 am

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.

Tick rc.netboot by default

The majority of people using imagr at the moment aren’t using os x server for netboot, & BSDPy currently cannot create AFP Shadow files

Danish keyboard

Hello there. Is it possible to get Danish keyboard under Options, Advanced, Localisation, Input Language ?

APFS Volume support

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>

NetInstall Service NFS on High Sierra

Not an AutoImagrNBI issue, but related to worth posting

Open Radar

As per: http://www.openradar.me/34639788

Summary:

Trying to Boot an NBI hosted via the NetInstall Service from Server.app 5.4 (17S1207) will fail to boot

Steps to Reproduce:

  1. Create an NBi
  2. Add to NetInstall Service
  3. Enable NetInstall Service
  4. Share NBI over NFS
  5. Attempt to Boot from NBI

Expected Results:

Booting to NBI completes

Actual Results:

Booting to NBI never completes, verbose booting shows some RPC Timeout errors

Version:

Server.app 5.4 (17S1207)

Notes:

The below (as root) seem to resolve the issue:

echo "/Library/NetBoot/NetBootSP0 -ro -maproot=root" >> /etc/exports
nfsd stop
nfsd start

10.13 NBI: Take 8+ minutes to boot

Looks to be an Apple issue, recreated with SIU.

Open Radar

As per: http://www.openradar.me/34251768

Summary:

10.13 NetBoot images created with SIU from a beta 8, 9 source take 8+ minutes to boot.

Steps to Reproduce:

  1. Create a NetBoot Image with SIU with a Beta 8 or 9 APFS volume as the source
  2. Time how long booting to the NetBoot takes (from boot to loginwindow).

Expected Results:

10.12.x same hardware is 3-4 minutes

Actual Results:

8-9 minutes but boot does complete

Version:

10.13

Notes:

In my testing the source DMG was created with AutoDMG

Comments

Issue persists in release

10.11: Error Writing NBImageInfo.plist

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>

SIP enabled

Below is from a 1.3 created 10.11 NBI:

screenshot 2015-09-29 21 03 34

Seems like SIP might be enabled on a SIU creating NBI.. to investigate

CodeSigning issue

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

Option to enable webserver and copy in web root

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.

Set Disk Utility will show the disks vs the Volumes

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

Issues with 1.3.0 release

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

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.