Skip to content

Instantly share code, notes, and snippets.

@grahampugh
Last active August 29, 2015 14:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save grahampugh/289c13c19581c076d371 to your computer and use it in GitHub Desktop.
Save grahampugh/289c13c19581c076d371 to your computer and use it in GitHub Desktop.
meegat
#!/bin/sh
SCRIPT_NAME=`basename "${0}"`
SCRIPT_PATH=`dirname "${0}"`
echo "${SCRIPT_NAME} - v1.0 ("`date`")"
if [ ${#} -ne 1 ]
then
echo "Command: ${SCRIPT_NAME} ${*}"
echo "Usage: ${SCRIPT_NAME} <volume name>"
echo "RuntimeAbortWorkflow: missing arguments!"
exit 1
fi
if [ "${1}" = "/" ]
then
VOLUME_PATH=/
else
VOLUME_PATH=/Volumes/${1}
fi
if [ ! -e "${VOLUME_PATH}" ]
then
echo "Command: ${SCRIPT_NAME} ${*}"
echo "Usage: ${SCRIPT_NAME} <volume name>"
echo "RuntimeAbortWorkflow: \"${VOLUME_PATH}\" volume not found!"
exit 1
fi
defaults write "${VOLUME_PATH}"/Library/Preferences/com.apple.alf globalstate -int 1
chmod 644 "${VOLUME_PATH}"/Library/Preferences/com.apple.alf.plist
chown root:wheel "${VOLUME_PATH}"/Library/Preferences/com.apple.alf.plist
echo "${SCRIPT_NAME} - end"
exit 0
====================================================================================================
DeployStudio Runtime
DSCore.framework version 1.6.11 (b140710), Copyright 2014 The DeployStudio Team.
MAC address: 00:26:4a:18:b2:68
Network address: 137.222.58.184 (meegat.phy.bris.ac.uk)
Network interface speed: AUTOSELECT (1000BASET <FULL-DUPLEX,FLOW-CONTROL>)
Operating System: Mac OS X Version 10.9.4 (Build 13E28)
Date: 15/06/18 09:04:09
====================================================================================================
23 plugins were successfully loaded!
Could not connect to the server. (-1004), retrying command in 5s...
Could not connect to the server. (-1004), retrying command in 5s...
Could not connect to the server. (-1004), retrying command in 5s...
Could not connect to the server. (-1004), retrying command in 5s...
Could not connect to the server. (-1004), retrying command in 5s...
Could not connect to the server. (-1004), retrying command in 5s...
Could not connect to the server. (-1004), retrying command in 5s...
Could not connect to the server. (-1004), retrying command in 5s...
Could not connect to the server. (-1004), retrying command in 5s...
Could not connect to the server. (-1004), retrying command in 5s...
Could not connect to the server. (-1004), retrying command in 5s...
error: Could not connect to the server. (-1004)
Starting Bonjour lookup...
The user 'uob\phpwl' was successfully authenticated.
Connected to server deploystudio.isys.bris.ac.uk (1.6.15)
Checking server reachability (server=deploystudio.isys.bris.ac.uk port=7) ...
Mounting repository share point...
/bin/mkdir /tmp/DSNetworkRepository 2>&1
/bin/chmod 777 /tmp/DSNetworkRepository 2>&1
/bin/chmod 777 /tmp/DSNetworkRepository 2>&1
Mount call...
Parsing result...
Checking repository content...
Checking host firmware version
Macintosh serial number: W89301ES66H
Macintosh model: MacBookPro5,5
Boot ROM version: MBP55.88Z.00AC.B03.0906151708
Firmware ok!
Running workflow: '102 Rebuild 10.10.3 UOB standard' (B7022698-DB3E-4690-AC61-7D6722E13270)
'102 Rebuild 10.10.3 UOB standard' (B7022698-DB3E-4690-AC61-7D6722E13270) is a meta workflow. Embedded workflow tasks need to be expanded...
Step 1 - ok
Step 2 - ok
Step 3 - ok
Step 4 - workflow task '(null)' (source: 'ds_fusion_check.sh')
Step 5 - ok
Step 6 - ok
Step 7 - ok
Step 8 - ok
Step 9 - ok
Step 10 - workflow task '42B0F27A-9907-4945-88D8-93990EE24891'
Hostname setup action:
Task successful (elapsed time: 0.00 minutes)
-> Hostname setup action completed.
Add user setup action:
Task successful (elapsed time: 0.00 minutes)
-> Add user setup action completed.
Add user setup action:
Task successful (elapsed time: 0.00 minutes)
-> Add user setup action completed.
Restore action:
Looking for the first available disk:
Boot device='/dev/disk1'
Repository device='(null)'
>> '/dev/disk0': ok
"/Applications/Utilities/DeployStudio Admin.app/Contents/Plugins/DSRestoreTask.bundle/Contents/Resources/Scripts/deleteparentlvg.sh" /dev/disk0 2>&1
/usr/sbin/diskutil unmountDisk force /dev/disk0 2>&1
Forced unmount of all volumes on disk0 was successful
/usr/sbin/diskutil partitionDisk /dev/disk0 1 GPTFormat "Journaled HFS+" _DS_DEV_DISK_X_ 1B 2>&1
Started partitioning on disk0
Unmounting disk
Creating the partition map
Waiting for the disks to reappear
Formatting disk0s2 as Mac OS Extended (Journaled) with name _DS_DEV_DISK_X_
Initialized /dev/rdisk0s2 as a 149 GB case-insensitive HFS Plus volume with a 16384k journal
Mounting disk
Finished partitioning on disk0
/dev/disk0
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *160.0 GB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_HFS _DS_DEV_DISK_X_ 159.7 GB disk0s2
/usr/sbin/diskutil mountDisk /dev/disk0 2>&1
Volume(s) mounted successfully
'/tmp/DSNetworkRepository/Masters/HFS/osx-10.10.3-14D131.hfs.dmg' size: 648.2 MB
'/Volumes/_DS_DEV_DISK_X_' size: 159697.9 MB
/usr/sbin/diskutil info /Volumes/_DS_DEV_DISK_X_ 2>&1
"/Applications/Utilities/DeployStudio Admin.app/Contents/Frameworks/DSCore.framework/Resources/Tools/physicaldeviceid.sh" /dev/disk0s2 2>&1
/usr/sbin/diskutil enableOwnership /dev/disk0s2 2>&1
File system user/group ownership enabled
Setting boot device to '/dev/disk0s2'.
/usr/sbin/diskutil unmount force /dev/disk0s2 2>&1
Volume _DS_DEV_DISK_X_ on disk0s2 force-unmounted
/usr/sbin/asr restore --source /tmp/DSNetworkRepository/Masters/HFS/osx-10.10.3-14D131.hfs.dmg --target /dev/disk0s2 --puppetstrings --noprompt --allowfragmentedcatalog --noverify --erase --buffers 8 --buffersize 8m 2>&1
XSTA start 312 client
XSTA setup
Validating target...done
XSTA metadata
Validating source...done
Retrieving scan information...done
Validating sizes...done
XSTA restore
PSTT 0 100 start restore
Progress: 2
Progress: 8
Progress: 14
Progress: 20
Progress: 26
Progress: 32
Progress: 38
Progress: 44
Progress: 50
Progress: 56
Progress: 62
Progress: 68
Progress: 74
Progress: 80
Progress: 86
Progress: 92
Progress: 98
PSTP 100 100 stop restore
XSTA start 312 client
XSTA setup
XSTA metadata
XSTA restore
PSTT 0 100 start restore
PSTP 100 100 stop restore
XSTA finish
/usr/sbin/diskutil mount /dev/disk0s2 2>&1
Volume Macintosh HD on /dev/disk0s2 mounted
/usr/sbin/diskutil rename /dev/disk0s2 "Macintosh HD" 2>&1
Volume on disk0s2 renamed to Macintosh HD
"/Applications/Utilities/DeployStudio Admin.app/Contents/Plugins/DSRestoreTask.bundle/Contents/Resources/Scripts/osxcleanup.sh" "/Volumes/Macintosh HD" 2>&1
Running osxcleanup.sh v1.26
File Doesn't Exist, Will Create: /Volumes/Macintosh HD/Library/Preferences/SystemConfiguration/preferences.plist
Deleting certificate "com.apple.kerberos.kdc" items from keychain file "/Volumes/Macintosh HD/Library/Keychains/System.keychain"
Deleting certificate "com.apple.systemdefault" items from keychain file "/Volumes/Macintosh HD/Library/Keychains/System.keychain"
Exiting osxcleanup.sh v1.26
"/Applications/Utilities/DeployStudio Admin.app/Contents/Plugins/DSRestoreTask.bundle/Contents/Resources/Scripts/osxnetworkcleanup.sh" "/Volumes/Macintosh HD" 2>&1
Running osxnetworkcleanup.sh v1.1
Exiting osxnetworkcleanup.sh v1.1
ds_finalize_install.sh - v1.19 (Thu Jun 18 09:19:31 BST 2015)
ds_finalize_install.sh - end
Setting startup volume to 'Macintosh HD'.
/bin/chmod 1775 "/Volumes/Macintosh HD" 2>&1
/usr/sbin/chown root:admin "/Volumes/Macintosh HD" 2>&1
/usr/sbin/bless --folder "/Volumes/Macintosh HD/System/Library/CoreServices" --label "Macintosh HD" --bootinfo --bootefi --verbose 2>&1
EFI found at IODeviceTree:/efi
Mount point for /Volumes/Macintosh HD/System/Library/CoreServices is /Volumes/Macintosh HD
Common mount point of '/Volumes/Macintosh HD/System/Library/CoreServices' and '' is /Volumes/Macintosh HD
Can't load /Volumes/Macintosh HD//usr/standalone/ppc/bootx.bootinfo
Could not load BootX data from /Volumes/Macintosh HD//usr/standalone/ppc/bootx.bootinfo
Could not create BootX, no X folder specified
boot.efi unchanged at /Volumes/Macintosh HD/System/Library/CoreServices/boot.efi. Skipping update...
Got directory ID of 42 for /Volumes/Macintosh HD/System/Library/CoreServices
Got file ID of 440807 for /Volumes/Macintosh HD/System/Library/CoreServices/boot.efi
= 42
= 440807
= 0
= 0
= 42
Refitting to width 65
Refitting to width 131
Scale 1 label data is valid: YES
Putting scale 1 label bitmap in /Volumes/Macintosh HD/System/Library/CoreServices/.disk_label
Opened dest at /Volumes/Macintosh HD/System/Library/CoreServices/.disk_label for writing
0x00001000 bytes preallocated for /Volumes/Macintosh HD/System/Library/CoreServices/.disk_label
Type/creator set to tbxj/chrp for /Volumes/Macintosh HD/System/Library/CoreServices/.disk_label
Scale 1 label written
Invisibility set for /Volumes/Macintosh HD/System/Library/CoreServices/.disk_label
Putting scale 2 label bitmap in /Volumes/Macintosh HD/System/Library/CoreServices/.disk_label_2x
Opened dest at /Volumes/Macintosh HD/System/Library/CoreServices/.disk_label_2x for writing
0x00001000 bytes preallocated for /Volumes/Macintosh HD/System/Library/CoreServices/.disk_label_2x
Scale 2 label written
Invisibility set for /Volumes/Macintosh HD/System/Library/CoreServices/.disk_label_2x
"/Applications/Utilities/DeployStudio Admin.app/Contents/Plugins/DSRestoreTask.bundle/Contents/Resources/Scripts/fixByHostPrefs.sh" "Macintosh HD" 2>&1
fixByHostPrefs.sh - v1.14 (Thu Jun 18 09:19:32 BST 2015)
The domain/default pair of (/Volumes/Macintosh HD/var/db/dslocal/nodes/Default/users/daemon, home) does not exist
The domain/default pair of (/Volumes/Macintosh HD/var/db/dslocal/nodes/Default/users/nobody, home) does not exist
The domain/default pair of (/Volumes/Macintosh HD/var/db/dslocal/nodes/Default/users/root, home) does not exist
0 files were renamed
fixByHostPrefs.sh - end
-> Restore action completed.
Restoration successful (elapsed time: 14.09 minutes)
Localization configuration action:
ds_finalize_install.sh - v1.19 (Thu Jun 18 09:20:29 BST 2015)
Finalize resources already installed, skipping...
ds_finalize_install.sh - end
"/Applications/Utilities/DeployStudio Admin.app/Contents/Plugins/DSLocalizationTask.bundle/Contents/Resources/Scripts/ds_set_language.sh" "Macintosh HD" en --include-homedirs 2>&1
ds_set_language.sh - v1.0 (Thu Jun 18 09:20:31 BST 2015)
Updating language preference in '/Volumes/Macintosh HD/Library/Preferences/.GlobalPreferences.plist'
Updating language preference in './.GlobalPreferences.plist'
Error Reading File: ./.GlobalPreferences.plist
Error Reading File: ./.GlobalPreferences.plist
ds_set_language.sh - end
"/Applications/Utilities/DeployStudio Admin.app/Contents/Plugins/DSLocalizationTask.bundle/Contents/Resources/Scripts/ds_set_region.sh" "Macintosh HD" en_GB --include-homedirs 2>&1
ds_set_region.sh - v1.0 (Thu Jun 18 09:20:31 BST 2015)
Updating region preference in '/Volumes/Macintosh HD/Library/Preferences/.GlobalPreferences.plist'
Updating region preference in './.GlobalPreferences.plist'
ds_set_region.sh - end
"/Applications/Utilities/DeployStudio Admin.app/Contents/Plugins/DSLocalizationTask.bundle/Contents/Resources/Scripts/ds_set_kbd_layout.sh" "Macintosh HD" British 2 --include-homedirs 2>&1
ds_set_kbd_layout.sh - v1.0 (Thu Jun 18 09:20:32 BST 2015)
Updating file '/Volumes/Macintosh HD/Library/Preferences/com.apple.HIToolbox.plist'
ds_set_kbd_layout.sh - end
System default localization configuration successful (elapsed time: 0.05 minutes)
Time configuration action:
Installing time configuration script
ds_finalize_install.sh - v1.19 (Thu Jun 18 09:20:32 BST 2015)
Finalize resources already installed, skipping...
ds_finalize_install.sh - end
ds_time_setup_install.sh - v1.9 (Thu Jun 18 09:20:34 BST 2015)
ds_time_setup_install.sh - end
Time configuration scripts install successful (elapsed time: 0.04 minutes)
Configuration action:
ds_finalize_install.sh - v1.19 (Thu Jun 18 09:20:35 BST 2015)
Finalize resources already installed, skipping...
ds_finalize_install.sh - end
Renaming host to 'meegat'/'meegat'.
ds_rename_computer_install.sh - v1.6 (Thu Jun 18 09:20:37 BST 2015)
ds_rename_computer_install.sh - end
"/Applications/Utilities/DeployStudio Admin.app/Contents/Plugins/DSConfigureTask.bundle/Contents/Resources/Scripts/ds_add_local_users_install.sh" "Macintosh HD" 2>&1
ds_add_local_users_install.sh - v1.6 (Thu Jun 18 09:20:37 BST 2015)
ds_add_local_users_install.sh - end
Creating a new local user (it-zone-e).
/usr/sbin/chown root:wheel "/Volumes/Macintosh HD/etc/deploystudio/bin/ds_add_local_users.sh" 2>&1
/bin/chmod 755 "/Volumes/Macintosh HD/etc/deploystudio/bin/ds_add_local_users.sh" 2>&1
/usr/bin/touch "/Volumes/Macintosh HD/var/db/.AppleSetupDone" "/Volumes/Macintosh HD/Library/Receipts/.SetupRegComplete" "/Volumes/Macintosh HD/var/db/.ds.preserve.AppleSetupDone" 2>&1
"/Applications/Utilities/DeployStudio Admin.app/Contents/Plugins/DSConfigureTask.bundle/Contents/Resources/Scripts/ds_enable_firewall.sh" "Macintosh HD" 2>&1
ds_enable_firewall.sh - v1.0 (Thu Jun 18 09:20:37 BST 2015)
Could not write domain /Volumes/Macintosh HD/Library/Preferences/com.apple.alf; exiting
ds_enable_firewall.sh - end
Task successful (elapsed time: 0.04 minutes)
-> Host configuration action completed.
Generic task action:
ds_finalize_install.sh - v1.19 (Thu Jun 18 09:20:37 BST 2015)
Finalize resources already installed, skipping...
ds_finalize_install.sh - end
/usr/bin/ditto --rsrc /tmp/DSNetworkRepository/Scripts/enable_external_network_adapter.sh "/Volumes/Macintosh HD/etc/deploystudio/ds_scripts/enable_external_network_adapter.sh" 2>&1
-> Generic task action completed.
Task successful (elapsed time: 0.04 minutes)
ds_finalize_install.sh - v1.19 (Thu Jun 18 09:20:40 BST 2015)
Finalize resources already installed, skipping...
ds_finalize_install.sh - end
/usr/bin/ditto --rsrc /var/tmp/DSNetworkRepository/Packages/munkitools-2.pkg "/Volumes/Macintosh HD/etc/deploystudio/ds_packages/munkitools-2.pkg" 2>&1
"/Applications/Utilities/DeployStudio Admin.app/Contents/Plugins/DSInstallTask.bundle/Contents/Resources/Scripts/ds_install_packages_install.sh" "Macintosh HD" 0001.idx 2>&1
ds_install_packages_install.sh - v1.14 (Thu Jun 18 09:20:42 BST 2015)
ds_install_packages_install.sh - end
-> Install action completed.
Install successful (elapsed time: 0.04 minutes)
Generic task action:
ds_finalize_install.sh - v1.19 (Thu Jun 18 09:20:42 BST 2015)
Finalize resources already installed, skipping...
ds_finalize_install.sh - end
/usr/bin/ditto --rsrc /tmp/DSNetworkRepository/Scripts/munki-enroll.sh "/Volumes/Macintosh HD/etc/deploystudio/ds_scripts/munki-enroll.sh" 2>&1
-> Generic task action completed.
Task successful (elapsed time: 0.04 minutes)
/usr/sbin/bless --device /dev/disk0s2 --setBoot --verbose 2>&1
EFI found at IODeviceTree:/efi
found ioreg "FirmwareFeaturesMask"; featureMaskValue=0xC0007FFF
found ioreg "FirmwareFeatures"; featureFlagsValue=0xC0007417
isPreBootEnvironmentUEFIWindowsBootCapable=0
preboot environment is not UEFI boot capable
isDVDWithElToritoWithUEFIBootableOS=0
Checking if disk is complex (if it is associated with booter partitions)
GPT detected
No auxiliary booter partition required
System partition found
Preferred system partition found: disk0s1
Returning booter information dictionary:
<CFBasicHash 0x7ffad8416f00 [0x10a970f00]>{type = mutable dict, count = 3,
entries =>
0 : <CFString 0x10a6bfe70 [0x10a970f00]>{contents = "System Partitions"} = (
disk0s1
)
1 : <CFString 0x10a6c0650 [0x10a970f00]>{contents = "Data Partitions"} = (
disk0s2
)
2 : <CFString 0x10a6c0670 [0x10a970f00]>{contents = "Auxiliary Partitions"} = (
)
}
IOMedia disk0s2 has UUID 6F3F6702-B760-45B5-84CD-885B3C08F3E4
Setting EFI NVRAM:
efi-boot-device='<array><dict><key>IOMatch</key><dict><key>IOProviderClass</key><string>IOMedia</string><key>IOPropertyMatch</key><dict><key>UUID</key><string>6F3F6702-B760-45B5-84CD-885B3C08F3E4</string></dict></dict><key>BLLastBSDName</key><string>disk0s2</string></dict></array>'
Setting EFI NVRAM:
IONVRAM-DELETE-PROPERTY='efi-boot-file'
Setting EFI NVRAM:
IONVRAM-DELETE-PROPERTY='efi-boot-mkext'
Setting EFI NVRAM:
IONVRAM-DELETE-PROPERTY='efi-boot-kernelcache'
NVRAM variable "boot-args" not set.
Umounting repository share point...
/sbin/umount -f /tmp/DSNetworkRepository 2>&1
/bin/rmdir /tmp/DSNetworkRepository 2>&1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment