Skip to content

m1n1 update fails with "SameFileError: '.../AdminUserRecoveryInfo.plist' and '.../AdminUserRecoveryInfo.plist' are the same file" #420

@rlue

Description

@rlue

Tried to update m1n1 on my 2020 M1 Mac Mini, running Asahi + nixOS. Ran into the following exception:

Traceback (most recent call last):
  File "/System/Volumes/Data/private/tmp/asahi-install/main.py", line 1149, in <module>
    InstallerMain(installer_version).main()
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/System/Volumes/Data/private/tmp/asahi-install/main.py", line 946, in main
    while self.main_loop():
          ~~~~~~~~~~~~~~^^
  File "/System/Volumes/Data/private/tmp/asahi-install/main.py", line 1116, in main_loop
    return self.action_repair_or_upgrade(oses_upgradable, upgrade=True)
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/System/Volumes/Data/private/tmp/asahi-install/main.py", line 414, in action_repair_or_upgrade
    self.ins.repair(self.cur_os)
    ~~~~~~~~~~~~~~~^^^^^^^^^^^^^
  File "/System/Volumes/Data/private/tmp/asahi-install/stub.py", line 196, in repair
    self.copy_admin_users(cur_os)
    ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
  File "/System/Volumes/Data/private/tmp/asahi-install/stub.py", line 179, in copy_admin_users
    shutil.copy(admin_users, tg_admin_users)
    ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/System/Volumes/Data/private/tmp/asahi-install/Frameworks/Python.framework/Versions/3.13/lib/python3.13/shutil.py", line 428, in copy
    copyfile(src, dst, follow_symlinks=follow_symlinks)
    ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/System/Volumes/Data/private/tmp/asahi-install/Frameworks/Python.framework/Versions/3.13/lib/python3.13/shutil.py", line 240, in copyfile
    raise SameFileError("{!r} and {!r} are the same file".format(src, dst))
shutil.SameFileError: '/Volumes/Preboot/45A7F00D-EC71-4981-8CEE-F1C6C5EB1D63/var/db/AdminUserRecoveryInfo.plist' and '/Volumes/Preboot/45A7F00D-EC71-4981-8CEE-F1C6C5EB1D63/var/db/AdminUserRecoveryInfo.plist' are the same file

Full installer log (gist)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions