Disable FileVault
Reboot into recovery mode and run:
csrutil authenticated-root disable
Reboot back into MacOS
Find your root mount's device - run mount and chop off the last s, e.g. if your root is /dev/disk1s2s3, you'll mount /dev/disk1s2
Create a new directory, for example ~/mount
Run sudo mount -o nobrowse -t apfs DISK_PATH MOUNT_PATH, using the values from above
Modify the files under the mounted directory
Run sudo bless --folder MOUNT_PATH/System/Library/CoreServices --bootefi --create-snapshot
Reboot your system, and the changes will take place
Troubles:
sudo mount -o nobrowse -t afps /dev/disk1s5 ~/mount
Password:
mount: exec /Library/Filesystems/afps.fs/Contents/Resources/mount_afps for /Users/user/mount: No such file or directory
mount: /Users/user/mount failed with 72
Topic:
App & System Services
SubTopic:
Core OS
Tags: