mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-04-08 22:20:38 +02:00
gnu: system: Make old-style swap use default flags.
* gnu/services/base.scm (swap-service-type): Use default flags (0) if SWAP is not a new-style <swap-space> record. Signed-off-by: Tobias Geerinckx-Rice <me@tobias.gr>
This commit is contained in:
committed by
Tobias Geerinckx-Rice
parent
8452c5d1f4
commit
d48b404cf5
@@ -2225,8 +2225,10 @@ instance."
|
||||
(and device
|
||||
(begin
|
||||
(restart-on-EINTR (swapon device
|
||||
#$(swap-space->flags-bit-mask
|
||||
swap)))
|
||||
#$(if (swap-space? swap)
|
||||
(swap-space->flags-bit-mask
|
||||
swap)
|
||||
0)))
|
||||
#t)))))
|
||||
(stop #~(lambda _
|
||||
(let ((device #$device-lookup))
|
||||
|
||||
Reference in New Issue
Block a user