pycreateuserpkg icon indicating copy to clipboard operation
pycreateuserpkg copied to clipboard

Error The installer can't create the folder

Open shadowwalkersteam opened this issue 2 years ago • 9 comments

I'm getting the below error while trying to open the .pkg file to create the user. I've compiled the updated .pkg file using the updated code from the repository. Can anyone guide me what this issue could be?

The device is MacBook Pro (M3 Pro 2023) in Recovery Mode Terminal.

IMG_3290-min

shadowwalkersteam avatar Jan 24 '24 12:01 shadowwalkersteam

This is not an issue with munkipkg.

You mention that you are in Recovery Mode, which adds additional complexity. Are you certain /Volumes/Macintosh HD is mounted read-write?

gregneagle avatar Jan 24 '24 17:01 gregneagle

(a test you can do is to install this package when not in Recovery Mode...)

gregneagle avatar Jan 24 '24 17:01 gregneagle

(a test you can do is to install this package when not in Recovery Mode...)

without recovery mode it is working fine.

shadowwalkersteam avatar Jan 24 '24 18:01 shadowwalkersteam

This is not an issue with munkipkg.

You mention that you are in Recovery Mode, which adds additional complexity. Are you certain /Volumes/Macintosh HD is mounted read-write?

How can I check that? All I wanted is I have OS Installed, I wanted to create the user and skip the setup assistant. That's why I booted into recovery and tried to execute the .pkg file but I got this error

shadowwalkersteam avatar Jan 24 '24 18:01 shadowwalkersteam

$ mount
/dev/disk3s1s1 on / (apfs, sealed, local, read-only, journaled)

Note the "read-only"

gregneagle avatar Jan 24 '24 20:01 gregneagle

$ mount
/dev/disk3s1s1 on / (apfs, sealed, local, read-only, journaled)

Note the "read-only"

What could be the possible workaround? Do you have any idea about it? Any help would be appreciated. Thanks

shadowwalkersteam avatar Jan 25 '24 08:01 shadowwalkersteam

Have you tried use Disk Utility to eject and remount it read/write?

gregneagle avatar Jan 25 '24 14:01 gregneagle

Have you tried use Disk Utility to eject and remount it read/write?

Another question, If I run this pkg file in recovery mode will it create the user?

shadowwalkersteam avatar Jan 25 '24 15:01 shadowwalkersteam

I've successfully used pkgs created with this tool to create users while in Recovery, but I have not done so for several years, and don't know if Apple has changed things in recent OSes that might cause this to fail.

gregneagle avatar Jan 25 '24 16:01 gregneagle