bruienne / autonbi Goto Github PK
View Code? Open in Web Editor NEWLicense: BSD 3-Clause "New" or "Revised" License
License: BSD 3-Clause "New" or "Revised" License
Running on macOS 10.13.4 and using "Install macOS HighSierra.app" version 10.13.4
bash-3.2# ./AutoNBI.py -s /Applications/Install\ macOS\ High\ Sierra.app/ -d /Files/build_nbi/ -n HighSierra-10.13.4-auto --auto
Locating installer...
Install source is /Applications/Install macOS High Sierra.app/Contents/SharedSupport/InstallESD.dmg
Mounting /Applications/Install macOS High Sierra.app/Contents/SharedSupport/InstallESD.dmg
Prepping /Files/build_nbi/ with source mounted at /private/tmp/tmpjjpkju/dmg.EWsxJB
Creating NBI at /Files/build_nbi/
Base NBI Operating System is 10.13.4
This is a 10.13 or newer installer, sourcing BaseSystem.dmg from SharedSupport.
NBI mounted at /private/tmp/tmpjjpkju/dmg.kdgxGw
Install source is 10.13 or newer, BaseSystem.dmg is in an alternate location...
Running self.dmgresize...
Will resize DMG at mount: /private/tmp/tmpjjpkju/dmg.kdgxGw/Install macOS High Sierra.app/Contents/SharedSupport/BaseSystem.dmg
Error "hdiutil: resize: failed. No such file or directory (2)
" while running command ['/usr/bin/hdiutil', 'resize', '-size', '8G', '-shadow', '/tmp/tmpjjpkju/BaseSystem.shadow', '/private/tmp/tmpjjpkju/dmg.kdgxGw/Install macOS High Sierra.app/Contents/SharedSupport/BaseSystem.dmg']
Running self.dmgattach...
Error "hdiutil: attach failed - No such file or directory
" while running command ['/usr/bin/hdiutil', 'attach', '-shadow', '/tmp/tmpjjpkju/BaseSystem.shadow', '-mountRandom', '/tmp/tmpjjpkju', '-nobrowse', '-plist', '-owners', 'on', '/private/tmp/tmpjjpkju/dmg.kdgxGw/Install macOS High Sierra.app/Contents/SharedSupport/BaseSystem.dmg']
Traceback (most recent call last):
File "./AutoNBI.py", line 1364, in
main()
File "./AutoNBI.py", line 1343, in main
nbi.modify(nbimount, netinstallpath, nbishadow, mount)
File "./AutoNBI.py", line 863, in modify
basesystemplist = plistlib.readPlistFromString(plist)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plistlib.py", line 103, in readPlistFromString
return readPlist(StringIO(data))
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plistlib.py", line 78, in readPlist
rootObject = p.parse(pathOrFile)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plistlib.py", line 406, in parse
parser.ParseFile(fileobj)
xml.parsers.expat.ExpatError: no element found: line 1, column 0
It seems /usr/bin/log
is not available on 10.12 when creating an NBI via AutoNBI. It's a bit of a problem since Sierra has the unified logging. I'm not actually sure where/how to add this into the code base.
Maybe the following helps?
otool -L /usr/bin/log
/usr/bin/log:
/System/Library/PrivateFrameworks/LoggingSupport.framework/Versions/A/LoggingSupport (compatibility version 1.0.0, current version 518.30.7)
/System/Library/PrivateFrameworks/CoreSymbolication.framework/Versions/A/CoreSymbolication (compatibility version 1.0.0, current version 61050.0.0)
/usr/lib/libsqlite3.dylib (compatibility version 9.0.0, current version 253.0.0)
/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation (compatibility version 300.0.0, current version 1349.25.0)
/usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version 228.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1238.0.0)
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 1348.28.0)
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.