Merge branch 'master' into arm64
This commit is contained in:
@@ -20,9 +20,9 @@ below.
|
|||||||
To install the required dependencies for `pi-gen` you should run:
|
To install the required dependencies for `pi-gen` you should run:
|
||||||
|
|
||||||
```bash
|
```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 \
|
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
|
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
|
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.
|
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)
|
* `FIRST_USER_PASS` (Default: unset)
|
||||||
|
|
||||||
Password for the first user. If unset, the account is locked.
|
Password for the first user. If unset, the account is locked.
|
||||||
|
|||||||
2
build.sh
2
build.sh
@@ -68,6 +68,8 @@ EOF
|
|||||||
log "Begin ${SUB_STAGE_DIR}/${i}-run.sh"
|
log "Begin ${SUB_STAGE_DIR}/${i}-run.sh"
|
||||||
./${i}-run.sh
|
./${i}-run.sh
|
||||||
log "End ${SUB_STAGE_DIR}/${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
|
fi
|
||||||
if [ -f ${i}-run-chroot.sh ]; then
|
if [ -f ${i}-run-chroot.sh ]; then
|
||||||
log "Begin ${SUB_STAGE_DIR}/${i}-run-chroot.sh"
|
log "Begin ${SUB_STAGE_DIR}/${i}-run-chroot.sh"
|
||||||
|
|||||||
@@ -12,5 +12,3 @@ if [ -n "${FIRST_USER_PASS}" ]; then
|
|||||||
fi
|
fi
|
||||||
echo "root:root" | chpasswd
|
echo "root:root" | chpasswd
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ on_chroot <<EOF
|
|||||||
for GRP in input spi i2c gpio; do
|
for GRP in input spi i2c gpio; do
|
||||||
groupadd -f -r "\$GRP"
|
groupadd -f -r "\$GRP"
|
||||||
done
|
done
|
||||||
|
|
||||||
for GRP in adm dialout cdrom audio users sudo video games plugdev input gpio spi i2c netdev render; do
|
for GRP in adm dialout cdrom audio users sudo video games plugdev input gpio spi i2c netdev render; do
|
||||||
adduser $FIRST_USER_NAME \$GRP
|
adduser $FIRST_USER_NAME \$GRP
|
||||||
done
|
done
|
||||||
|
|||||||
5
stage4/01-disable-wayvnc/00-run.sh
Executable file
5
stage4/01-disable-wayvnc/00-run.sh
Executable file
@@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/bash -e
|
||||||
|
|
||||||
|
on_chroot <<- EOF
|
||||||
|
SUDO_USER="${FIRST_USER_NAME}" raspi-config nonint do_vnc 1
|
||||||
|
EOF
|
||||||
@@ -1,3 +1,4 @@
|
|||||||
|
scratch3
|
||||||
claws-mail
|
claws-mail
|
||||||
code-the-classics code-the-classics-2
|
code-the-classics code-the-classics-2
|
||||||
kicad
|
kicad
|
||||||
|
|||||||
Reference in New Issue
Block a user