Merge branch 'master' into arm64

This commit is contained in:
Serge Schneider
2025-09-12 17:21:28 +01:00
6 changed files with 13 additions and 4 deletions

View File

@@ -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.

View File

@@ -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"

View File

@@ -12,5 +12,3 @@ if [ -n "${FIRST_USER_PASS}" ]; then
fi
echo "root:root" | chpasswd
EOF

View File

@@ -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

View File

@@ -0,0 +1,5 @@
#!/bin/bash -e
on_chroot <<- EOF
SUDO_USER="${FIRST_USER_NAME}" raspi-config nonint do_vnc 1
EOF

View File

@@ -1,3 +1,4 @@
scratch3
claws-mail
code-the-classics code-the-classics-2
kicad