From 2cdc13c82588ceb24df482bbcd11fdaa7ea23ff1 Mon Sep 17 00:00:00 2001 From: MichaIng Date: Tue, 19 Nov 2024 23:33:51 +0100 Subject: [PATCH] v9.9 - DietPi-FS_partition_resize | Do not reload systemd when disabling/enabling this service, as it is relevant for next boot only, and the reload is time intense --- rootfs/var/lib/dietpi/services/fs_partition_resize.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rootfs/var/lib/dietpi/services/fs_partition_resize.sh b/rootfs/var/lib/dietpi/services/fs_partition_resize.sh index f806c7f808..9b7586df92 100755 --- a/rootfs/var/lib/dietpi/services/fs_partition_resize.sh +++ b/rootfs/var/lib/dietpi/services/fs_partition_resize.sh @@ -7,7 +7,7 @@ Reboot_to_load_Partition_table() { > /dietpi_skip_partition_resize - systemctl enable dietpi-fs_partition_resize + systemctl --no-reload enable dietpi-fs_partition_resize echo '[ INFO ] Rebooting to load the new partition table' sync reboot @@ -15,7 +15,7 @@ } # Disable this service - ! systemctl is-enabled dietpi-fs_partition_resize > /dev/null || systemctl disable dietpi-fs_partition_resize + ! systemctl is-enabled dietpi-fs_partition_resize > /dev/null || systemctl --no-reload disable dietpi-fs_partition_resize # Detect root device ROOT_DEV=$(findmnt -Ufnro SOURCE -M /)