Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upqubes-dom0-update fails when the template is missing /var/lib/qubes/dom0-updates dir #3620
Comments
andrewdavidwong
added
bug
C: core
labels
Feb 23, 2018
andrewdavidwong
added this to the Release 3.2 updates milestone
Feb 23, 2018
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
donob4n
Feb 23, 2018
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.
donob4n
commented
Feb 23, 2018
•
|
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. |
added a commit
to donob4n/qubes-core-admin-linux
that referenced
this issue
Feb 23, 2018
This was referenced Feb 23, 2018
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
ij1
Feb 23, 2018
Will that fix actually work? Doesn't mkdir return an error if the directory is already there?
That is, I guess it would fix my problem but break it for the another case.
ij1
commented
Feb 23, 2018
•
|
Will that fix actually work? Doesn't mkdir return an error if the directory is already there? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
donob4n
Feb 23, 2018
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.
donob4n
commented
Feb 23, 2018
•
|
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. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
donob4n
commented
Feb 23, 2018
•
|
uhM, it seems that retcode is ignored because there is no --pass-io |
added a commit
to ij1/qubes-core-agent-linux
that referenced
this issue
Feb 23, 2018
ij1
referenced this issue
in QubesOS/qubes-core-agent-linux
Feb 23, 2018
Merged
Fix qubes-dom0-update regression by restoring dom0-updates dir #99
added a commit
to ij1/qubes-core-agent-linux
that referenced
this issue
Feb 23, 2018
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
ij1
Feb 23, 2018
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).
ij1
commented
Feb 23, 2018
|
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). |
marmarek
closed this
in
marmarek/qubes-core-admin-linux@6cef3f3
Feb 25, 2018
added a commit
to QubesOS/qubes-core-admin-linux
that referenced
this issue
Feb 25, 2018
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
qubesos-bot
Mar 4, 2018
Automated announcement from builder-github
The package qubes-core-dom0-linux-4.0.12-1.fc25 has been pushed to the r4.0 testing repository for dom0.
To test this update, please install it with the following command:
sudo qubes-dom0-update --enablerepo=qubes-dom0-current-testing
qubesos-bot
commented
Mar 4, 2018
|
Automated announcement from builder-github The package
|
qubesos-bot
added
the
r4.0-dom0-cur-test
label
Mar 4, 2018
qubesos-bot
referenced this issue
in QubesOS/updates-status
Mar 4, 2018
Closed
core-admin-linux v4.0.12 (r4.0) #445
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
qubesos-bot
Mar 12, 2018
Automated announcement from builder-github
The package qubes-core-dom0-linux-4.0.13-1.fc25 has been pushed to the r4.0 stable repository for dom0.
To install this update, please use the standard update command:
sudo qubes-dom0-update
Or update dom0 via Qubes Manager.
qubesos-bot
commented
Mar 12, 2018
|
Automated announcement from builder-github The package
Or update dom0 via Qubes Manager. |
ij1 commentedFeb 22, 2018
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.