diff options
| author | Serge Schneider <serge@raspberrypi.com> | 2025-09-12 17:21:28 +0100 |
|---|---|---|
| committer | Serge Schneider <serge@raspberrypi.com> | 2025-09-12 17:21:28 +0100 |
| commit | 22dc0ec4300456c77f12dbbe93e78fc407113007 (patch) | |
| tree | 1c6c6e457efa4c4ad8d82a156948b7dd59a852f3 | |
| parent | 7cf36c964ba99ff1c75bfcbac4ff53145e377802 (diff) | |
| parent | 734e1a634912d73d31f407b3668ed00e5f2e7609 (diff) | |
Merge branch 'master' into arm64
| -rw-r--r-- | README.md | 6 | ||||
| -rwxr-xr-x | build.sh | 2 | ||||
| -rwxr-xr-x | stage1/01-sys-tweaks/00-run.sh | 2 | ||||
| -rwxr-xr-x | stage2/01-sys-tweaks/01-run.sh | 1 | ||||
| -rwxr-xr-x | stage4/01-disable-wayvnc/00-run.sh | 5 | ||||
| -rw-r--r-- | stage5/00-install-extras/00-packages | 1 |
6 files changed, 13 insertions, 4 deletions
@@ -20,9 +20,9 @@ below. To install the required dependencies for `pi-gen` you should run: ```bash -apt-get install coreutils quilt parted qemu-user-static debootstrap zerofree zip \ +apt install coreutils quilt parted qemu-user-static debootstrap zerofree zip \ dosfstools e2fsprogs libarchive-tools libcap2-bin grep rsync xz-utils file git curl bc \ -gpg pigz xxd arch-test bmap-tools +gpg pigz xxd arch-test bmap-tools kmod ``` The file `depends` contains a list of tools needed. The format of this @@ -174,6 +174,8 @@ The following environment variables are supported: a name chosen by the final user. This security feature is designed to prevent shipping images with a default username and help prevent malicious actors from taking over your devices. + If the FIRST_USER_NAME is set to `pi` and no `FIRST_USER_PASS` is set, the setup wizard will be launched on first boot to allow the user to set the password. + * `FIRST_USER_PASS` (Default: unset) Password for the first user. If unset, the account is locked. @@ -68,6 +68,8 @@ EOF log "Begin ${SUB_STAGE_DIR}/${i}-run.sh" ./${i}-run.sh log "End ${SUB_STAGE_DIR}/${i}-run.sh" + elif [ -f ${i}-run.sh ]; then + log "Skip ${SUB_STAGE_DIR}/${i}-run.sh (not executable)" fi if [ -f ${i}-run-chroot.sh ]; then log "Begin ${SUB_STAGE_DIR}/${i}-run-chroot.sh" diff --git a/stage1/01-sys-tweaks/00-run.sh b/stage1/01-sys-tweaks/00-run.sh index e024701..b7e5b5e 100755 --- a/stage1/01-sys-tweaks/00-run.sh +++ b/stage1/01-sys-tweaks/00-run.sh @@ -12,5 +12,3 @@ if [ -n "${FIRST_USER_PASS}" ]; then fi echo "root:root" | chpasswd EOF - - diff --git a/stage2/01-sys-tweaks/01-run.sh b/stage2/01-sys-tweaks/01-run.sh index 93bc36d..be0e8cd 100755 --- a/stage2/01-sys-tweaks/01-run.sh +++ b/stage2/01-sys-tweaks/01-run.sh @@ -30,6 +30,7 @@ on_chroot <<EOF for GRP in input spi i2c gpio; do groupadd -f -r "\$GRP" done + for GRP in adm dialout cdrom audio users sudo video games plugdev input gpio spi i2c netdev render; do adduser $FIRST_USER_NAME \$GRP done diff --git a/stage4/01-disable-wayvnc/00-run.sh b/stage4/01-disable-wayvnc/00-run.sh new file mode 100755 index 0000000..059efca --- /dev/null +++ b/stage4/01-disable-wayvnc/00-run.sh @@ -0,0 +1,5 @@ +#!/bin/bash -e + +on_chroot <<- EOF + SUDO_USER="${FIRST_USER_NAME}" raspi-config nonint do_vnc 1 +EOF diff --git a/stage5/00-install-extras/00-packages b/stage5/00-install-extras/00-packages index 1c1e794..0316539 100644 --- a/stage5/00-install-extras/00-packages +++ b/stage5/00-install-extras/00-packages @@ -1,3 +1,4 @@ +scratch3 claws-mail code-the-classics code-the-classics-2 kicad |
