all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Vladilen Kozin <vladilen.kozin@gmail.com>
To: help-guix@gnu.org
Subject: How to debug failed boot after successful reconfigure?
Date: Thu, 8 Apr 2021 16:58:35 +0100	[thread overview]
Message-ID: <CACw=CXOUACXGF35d+46NGqSkr=vanZMANJRrR_OyhJ59i6jYng@mail.gmail.com> (raw)

Hi list.

I'm trying to wrap my head around running guix. While question in subj
is general it was prompted by a real failure, so really I am
interested both in "general approach" as well as solving the actual
problem I ran into.

having updated with `guix pull` I run `sudo guix system reconfigure
config.scm` which succeeds. I reboot and the boot fails attempting to
mount the new file-systems I've introduced in that config. This being
guix I reboot into older generation. However, now I am unsure how to
debug what'd happened. E.g. I would like to:
- look at failed dmesg or equivalent log,
- look at files that reconfigure produced in /etc, e.g. /etc/fstab

IIUC when I boot even from an older generation, the failed one will be
marked as "current" (that is the newest reconfigured) but everything
in /etc appears to belong to the older generation - hardly surprising.
Following link shown by `guix system describe` in my case
/var/guix/profiles/system-2-link I don't see e.g. /etc/fstab I'm
interested in. Where are those files?

So, the questions above (maybe others I should've asked?) amount to my
asking, how to debug the failure.

My specific case was adding these files-systems to my os declaration:
(file-system
    (mount-point "/mnt/tempb")
    (device (file-system-label "tempb"))
    (type "ext4")
    #;(flags '(no-atime))
    (options "defaults,noatime,discard,user")
    (create-mount-point? #t))

At boot time I got multiple errors from mount unable to figure the
options supplied. This in itself is puzzling seeing how I did check
/etc/fstab after reconfigure and was able to manually mount as per
that generated /etc/fstab without issue. One note is that I think the
(create-mount-point? #t) had not been honored, but I did create those
mount points manually. Dunno, might be a bug in guix proper. But
that's minor.

Thanks

-- 
Best regards
Vlad Kozin


             reply	other threads:[~2021-04-08 16:13 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-08 15:58 Vladilen Kozin [this message]
2021-04-09 11:53 ` How to debug failed boot after successful reconfigure? Vladilen Kozin
2021-04-09 19:36   ` Julien Lepiller

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CACw=CXOUACXGF35d+46NGqSkr=vanZMANJRrR_OyhJ59i6jYng@mail.gmail.com' \
    --to=vladilen.kozin@gmail.com \
    --cc=help-guix@gnu.org \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.