Summary: | app-portage/portage-utils-0.92: can not rename vdb cross-device after otherwise successful merge | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Barnabás Virágh <cyborgyn> |
Component: | Current packages | Assignee: | Fabian Groffen <grobian> |
Status: | RESOLVED FIXED | ||
Severity: | minor | CC: | sam |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | vdb dir move cross-device patch |
Description
Barnabás Virágh
2021-10-03 20:42:40 UTC
Created attachment 742848 [details, diff]
vdb dir move cross-device patch
We have libq/copy_file, so I'd rather jam that up with scandir or something to do the move without having to spawn an external process. Perhaps overkill, but I'm trying to get rid of most of those system spawns. I like the idea, even better than my easy quick fix solution. I think qmerge at some point does a recursive move already to merge image to live, so it probably is a single file at a time at that point. Ah, I hit this recently when helping a user in #gentoo with --root, but somehow didn't find this bug. Their system had become totally hosed and we needed to install a series of rescue packages but we hit a snag (this), I think. The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=ed8a0a8694de1a83a29041104de162ff63e5f8c6 commit ed8a0a8694de1a83a29041104de162ff63e5f8c6 Author: Fabian Groffen <grobian@gentoo.org> AuthorDate: 2021-12-26 13:55:24 +0000 Commit: Fabian Groffen <grobian@gentoo.org> CommitDate: 2021-12-26 13:55:24 +0000 qmerge: support cross-device merges also for VDB #816141 As originally suggested by Barnabás Virágh, but in this implementation using move_file, which is now shared code between pkg merge and the putting the vdb in place. Bug: https://bugs.gentoo.org/816141 Signed-off-by: Fabian Groffen <grobian@gentoo.org> qmerge.c | 115 ++++++++++++++++++++------------------------------------------- 1 file changed, 37 insertions(+), 78 deletions(-) The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aec1262e6d8a12033789f6d80b431e9838293496 commit aec1262e6d8a12033789f6d80b431e9838293496 Author: Fabian Groffen <grobian@gentoo.org> AuthorDate: 2021-12-26 14:30:05 +0000 Commit: Fabian Groffen <grobian@gentoo.org> CommitDate: 2021-12-26 14:30:37 +0000 app-portage/portage-utils-0.93.2: bump for qlop -Ev regr, fix #816141 Closes: https://bugs.gentoo.org/816141 Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Fabian Groffen <grobian@gentoo.org> app-portage/portage-utils/Manifest | 2 +- .../{portage-utils-0.93.1.ebuild => portage-utils-0.93.2.ebuild} | 0 2 files changed, 1 insertion(+), 1 deletion(-) Thank you both. Huge help for recovering broken boxes! sorry for being slow to deliver on this one ... I tested this by forcing tmp to be on another FS here, and confirmed the copy+unlink path kicked in. Any confirmation on setups where this was/is an issue would be welcome though. |