GNU bug report logs -
#54831
guix home reconfigure fails with “rmdir: No such file or directory”
Previous Next
Reported by: Brian Cully <bjc <at> spork.org>
Date: Sun, 10 Apr 2022 01:21:02 UTC
Severity: normal
Done: Ludovic Courtès <ludo <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Christopher Rodriguez
Table of Contents
─────────────────
I'd like to add my $0.02 as well.
Seems like the issue is during the deployment, as Madhavan
said. Specifically, the error message in that form only appears in
`gnu/home/services/symlink-manager.scm', in the function
`cleanup-symlinks'.
It seems that, right now, the issue is that `ENOTEMPTY' and `ENOTDIR'
are tested for and handled, but `ENOENT' is not. Ideally, this should be
handled and tell the user /which/ file or directory is missing, not halt
the entire process. And, since we are testing for a missing file (and
thus have no chance of overwriting a user's data), it would probably
make the most sense to just create the file that is missing in the next
step, without stopping at all.
I'll throw together a patch real quick to test with. I could be very off
base, but I think this should fix this issue.
[Message part 2 (text/html, inline)]
[Message part 3 (text/plain, inline)]
--
Christopher Rodriguez
[signature.asc (application/pgp-signature, inline)]
This bug report was last modified 3 years and 44 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.