soios/os/layers/live/includes.chroot/etc/systemd/system/detect-swap.service

15 lines
301 B
SYSTEMD

[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