Skip to content

Commit

Permalink
Change display_name for preloader and deployment, update README
Browse files Browse the repository at this point in the history
  • Loading branch information
a-vogel committed Mar 31, 2024
1 parent abed951 commit 98ef15f
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 7 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,12 @@ The script `misty` itself is located in `/usr/local/wycomo`.

This script was tested with macOS 14 Sonoma. It should work with prior macOS versions, but this is has not been tested.

You should at least have 40 GB of free disk space available during each run.
You should at least have 60 GB of free disk space available during each run.

## Known issues
## To do

This is a pre-release. It is working, but we have some tasks on our to do list:

* Automatically remove older versions of macOS from the repo. There is only one dmg that is used for all plists; however, a full installer requires space. Since we want to keep at least one version prior to the current one (testing vs production, ~~bugs~~ unwanted features in new release), we have to parse the directory for every specific major version and keep the two highest version numbers.
* Check for space left. We need to check the space on the munki repo, but more importantly, the space on the system disk.
* Check for space left. We need to check the space on the munki repo, but more importantly, the space on the system disk. After each run involving an installation, files are written to `/private/tmp/msu-target*/` that cannot be deleted by root. More testing needs to be done.
* LaunchAgent or LaunchDaemon. If the munki repo is not a local storage, we need a LaunchAgent to ensure that the user running this script can access the repo. On the other hand, a LaunchDaemon will run also if no user is logged in.
2 changes: 1 addition & 1 deletion misty/build-info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
<key>suppress_bundle_relocation</key>
<true/>
<key>version</key>
<string>0.1</string>
<string>0.1.1</string>
</dict>
</plist>
4 changes: 3 additions & 1 deletion misty/payload/Users/Shared/Mist/skel/localized_arm.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
<key>category</key>
<string>Dienstprogramme</string>
<key>description</key>
<string>Lädt macOS Version %version%</string>
<string>Bereitet die Installation von macOS Version %version% vor</string>
<key>display_name</key>
<string>macOS %os_nice% Bereitstellung</string>
</dict>
<key>fallback_locale</key>
<string>en</string>
Expand Down
5 changes: 3 additions & 2 deletions misty/payload/usr/local/wycomco/misty
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ munkiimport_stage_os() {
preloader_arm() {
sudo -u "$RepoOwner" munkiimport -n --installer-type copy_from_dmg --name="$munki_name"_arm \
-c "$munki_catalog" --category="$munki_category" --developer=Apple \
--displayname="macOS $os_nice" --description="Downloads macOS $os_nice $fqos" \
--displayname="macOS $os_nice preparation" --description="Provisions macOS $os_nice $fqos for installation" \
--icon="$munki_name"_"$os_munki".png --minimum_munki_version=6.0.1 \
--maximum_os_version="$os_maxi" --minimum_os_version="$os_mini" \
--postinstall_script="$Template"/postinstall_script_installer \
Expand Down Expand Up @@ -187,7 +187,7 @@ EOF

deploy_macos() {
sudo -u "$RepoOwner" munkiimport -n --installer-type copy_from_dmg --name="$deploy_name" \
-c "$munki_catalog" --category="$munki_category" --developer=Apple --displayname="macOS $os_nice preparation" \
-c "$munki_catalog" --category="$munki_category" --developer=Apple --displayname="macOS $os_nice provisioning" \
--description="Downloads macOS $os_nice installer $fqos and places it in the Applications directory for installation at a later time." \
--icon="$munki_name"_"$os_munki".png --minimum_munki_version=6.0.1 \
--maximum_os_version="$os_maxi" --minimum_os_version="$os_mini" \
Expand Down Expand Up @@ -347,6 +347,7 @@ mv "$LogPath"/current_state_14.txt "$LogPath"/previous_state_14.txt
mv "$LogPath"/current_state_13.txt "$LogPath"/previous_state_13.txt
mv "$LogPath"/current_state_12.txt "$LogPath"/previous_state_12.txt

# Run user-specific postinstall, if present
if [[ -f "$Base_Path"/usr/postinstall.sh ]]; then
"$Base_Path"/usr/postinstall.sh
fi
Expand Down
Empty file modified misty/scripts/postinstall
100644 → 100755
Empty file.

0 comments on commit 98ef15f

Please sign in to comment.