diff options
| author | Serge Schneider <serge@raspberrypi.com> | 2025-09-22 09:52:38 +0100 |
|---|---|---|
| committer | Serge Schneider <serge@raspberrypi.com> | 2025-09-30 08:30:45 +0100 |
| commit | 0a8f9826ceb438145e8362dbfbdcdef3600f00c5 (patch) | |
| tree | ff6e91c60e703f32ad96d39c3deaf78a9a37bbdd | |
| parent | 372e56363338c0dd2f5bc5fa5f2e4d147685b23d (diff) | |
stage2: Enable first boot resize and fstrim service
| -rwxr-xr-x | stage2/01-sys-tweaks/01-run.sh | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/stage2/01-sys-tweaks/01-run.sh b/stage2/01-sys-tweaks/01-run.sh index be0e8cd..6da2876 100755 --- a/stage2/01-sys-tweaks/01-run.sh +++ b/stage2/01-sys-tweaks/01-run.sh @@ -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 - adduser $FIRST_USER_NAME \$GRP -done + +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 EOF if [ -f "${ROOTFS_DIR}/etc/sudoers.d/010_pi-nopasswd" ]; then |
