#
✕ nick:rwhitby
#asahi · 2021-01-11 09:42
rwhitbybbl ~2h
#asahi · 2021-01-11 09:40
rwhitbyit's interesting that a complete macOS restore via DFU is much much faster than the "reinstall macOS" option in the recovery chooser
#asahi · 2021-01-11 09:40
rwhitby(and test this USBA not working rumour at the same time)
#asahi · 2021-01-11 09:39
rwhitbyok, I'm going to install on a flash stick, and then I can investigate how the current boot target is chosen by comparing iscPreboot with different targets selected
#asahi · 2021-01-11 09:35
rwhitbythere was an "active" flag file in there
#asahi · 2021-01-11 08:18
rwhitbyYep, looks like enough stuff to boot the external drive is cached in iSCPreboot/<UUID>/boot ...
#asahi · 2021-01-11 07:08
rwhitbyand I'll use dummy username and password so I can share the tarballs with those who can make use of them
#asahi · 2021-01-11 07:06
rwhitbyanother DFU restore and this time I'll tarball before and after (should have done that from the start)
#asahi · 2021-01-11 07:05
rwhitbyLooks like iSCPreboot is the place. New UUID directory inside there for the external disk
#asahi · 2021-01-11 06:22
rwhitbySo, another DFU restore and this time I'll capture the full contents of iSCPreboot before and after.
#asahi · 2021-01-11 06:19
rwhitbyI see an extra inode in iSCPreboot. xarts, Hardware, Preboot all have the same number of inodes as before.
#asahi · 2021-01-11 06:17
rwhitbyHere's the test I did: run "df" before selecting another boot disk. scp that file to safety. select another boot disk. hold power in during the restart to get back to 1TR. run "df" again, and compare with before
#asahi · 2021-01-11 06:14
rwhitbyBTW, "df" also shows the volumes hidden in 1TR by diskutil
#asahi · 2021-01-11 06:10
rwhitbyis there a way to identify which volume is having files modified in it selecting the external disk for boot (and needing to enter admin password to do so) ?
#asahi · 2021-01-11 06:07
rwhitbydisk3s3 is the Recovery volume
#asahi · 2021-01-11 06:05
rwhitbybputil mounts disk3s3 when changing security, so it's likely writing there?
#asahi · 2021-01-11 06:01
rwhitbywhich indicates that it wants to write something to the internal disk
#asahi · 2021-01-11 06:00
rwhitbyAnd now booting the external drive asks for an admin password, whereas it did not previously.
#asahi · 2021-01-11 05:59
rwhitbybputil can change internal drive but still does not accept valid password for external drive.
#asahi · 2021-01-11 05:58
rwhitbyLogged into internal disk and did initial setup, so it now has an admin user. Back to 1TR. bputil -d can now display internal disk, but can no longer display external disk (where as this was reversed previously before the internal drive went through initial setup).
#asahi · 2021-01-11 05:54
rwhitbyyeah, that's why I was testing it
#asahi · 2021-01-11 05:52
rwhitbyAn installation of macOS on an external drive is tied to the host on which it was created, and becomes invalid if that host is restored?
#asahi · 2021-01-11 05:51
rwhitbySo that would mean the external drive is not useable on another machine?
#asahi · 2021-01-11 05:51
rwhitbySo the next test is to see what happens if I go through initial setup on the internal OS, does that repair things for the external drive?
#asahi · 2021-01-11 05:50
rwhitby"Failed to create ACM context with provided username and password"
#asahi · 2021-01-11 05:47
rwhitbyNext interesting thing: internal is fresh DFU restore, not gone through initial setup, so has no admin user. external has gone through initial setup, has a known admin username and password (verified by logging into external drive using that). back into 1TR and bputil does not accept the external drive's username and password as valid.
#asahi · 2021-01-11 05:46
rwhitbybut that was good enough to display the external, but not to display the internal.
#asahi · 2021-01-11 05:45
rwhitbyand both wanted _mpsetupuser credentials to change security.
#asahi · 2021-01-11 05:45
rwhitbyactually, that was the case even when neither had gone through initial setup
#asahi · 2021-01-11 05:45
rwhitbyinternal drive has not gone through initial setup. external drive has.
#asahi · 2021-01-11 05:42
rwhitbymarcan: what's strange is that bputil -d was able to display the policy for the external drive before the external drive had a user, but couldn't do the same for the internal drive
#asahi · 2021-01-11 05:41
rwhitbyNext test: 1TR with only internal drive and external drive disconnected - still can't do anything with bputil as expected, so adding a user to the external drive didn't create a user on the internal drive.
#asahi · 2021-01-11 05:40
rwhitbySo now I have a user on the external drive, but not on the internal drive. Let's see what 1TR can do with that ...
#asahi · 2021-01-11 05:38
rwhitbyConfirmed ability to boot and run initial macOS setup on external drive even when internal drive has not yet gone through initial macOS setup.
#asahi · 2021-01-11 05:34
rwhitby(bputil can't set either as well, since we don't know the password for _mbsetupuser)
#asahi · 2021-01-11 05:30
rwhitbyStartup Security Utility is unable to modify either internal or external disk.
#asahi · 2021-01-11 05:13
rwhitbyRemoving external drive to ensure the mapping is correct confirms that internal drive cannot detect the local policy. Note that neither the internal or external drive have gone through initial macOS setup yet. Internal drive is fresh DFU restore and external drive is fresh macOS reinstall.
#asahi · 2021-01-11 05:11
rwhitbybputil -d then select external drive shows the normal current local policy details
#asahi · 2021-01-11 05:10
rwhitbybputil -d then select internal drive installation reports "Could not detect whether selected local policy was BAA signed. Failed to obtain values from the current local policy."
#asahi · 2021-01-11 05:09
rwhitbyweird: bputil -d reports info for the external drive, but not the internal drive
#asahi · 2021-01-11 05:04
rwhitbyFirst test: can you boot an external drive before the internal drive has gone through initial setup (i.e. when there's no administrator password set anywhere)
#asahi · 2021-01-11 05:01
rwhitbydavidrysk[m]: there is no /etc/kcpasswd in 1TR on the DFU'd internal drive, nor in the internal OS drive after DFU but before initial setup.
#asahi · 2021-01-11 04:59
rwhitbydavidrysk[m]: I now have a freshly DFU'd internal drive and a freshly installed external drive. What information do you want before I start testing the security setting stickiness again?
#asahi · 2021-01-11 03:01
rwhitbygonna DFU and wipe external disk and start again fresh
#asahi · 2021-01-11 02:54
rwhitbyso that's inconsistent with what 1TR reported
#asahi · 2021-01-11 02:54
rwhitbyBut boot that external drive and look in System Information->Hardware->Controller says Secure Boot: Full Security
#asahi · 2021-01-11 02:52
rwhitbyso external disk is clearly marked as reduced security in 1TR
#asahi · 2021-01-11 02:51
rwhitbyReduced Security enabled (smb0): 1
#asahi · 2021-01-11 02:48
rwhitbybut setting reduced security on external disk with bputil on command line is fine (it asks for password)
#asahi · 2021-01-11 02:45
rwhitbyhmm, now trying to set boot from external disk as startup disk in 1TR and it asks for admin password

plus ›