Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

apfs.util step failing on Big Sur+? #401

Closed
abathur opened this issue Dec 13, 2021 · 0 comments · Fixed by #402
Closed

apfs.util step failing on Big Sur+? #401

abathur opened this issue Dec 13, 2021 · 0 comments · Fixed by #402

Comments

@abathur
Copy link
Contributor

abathur commented Dec 13, 2021

I tried a clean install of my macOS bootstrap the other day and noticed a "warning: failed to execute apfs.util" in the output. I think this has probably been failing since whenever 8834df4 was released, but I'm a little surprised not to see any other reports of it.

(though #378 and similar may be a byproduct of this failing at install time and not getting noticed?)

The return codes from apfs.util -t aren't good for normal shell semantics. I tested this a little on the machine that had the failed install and see things like:

$ /System/Library/Filesystems/apfs.fs/Contents/Resources/apfs.util -t; echo $?
failed to stitch firmlinks and/or create synthetics for root volume (c002) ...
252
$ sudo mv /etc/synthetic.conf.bak /etc/synthetic.conf
Password:
$ /System/Library/Filesystems/apfs.fs/Contents/Resources/apfs.util -t; echo $?
253
abathur added a commit to abathur/nix-darwin that referenced this issue Dec 13, 2021
apfs.util (or at least it's newer -t flag) has bad exit code semantics
and will return non-zero codes for both success and errors.

Closes LnL7#401 and most-likely fixes LnL7#378 as well
jsoo1 pushed a commit to jsoo1/nix-darwin that referenced this issue Dec 16, 2021
apfs.util (or at least it's newer -t flag) has bad exit code semantics
and will return non-zero codes for both success and errors.

Closes LnL7#401 and most-likely fixes LnL7#378 as well
jsoo1 pushed a commit to jsoo1/nix-darwin that referenced this issue Dec 16, 2021
apfs.util (or at least it's newer -t flag) has bad exit code semantics
and will return non-zero codes for both success and errors.

Closes LnL7#401 and most-likely fixes LnL7#378 as well
abathur added a commit to abathur/nix-darwin that referenced this issue Dec 21, 2021
apfs.util (or at least it's newer -t flag) has bad exit code semantics
and will return non-zero codes for both success and errors.

Closes LnL7#401 and most-likely fixes LnL7#378 as well
@LnL7 LnL7 closed this as completed in #402 Dec 21, 2021
theutz pushed a commit to theutz/nix-darwin that referenced this issue Apr 19, 2023
apfs.util (or at least it's newer -t flag) has bad exit code semantics
and will return non-zero codes for both success and errors.

Closes LnL7#401 and most-likely fixes LnL7#378 as well
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant