-
-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
qubes-dom0-update fails when the template is missing /var/lib/qubes/dom0-updates dir #3620
Comments
Fixed with donob4n/qubes-core-admin-linux@facf84a But I'm not sure if the bug is this not working when there is no /var/lib/qubes/dom0-updates or the fact it doesn't exist. Qubes 4.0 seems affected too. |
Will that fix actually work? Doesn't mkdir return an error if the directory is already there? |
Yes but qvm-run doesn't, so it just ignores it. I thought about doing more elegant "if" but there is no too much benefit since it's ignored and chown could fix a rare permission corruption. |
uhM, it seems that retcode is ignored because there is no --pass-io |
This dir was present in 3.2.22 but then got removed from the package. Missing that dir causes a problem for qubes-dom0-update that expects to find that dir existing. Fixes: QubesOS/qubes-issues#3620
This dir was present in 3.2.22 but then got removed from the package. Missing that dir causes a problem for qubes-dom0-update that expects to find that dir existing. Fixes: QubesOS/qubes-issues#3620
I think I've now found the cause for the missing the directory. The directory was present in qubes-core-agent v3.2.22 but not any more in the #QSB38-fixed versions (probably due to some non-#QSB38 related pending work that got included to the newer version). |
* qubesos/pr/39: Added -p to mkdir for skip error if dir exists Make dir dom0-updates if not exists on UpdateVM Fixes QubesOS/qubes-issues#3620
Automated announcement from builder-github The package
|
Automated announcement from builder-github The package
Or update dom0 via Qubes Manager. |
Automated announcement from builder-github The package
|
Automated announcement from builder-github The package
Or update dom0 via Qubes Manager. |
Qubes OS version:
R3.2
Affected TemplateVMs:
debian-9 derived template that for some reason had /var/lib/qubes/dom0-updates missing.
The reason why it has gone missing is unknown, however, I recently (a few days ago) installed QSB#38 packages into that template and this was the first time I used qubes-dom0-updates after that (IIRC).
Steps to reproduce the behavior:
Expected behavior:
Normal update process.
Actual behavior:
[dom0]$ sudo qubes-dom0-update
Using sys-firewall as UpdateVM to download updates for Dom0; this may take some time...
Running command on VM: 'sys-firewall'...
Running command on VM: 'sys-firewall'...
tar: /var/lib/qubes/dom0-updates: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
Dom0 updates dir does not exists: /var/lib/qubes/dom0-updates
[dom0]$
General notes:
I was able to restore the functionality by adding that /var/lib/qubes/dom0-updates and chowning it to user.user.
The same problem occurs also with --clean option so it won't help any.
The text was updated successfully, but these errors were encountered: