diff options
| author | Serge Schneider <serge@raspberrypi.com> | 2025-06-05 19:49:21 +0100 |
|---|---|---|
| committer | Serge Schneider <serge@raspberrypi.com> | 2025-08-19 15:23:44 +0100 |
| commit | a078afeba001f93cc1c74a266bdd07d3f03ec713 (patch) | |
| tree | be011997f7f1d404ef412ac1a64bf43136d3179e | |
| parent | f6a540d36cb6e32f70595ef9d3f8da557b6dea0e (diff) | |
stage2: remove resize2fs_once init.d service
| -rwxr-xr-x | stage2/01-sys-tweaks/01-run.sh | 9 | ||||
| -rw-r--r-- | stage2/01-sys-tweaks/files/resize2fs_once | 25 |
2 files changed, 0 insertions, 34 deletions
diff --git a/stage2/01-sys-tweaks/01-run.sh b/stage2/01-sys-tweaks/01-run.sh index 9488996..cde04e8 100755 --- a/stage2/01-sys-tweaks/01-run.sh +++ b/stage2/01-sys-tweaks/01-run.sh @@ -1,7 +1,5 @@ #!/bin/bash -e -install -m 755 files/resize2fs_once "${ROOTFS_DIR}/etc/init.d/" - install -m 644 files/50raspi "${ROOTFS_DIR}/etc/apt/apt.conf.d/" if [ -n "${PUBKEY_SSH_FIRST_USER}" ]; then @@ -31,14 +29,7 @@ EOF if [ "${USE_QEMU}" = "1" ]; then echo "enter QEMU mode" install -m 644 files/90-qemu.rules "${ROOTFS_DIR}/etc/udev/rules.d/" - on_chroot << EOF -systemctl disable resize2fs_once -EOF echo "leaving QEMU mode" -else - on_chroot << EOF -systemctl enable resize2fs_once -EOF fi on_chroot <<EOF diff --git a/stage2/01-sys-tweaks/files/resize2fs_once b/stage2/01-sys-tweaks/files/resize2fs_once deleted file mode 100644 index 38a4d47..0000000 --- a/stage2/01-sys-tweaks/files/resize2fs_once +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/sh -### BEGIN INIT INFO -# Provides: resize2fs_once -# Required-Start: -# Required-Stop: -# Default-Start: 3 -# Default-Stop: -# Short-Description: Resize the root filesystem to fill partition -# Description: -### END INIT INFO -. /lib/lsb/init-functions -case "$1" in - start) - log_daemon_msg "Starting resize2fs_once" - ROOT_DEV=$(findmnt / -o source -n) && - resize2fs $ROOT_DEV && - update-rc.d resize2fs_once remove && - rm /etc/init.d/resize2fs_once && - log_end_msg $? - ;; - *) - echo "Usage: $0 start" >&2 - exit 3 - ;; -esac |
