From: ludo@gnu.org (Ludovic Courtès)
To: huang ying <huang.ying.caritas@gmail.com>
Cc: help-guix@gnu.org
Subject: Re: How to delete system generations?
Date: Sun, 08 Jan 2017 21:50:22 +0100 [thread overview]
Message-ID: <87lgultgxd.fsf@gnu.org> (raw)
In-Reply-To: <CAC=cRTOeUYvdzLjjhO2fbxr5wbtUaCMgVYz2_Ls66w=qhuixHA@mail.gmail.com> (huang ying's message of "Sun, 8 Jan 2017 22:01:12 +0800")
Hello,
huang ying <huang.ying.caritas@gmail.com> skribis:
> For package, there is
>
> $ guix package --delete-generations
>
> But, for system, I don't find similar stuff? Is there something for that?
Not yet! But you can run:
sudo rm /var/guix/profiles/system-123-link
to delete generation 123. Be careful to choose the right number!
> I need that because I found the contents of the following store item is invalid,
>
> /gnu/store/s9mrff47jfp9b3bhgv59q2kzwbmi6rl8-fatfsck-static-4.0
>
> $ ls -l /gnu/store/s9mrff47jfp9b3bhgv59q2kzwbmi6rl8-fatfsck-static-4.0/sbin
> total 0
> -r-xr-xr-x 1 root root 0 Jan 1 1970 fsck.fat
> lrwxrwxrwx 4 root root 8 Jan 1 1970 fsck.vfat -> fsck.fat
How do you know it’s invalid?
> I want to regenerate it and the initrd. But I don't know how. One
> way is to delete all generations depends on it, gc it, then regenerate
> it. But I don't know how to delete system generations.
>
> Or is there some other way to work around this?
When the store is corrupt, you can run ‘guix gc --verify=contents,repair’:
https://www.gnu.org/software/guix/manual/html_node/Invoking-guix-gc.html
That will check the integrity of each item in /gnu/store (thus it’s very
I/O-intensive and can take a lot of time) and, if it finds a corrupt
item, will try to fetch a substitute to replace it. That’s really a
last resort, though.
HTH,
Ludo’.
next prev parent reply other threads:[~2017-01-08 20:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-08 14:01 How to delete system generations? huang ying
2017-01-08 20:50 ` Ludovic Courtès [this message]
2017-01-09 1:13 ` huang ying
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87lgultgxd.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=help-guix@gnu.org \
--cc=huang.ying.caritas@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).