stage2: Enable first boot resize and fstrim service

This commit is contained in:
Serge Schneider
2025-09-22 09:52:38 +01:00
parent 372e563633
commit 0a8f9826ce

View File

@@ -26,14 +26,16 @@ if [ "${USE_QEMU}" = "1" ]; then
echo "leaving QEMU mode"
fi
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
on_chroot <<- EOF
systemctl enable rpi-resize
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
done
EOF
if [ -f "${ROOTFS_DIR}/etc/sudoers.d/010_pi-nopasswd" ]; then