unofficial mirror of 
 help / color / mirror / code / Atom feed
* bug#68905: Boot fails when symlink exists
@ 2024-02-02 17:55 Pierre Neidhardt via Bug reports for GNU Guix
  0 siblings, 0 replies; only message in thread
From: Pierre Neidhardt via Bug reports for GNU Guix @ 2024-02-02 17:55 UTC (permalink / raw)
  To: 68905

Today my Guix System crashed during the boot process for external

Upon restart, booting a system would drop into the REPL right after the
following line:

--8<---------------cut here---------------start------------->8---
making '/var/...' the current system...
--8<---------------cut here---------------end--------------->8---

complaining that the symlink already exists.

I checked gnu/build/activation.scm (activate-current-system), and there
is this:

--8<---------------cut here---------------start------------->8---
  ;; Atomically make SYSTEM current.
  (let ((new (string-append %current-system ".new")))
    (symlink system new)
    (rename-file new %current-system)))
--8<---------------cut here---------------end--------------->8---

And indeed, there was a dangling /run/ file on my
After removing it (from a live USB, didn't know how to do this from the
Guile REPL), the system succeeded to boot.

The fix should be easy: ensure that (symlink system new) overwrites any
potentially existing file.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-02-04 14:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-02 17:55 bug#68905: Boot fails when symlink exists Pierre Neidhardt via Bug reports for GNU Guix

Code repositories for project(s) associated with this public inbox

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).