Code Monkey home page Code Monkey logo

autonbi's People

Contributors

bruienne avatar chasetb avatar erikng avatar jcuozzo avatar timsutton 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

autonbi's Issues

Wrong path to tmp files.

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

log cli tool not available on 10.12

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)

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.