[MacTUG] Startup Disk query
Dani Roloson
daroloso at uwaterloo.ca
Fri May 9 15:23:07 EDT 2014
In yet another attempt to improve general scripting skills …
% bless --info --getBoot
/dev/disk0s2
% diskutil info -plist /dev/disk0s2 > /tmp/$$.plist
% /usr/libexec/PlistBuddy -c Print /tmp/$$.plist | fgrep VolumeName
VolumeName = Mac HD
(or MediaName … they seem to be the same to me)
Unfortunately PlistBuddy won't take stdin
% bless --info --getBoot
bsdp://en0@129.97.#.#
which shows from which server it will boot but I couldn't get the netboot image out of it.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.uwaterloo.ca/pipermail/mactug/attachments/20140509/c6d43ea1/attachment.html>
More information about the MacTUG
mailing list