GithubHelp home page GithubHelp logo

Comments (5)

macmule avatar macmule commented on June 11, 2024

Hi hunty1,

I guess i could throw in something like the below.. should be ok on all NetBoot servers then:

plutil -convert xml1 NBImageInfo.plist

On the disabled systems, if they are not there you cannot selectively choose what macs can boot from the NBI.. So that's an issue. Also, it should really stop non-supported Macs from booting into an NBI.. which i rather like.

What issue are you seeing with that array being populated?

from autocaspernbi.

calum-github avatar calum-github commented on June 11, 2024

Ah good point, I should just make a script to pull out the models that we do support for our NBI instead.

I use BSDPy and it uses the disabled systems dict in NBImageInfo.plist to prevent booting of those systems which was giving me a headache so i just ended up removing all the models in there but you're right really should prevent unsupported machines from booting the NBI

from autocaspernbi.

macmule avatar macmule commented on June 11, 2024

Cool.

I'll add the line to convert the plist to xml, so that should help non-OSX netboot.

Regards,

Ben.

On 8 Nov 2014, at 04:48, Calum [email protected] wrote:

Ah good point, I should just make a script to pull out the models that we do support for our NBI instead.

I use BSDPy and it uses the disabled systems dict in NBImageInfo.plist to prevent booting of those systems which was giving me a headache so i just ended up removing all the models in there but you're right really should prevent unsupported machines from booting the NBI


Reply to this email directly or view it on GitHub.

from autocaspernbi.

macmule avatar macmule commented on June 11, 2024

Hi Hunty1,

The xml convert should be added to 1.0.1 which I've just posted, please test & advise.

from autocaspernbi.

calum-github avatar calum-github commented on June 11, 2024

Just tested. Looks good to me! Thanks!

For what its worth and for anyone reading at home. Regarding the unsupported systems, here is a snippet from the script I run.

fix_NBImageInfo(){
echo "* Removing all disabled systems from $nbimageinfo"
$plistbuddy -c "delete :DisabledSystemIdentifiers" $nbimageinfo
$plistbuddy -c "add :DisabledSystemIdentifiers array" $nbimageinfo
echo "
* Adding list of unsupported MacBookPro systems to $nbimageinfo"
$plistbuddy -c "add :DisabledSystemIdentifiers: string MacBookPro3,1" $nbimageinfo
$plistbuddy -c "add :DisabledSystemIdentifiers: string MacBookPro2,1" $nbimageinfo
$plistbuddy -c "add :DisabledSystemIdentifiers: string MacBookPro1,2" $nbimageinfo
$plistbuddy -c "add :DisabledSystemIdentifiers: string MacBookPro1,1" $nbimageinfo
echo "* Adding list of unsupported MacBook systems to $nbimageinfo"
$plistbuddy -c "add :DisabledSystemIdentifiers: string MacBook5,1" $nbimageinfo
$plistbuddy -c "add :DisabledSystemIdentifiers: string MacBook4,1" $nbimageinfo
$plistbuddy -c "add :DisabledSystemIdentifiers: string MacBook3,1" $nbimageinfo
$plistbuddy -c "add :DisabledSystemIdentifiers: string MacBook2,1" $nbimageinfo
$plistbuddy -c "add :DisabledSystemIdentifiers: string MacBook1,1" $nbimageinfo
echo "
* Adding list of unsupported MacBookAir systems to $nbimageinfo"
$plistbuddy -c "add :DisabledSystemIdentifiers: string MacBookAir1,1" $nbimageinfo
echo "* Adding list of unsupported Macmini systems to $nbimageinfo"
$plistbuddy -c "add :DisabledSystemIdentifiers: string Macmini3,1" $nbimageinfo
$plistbuddy -c "add :DisabledSystemIdentifiers: string Macmini2,1" $nbimageinfo
$plistbuddy -c "add :DisabledSystemIdentifiers: string Macmini1,1" $nbimageinfo
echo "
* Adding list of unsupported iMac systems to $nbimageinfo"
$plistbuddy -c "add :DisabledSystemIdentifiers: string iMac7,1" $nbimageinfo
$plistbuddy -c "add :DisabledSystemIdentifiers: string iMac6,1" $nbimageinfo
$plistbuddy -c "add :DisabledSystemIdentifiers: string iMac5,2" $nbimageinfo
$plistbuddy -c "add :DisabledSystemIdentifiers: string iMac5,1" $nbimageinfo
$plistbuddy -c "add :DisabledSystemIdentifiers: string iMac4,2" $nbimageinfo
$plistbuddy -c "add :DisabledSystemIdentifiers: string iMac4,1" $nbimageinfo
echo "* Adding list of unsupported MacPro systems to $nbimageinfo"
$plistbuddy -c "add :DisabledSystemIdentifiers: string MacPro3,1" $nbimageinfo
$plistbuddy -c "add :DisabledSystemIdentifiers: string MacPro3,1" $nbimageinfo
$plistbuddy -c "add :DisabledSystemIdentifiers: string MacPro2,1" $nbimageinfo
$plistbuddy -c "add :DisabledSystemIdentifiers: string MacPro1,1" $nbimageinfo
echo "
* Adding list of unsupported Xserve systems to $nbimageinfo"
$plistbuddy -c "add :DisabledSystemIdentifiers: string Xserve3,1" $nbimageinfo
$plistbuddy -c "add :DisabledSystemIdentifiers: string Xserve2,1" $nbimageinfo
$plistbuddy -c "add :DisabledSystemIdentifiers: string Xserve1,1" $nbimageinfo
}

from autocaspernbi.

Related Issues (20)

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.