Comments (5)
Ok.. so the issue seems to be the grep before awk, & bad assumptions I had made in that: https://github.com/macmule/AutoCasperNBI/blob/master/AutoCasperNBI/AutoCasperNBIAppDelegate.applescript#L513
Basically, a Composer captured OS.dmg contains JUST the OS partition. So hdiutil attach output looks like:
/usr/bin/hdiutil attach ~/Desktop/ComposerHD.dmg expected CRC32 $A02AE580 /dev/disk2 /Volumes/Macintosh HD 1
Whereas an AutoDMG OS.dmg outputs:
/usr/bin/hdiutil attach /Volumes/QuickStick/osx-10.10.1-14B25.hfs.dmg expected CRC32 $32279B63 /dev/disk3 GUID_partition_scheme /dev/disk3s1 EFI /dev/disk3s2 Apple_HFS /Volumes/Macintosh HD 2 /dev/disk3s3 Apple_Boot
As horrible as the below looks, it returns the correct mount path for both of the above DMGs:
/usr/bin/hdiutil attach /Volumes/QuickStick/osx-10.10.1-14B25.hfs.dmg | awk -F\"[<>]\" 'a{print $3; exit}$2==\"key\"&&$3==\"mount-point\"{a=1}'
Now we're parsing as a plist & awking out what we need, granted not anywhere near "best practice" but seems to resolve this issue.
Other attempts involved writing a plist & reading from that, but the nested dicts within the arrays gave me some grief (gist below) & with the above working.. i'll put the above into 1.1.5.
https://gist.github.com/macmule/827f8ddb8a65ddc007b2
Better/more elegant solutions welcome, as long as they can be ran within an AppleScript Objective-C app.
from autocaspernbi.
Summarised as:
from autocaspernbi.
fixed in 1.1.5
from autocaspernbi.
When will 1.1.5 be released?
from autocaspernbi.
Also, to add that Composer 9.7 can now capture the Recovery HD, which would have resolved this issue too.
from autocaspernbi.
Related Issues (20)
- Cannot build 10.13 APFS NBI on older OS's HOT 1
- Add Jamf Imaging.app to Dock
- 10.13 NBI: Auto Login Sometimes Fails HOT 6
- 10.13 NBI: Take 8+ minutes to boot HOT 2
- NetInstall Service NFS on High Sierra HOT 1
- Jamf Imaging 10.0 in Restorable DMG HOT 1
- Build Greyed out when major version difference HOT 2
- System Administrator Security & Privacy Setting HOT 8
- Build and options greyed out with 10.13.6 HOT 3
- Trying to build with a 10.14 OS.dmg fails HOT 1
- Disk Utility not working in macOS Sierra NBI created with AutoCasperNBI 1.4.1 HOT 10
- Dark Mode HOT 1
- Mojave Support HOT 1
- Fix incrementing CFBundleVersion HOT 1
- Update version check HOT 1
- Doesn't like Imaging Tool 10.8 HOT 10
- Mojave Custom Desktop HOT 1
- Correctly Sign
- Image app selection doesn't seem to work HOT 1
- Create a nbi with autocaspernbi and "InstallESD.dmg" of Mojave install HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from autocaspernbi.