GNU bug report logs -
#51346
[PATCH 0/1 core-updates-frozen] Rework swap device to add dependencies and flags
Previous Next
Reported by: Josselin Poiret <dev <at> jpoiret.xyz>
Date: Sat, 23 Oct 2021 09:47:02 UTC
Severity: normal
Tags: patch
Done: Ludovic Courtès <ludo <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Oh no,
he's back. With another annoying question: why don't we drop the
whole swap-partition/swap-file dichotomy? The distinction is
artificial insofar as Linux doesn't make one.
Which end is supposed to explode if you
(swap-partition (device "/home/nckx/swap"))
(swap-file (name "/dev/sda2"))
?
What real-world drawback(s) do you see to
(swap (space "/home/nckx/swap"))
(swap (space "/dev/sda2"))
(swap (space (uuid "ab-c-d-e-fgh")))
(swap (space (file-system-label "best-swaps")))
naming aside?
Josselin Poiret via Guix-patches via 写道:
> +(define (swap-partition->service-name spartition)
Nitpick: ->shepherd-service-name just for similarity to
<file-system>s.
Aside, when I try to apply your third manual example, I get:
guix system: error: service 'swap-/dev/sda2' requires
'file-system-/', which is not provided by any service
Kind regards,
T G-R
[signature.asc (application/pgp-signature, inline)]
This bug report was last modified 3 years and 185 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.