diff options
author | Sven Gothel <[email protected]> | 2021-07-22 14:29:00 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2021-07-22 14:29:00 +0200 |
commit | 0ae1dca5a6a44229a9dcc520c702efba7a7a8570 (patch) | |
tree | 4fbe673c12561af0320b605ffb32619bbed96826 /stage2 | |
parent | 4440a56c6b3f095c415a003534c770f296499deb (diff) |
stage2 01-sys-tweak: resize2fs_once: Resolve systemd dependency; Script now uses systemctl to disable itself, also use mv instead of deletion
Diffstat (limited to 'stage2')
-rwxr-xr-x | stage2/01-sys-tweaks/files/resize2fs_once | 5 | ||||
-rw-r--r-- | stage2/01-sys-tweaks/files/resize2fs_once.service | 4 |
2 files changed, 5 insertions, 4 deletions
diff --git a/stage2/01-sys-tweaks/files/resize2fs_once b/stage2/01-sys-tweaks/files/resize2fs_once index f8e45a6..d4d5e39 100755 --- a/stage2/01-sys-tweaks/files/resize2fs_once +++ b/stage2/01-sys-tweaks/files/resize2fs_once @@ -37,8 +37,9 @@ case "$1" in else echo "ROOT_DEV ${ROOT_DEV} not a substring of ROOT_PART ${ROOT_PART}." fi - update-rc.d resize2fs_once remove - rm -f /etc/init.d/resize2fs_once + systemctl disable resize2fs_once + systemctl mask resize2fs_once + mv /etc/init.d/resize2fs_once /etc/init.d/resize2fs_once.disabled log_end_msg $? ;; *) diff --git a/stage2/01-sys-tweaks/files/resize2fs_once.service b/stage2/01-sys-tweaks/files/resize2fs_once.service index 0c755a8..c3f9307 100644 --- a/stage2/01-sys-tweaks/files/resize2fs_once.service +++ b/stage2/01-sys-tweaks/files/resize2fs_once.service @@ -1,8 +1,8 @@ [Unit] Description=Resize the root filesystem to fill partition DefaultDependencies=no -After=systemd-udevd.service -Before=systemd-remount-fs.service systemd-random-seed.service systemd-journald.service local-fs-pre.target sysinit.target +After= +Before=systemd-remount-fs.service local-fs-pre.target sysinit.target [Service] Type=oneshot |