Swap partition on GuixSD

  • Done
  • quality assurance status badge
Details
3 participants
  • ng0
  • Ludovic Courtès
  • Quiliro
Owner
unassigned
Submitted by
Quiliro
Severity
normal
Q
Q
Quiliro wrote on 18 Apr 2017 03:59
(address . bug-guix@gnu.org)
20170417201611.6e920b4f@riseup.net
The sample file for a desktop configuration on
does not give an example of swap-devices.

Is adding this line correct on the operating-system section in the
config.scm file if my swap partition is sda2?:
(swap-devices ("/dev/sda2"))

Should then I run?:
guix system reconfigure /etc/config.scm

--
Saluton,
Quiliro
0987631031
N
(name . Quiliro)(address . quiliro@riseup.net)(address . 26566@debbugs.gnu.org)
20170419165335.x6rqk2th3iorhtf7@abyayala
Hi,

Quiliro transcribed 0.4K bytes:
Toggle quote (8 lines)
> The sample file for a desktop configuration on
> https://www.gnu.org/software/guix/manual/guix.html#System-Services
> does not give an example of swap-devices.
>
> Is adding this line correct on the operating-system section in the
> config.scm file if my swap partition is sda2?:
> (swap-devices ("/dev/sda2"))

That should be (swap-devices '("/dev/sda2"))
but in theory the guix reconfigure would complain about this mistake.

Toggle quote (3 lines)
> Should then I run?:
> guix system reconfigure /etc/config.scm

Yes, if this is from within an already running system and not just at the start prior to "guix system init foo.scm"

Toggle quote (10 lines)
> --
> Saluton,
> Quiliro
> 0987631031
>
>
>
>
>

L
L
Ludovic Courtès wrote on 19 Apr 2017 23:25
(name . Quiliro)(address . quiliro@riseup.net)(address . 26566@debbugs.gnu.org)
87y3uwjdij.fsf@gnu.org
Hi Quiliro,

ng0 <contact.ng0@cryptolab.net> skribis:

Toggle quote (12 lines)
> Quiliro transcribed 0.4K bytes:
>> The sample file for a desktop configuration on
>> https://www.gnu.org/software/guix/manual/guix.html#System-Services
>> does not give an example of swap-devices.
>>
>> Is adding this line correct on the operating-system section in the
>> config.scm file if my swap partition is sda2?:
>> (swap-devices ("/dev/sda2"))
>
> That should be (swap-devices '("/dev/sda2"))
> but in theory the guix reconfigure would complain about this mistake.

Indeed. See
(search for “swap”), or just “info -k swap” on your system.

HTH!

Ludo’.

PS: BTW, this is more a message for help-guix@gnu.org, the support
mailing list. Emailing bug-guix@gnu.org opens a new issue.
Q
Q
Quiliro wrote on 20 Apr 2017 05:25
(address . 26566@debbugs.gnu.org)
20170419222500.050d66e6@riseup.net
El Wed, 19 Apr 2017 23:25:40 +0200
ludo@gnu.org (Ludovic Courtès) escribió:

Toggle quote (17 lines)
> Hi Quiliro,
>
> ng0 <contact.ng0@cryptolab.net> skribis:
>
> > Quiliro transcribed 0.4K bytes:
> >> The sample file for a desktop configuration on
> >> https://www.gnu.org/software/guix/manual/guix.html#System-Services
> >> does not give an example of swap-devices.
> >>
> >> Is adding this line correct on the operating-system section in the
> >> config.scm file if my swap partition is sda2?:
> >> (swap-devices ("/dev/sda2"))
> >
> > That should be (swap-devices '("/dev/sda2"))
> > but in theory the guix reconfigure would complain about this
> > mistake.

Thank you ng0. :-)

Toggle quote (4 lines)
> Indeed. See
> <https://gnu.org/s/guix/manual/html_node/operating_002dsystem-Reference.html>
> (search for “swap”), or just “info -k swap” on your system.

What I mean by no example is that there is a file with other examples
and not the swap example, which I think is essential to have in a
config.scm.

Toggle quote (3 lines)
> PS: BTW, this is more a message for help-guix@gnu.org, the support
> mailing list. Emailing bug-guix@gnu.org opens a new issue.

I did send my message to help-guix@gnu.org. I don't know how it ended
in this list.

--
Example of rude top posting:

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

A: No.
Q: Should I leave quotations after my reply?

Saluton,
Quiliro
0987631031
L
L
Ludovic Courtès wrote on 20 Apr 2017 10:21
control message for bug #26566
(address . control@debbugs.gnu.org)
8737d35w23.fsf@gnu.org
tags 26566 notabug
close 26566
?