From 86b172b9c2a9a2809909c5a277a2733128642a57 Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Thu, 21 Sep 2023 15:30:24 +0200 Subject: [PATCH] Create swapfile even when not using the multi-user.target (#2762) Pull in the swapfile creation service haos-swapfile.service when swap.target is reached. This makes sure the service is started even when other targets are used (e.g. rescue.target). --- .../rootfs-overlay/usr/lib/systemd/system/haos-swapfile.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildroot-external/rootfs-overlay/usr/lib/systemd/system/haos-swapfile.service b/buildroot-external/rootfs-overlay/usr/lib/systemd/system/haos-swapfile.service index 6d6b49646..872438487 100644 --- a/buildroot-external/rootfs-overlay/usr/lib/systemd/system/haos-swapfile.service +++ b/buildroot-external/rootfs-overlay/usr/lib/systemd/system/haos-swapfile.service @@ -10,4 +10,4 @@ Type=oneshot ExecStart=/usr/libexec/haos-swapfile [Install] -WantedBy=multi-user.target +WantedBy=swap.target