├── README.md └── Makefile /README.md: -------------------------------------------------------------------------------- 1 | # setup-resistant 2 | 3 | Use [The Luggage](https://github.com/unixorn/luggage) to create a package which, when included in an image build, will suppress Apple's setup assistant. -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | USE_PKGBUILD=1 2 | include /usr/local/share/luggage/luggage.make 3 | TITLE=setup-resistant 4 | REVERSE_DOMAIN=com.github.setup-resistant 5 | PAYLOAD= \ 6 | prep-var-db-AppleSetupDone \ 7 | prep-Library-SetupRegComplete 8 | 9 | prep-var-db-AppleSetupDone: l_var_db 10 | @sudo touch ${WORK_D}/private/var/db/.AppleSetupDone 11 | @sudo chown root:wheel ${WORK_D}/private/var/db/.AppleSetupDone 12 | @sudo chmod 600 ${WORK_D}/private/var/db/.AppleSetupDone 13 | 14 | prep-Library-SetupRegComplete: l_Library_Receipts 15 | @sudo touch ${WORK_D}/Library/Receipts/.SetupRegComplete 16 | @sudo chown root:admin ${WORK_D}/Library/Receipts/.SetupRegComplete 17 | @sudo chmod 400 ${WORK_D}/Library/Receipts/.SetupRegComplete 18 | --------------------------------------------------------------------------------