GNU bug report logs -
#68905
Boot fails when symlink exists
Previous Next
To reply to this bug, email your comments to 68905 AT debbugs.gnu.org.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-guix <at> gnu.org
:
bug#68905
; Package
guix
.
(Sat, 03 Feb 2024 04:32:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Pierre Neidhardt <vabagot <at> disroot.org>
:
New bug report received and forwarded. Copy sent to
bug-guix <at> gnu.org
.
(Sat, 03 Feb 2024 04:32:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Today my Guix System crashed during the boot process for external
reasons.
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/current-system.new file on my
disk.
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.
Cheers!
Pierre
This bug report was last modified 1 year and 39 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.