soios/os/layers/live/includes.chroot/etc/systemd/system/detect-swap.service
Jan Schär 6b327be311 Detect and enable swap partitions on live
The laptops owned by SOI have 8 GB of RAM, and live systems running on
them sometimes run out of memory. To mitigate this, find and enable the
swap partition of the installed OS on the internal SSD.
2025-03-01 14:08:59 +01:00

14 lines
301 B
Desktop File

[Unit]
Description=detect and enable swap partitions.
Before=basic.target
After=local-fs.target systemd-tmpfiles-setup.service
DefaultDependencies=no
ConditionKernelCommandLine=boot=live
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/local/bin/detect-swap
[Install]
WantedBy=basic.target