Compare commits

..

3 commits

3 changed files with 6 additions and 3 deletions

View file

@ -1,11 +1,8 @@
svc_systemd = { svc_systemd = {
'swapfile-prepare.service': { 'swapfile-prepare.service': {
'enabled': True,
'running': None, 'running': None,
}, },
'swapfile.swap': { 'swapfile.swap': {
'enabled': True,
'running': True,
'needs': [ 'needs': [
'svc_systemd:swapfile-prepare.service', 'svc_systemd:swapfile-prepare.service',
], ],

View file

@ -6,6 +6,11 @@ defaults = {
'Swap': { 'Swap': {
'What': '/swapfile', 'What': '/swapfile',
}, },
'Install': {
'WantedBy': {
'swap.target',
},
},
}, },
}, },
}, },

View file

@ -28,6 +28,7 @@ order = [
'Unit', 'Unit',
'Timer', 'Timer',
'Service', 'Service',
'Swap',
'Install', 'Install',
] ]