-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Various logic fixups in preparation for phased uninstall (#1277)
* EncryptApfsVolume: fix encryption detection, enable curing * fixup: `launchctl print` does not take a `-plist` flag * fixup: we always thought the service was started The string "not running" contains "running", so we'd always set `service_started = true;` here. That's wrong, so instead check for "does not contain 'not running'". This does open us up to thinking that anything that is not "not running" is running, but we can address that later, if it becomes an issue. Also I'm pretty sure we don't need this at all, since it's always "not running" after it mounts the volume... But I'll leave that for later. * BootstrapLaunchctlService: always run * KickstartLaunchctlService: use execute_command helper * fixup: get_uuid_for_label -> get_disk_info_for_label For a follow-up commit. * If a Nix Store volume already exists and is encrypted with FileVault, force `encrypt` to true * fixup: check_loaded should not print to stdout/stderr, should use DARWIN_LAUNCHD_DOMAIN const * fixup: cargo clippy * fixup: check_loaded_output -> check_loaded Even though the exit code is an output of running the program, it's not textual output on stdout / stderr. * fixup: make comment more readable
- Loading branch information
Showing
12 changed files
with
229 additions
and
175 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.