Merge branch 'master' into arm64
This commit is contained in:
commit
10a538ff92
11 changed files with 15 additions and 4 deletions
|
@ -179,9 +179,9 @@ The following environment variables are supported:
|
|||
|
||||
Username for the first user
|
||||
|
||||
* `FIRST_USER_PASS` (Default: "raspberry")
|
||||
* `FIRST_USER_PASS` (Default: unset)
|
||||
|
||||
Password for the first user
|
||||
Password for the first user. If unset, the account is locked.
|
||||
|
||||
* `WPA_ESSID`, `WPA_PASSWORD` and `WPA_COUNTRY` (Default: unset)
|
||||
|
||||
|
|
2
build.sh
2
build.sh
|
@ -224,7 +224,7 @@ export LOG_FILE="${WORK_DIR}/build.log"
|
|||
export TARGET_HOSTNAME=${TARGET_HOSTNAME:-raspberrypi}
|
||||
|
||||
export FIRST_USER_NAME=${FIRST_USER_NAME:-pi}
|
||||
export FIRST_USER_PASS=${FIRST_USER_PASS:-raspberry}
|
||||
export FIRST_USER_PASS
|
||||
export RELEASE=${RELEASE:-bullseye}
|
||||
export WPA_ESSID
|
||||
export WPA_PASSWORD
|
||||
|
|
1
export-image/01-user-rename/00-packages
Normal file
1
export-image/01-user-rename/00-packages
Normal file
|
@ -0,0 +1 @@
|
|||
userconf-pi
|
5
export-image/01-user-rename/01-run.sh
Executable file
5
export-image/01-user-rename/01-run.sh
Executable file
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash -e
|
||||
|
||||
on_chroot << EOF
|
||||
SUDO_USER="${FIRST_USER_NAME}" rename-user -f -s
|
||||
EOF
|
|
@ -8,7 +8,10 @@ on_chroot << EOF
|
|||
if ! id -u ${FIRST_USER_NAME} >/dev/null 2>&1; then
|
||||
adduser --disabled-password --gecos "" ${FIRST_USER_NAME}
|
||||
fi
|
||||
echo "${FIRST_USER_NAME}:${FIRST_USER_PASS}" | chpasswd
|
||||
|
||||
if [ -n "${FIRST_USER_PASS}" ]; then
|
||||
echo "${FIRST_USER_NAME}:${FIRST_USER_PASS}" | chpasswd
|
||||
fi
|
||||
echo "root:root" | chpasswd
|
||||
EOF
|
||||
|
||||
|
|
|
@ -22,3 +22,5 @@ piwiz
|
|||
rp-prefapps
|
||||
ffmpeg
|
||||
vlc
|
||||
rpi-imager
|
||||
rpi-wayland
|
||||
|
|
Reference in a new issue