From c9f8991b0297e89b03b50d103d4bf8b88b970d11 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 3 Feb 2023 15:25:15 +0100 Subject: [zram-swap] Remove ordering before swap.target --- core/modules/zram-swap/data/etc/systemd/system/zram-swap.service | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'core/modules/zram-swap') diff --git a/core/modules/zram-swap/data/etc/systemd/system/zram-swap.service b/core/modules/zram-swap/data/etc/systemd/system/zram-swap.service index 60a23adb..b9e89675 100644 --- a/core/modules/zram-swap/data/etc/systemd/system/zram-swap.service +++ b/core/modules/zram-swap/data/etc/systemd/system/zram-swap.service @@ -1,8 +1,11 @@ [Unit] Description=Setup zram swap partitions if necessary DefaultDependencies=no -Wants=swap.target -Before=swap.target +# Do NOT do this. This delays bootup by a lot, as swap.target +# is a dependency of sysinit.target, which again is a dependency +# of pretty much everything. +#Wants=swap.target +#Before=swap.target # As our script checks whether there are other swap partitions available... After=setup-partitions.service -- cgit v1.2.3-55-g7522