stage2: remove resize2fs_once init.d service

This commit is contained in:
Serge Schneider
2025-06-05 19:49:21 +01:00
parent f6a540d36c
commit a078afeba0
2 changed files with 0 additions and 34 deletions

View File

@@ -1,7 +1,5 @@
#!/bin/bash -e #!/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/" install -m 644 files/50raspi "${ROOTFS_DIR}/etc/apt/apt.conf.d/"
if [ -n "${PUBKEY_SSH_FIRST_USER}" ]; then if [ -n "${PUBKEY_SSH_FIRST_USER}" ]; then
@@ -31,14 +29,7 @@ EOF
if [ "${USE_QEMU}" = "1" ]; then if [ "${USE_QEMU}" = "1" ]; then
echo "enter QEMU mode" echo "enter QEMU mode"
install -m 644 files/90-qemu.rules "${ROOTFS_DIR}/etc/udev/rules.d/" 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" echo "leaving QEMU mode"
else
on_chroot << EOF
systemctl enable resize2fs_once
EOF
fi fi
on_chroot <<EOF on_chroot <<EOF

View File

@@ -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