Marek Marczykowski-Górecki
1591885e04
dom0-updates: whitespace fixes
...
(cherry picked from commit d9b37eec6c
)
Fixes QubesOS/qubes-issues#2061
8 years ago
ttasket
4af2b02106
Fixes
...
Moved create private.img before yum.
Shutdown templatevm first -- don't want to query possibly compromised vm running old private.img.
Issue #2061
(cherry picked from commit fbb58918af
)
8 years ago
ttasket
fbb90e3078
Re-create private.img if missing
...
This restores the netvm setting and also re-creates private.img if older rpm scriptlet doesn't create it.
Issue #2061
(cherry picked from commit ef1ab34234
)
8 years ago
ttasket
7a14278a97
Try to handle private.img (fail)
...
mv and rm private.img like root.img, but this results in no private.img after reinstall.
do not use.
(cherry picked from commit 577944c8fb
)
8 years ago
ttasket
428ff4e503
Fix syntax
...
@marmarek This works on my system.
(cherry picked from commit 457b275800
)
8 years ago
ttasket
4563035b0c
Backup root.img
...
Just in case template %post scriptlet doesn't unlink during reinstall, or if reinstall fails.
Also preserves Netvm prefs setting.
(cherry picked from commit 32a4269f4a
)
8 years ago
ttasket
cf6b475bcd
Update qubes-dom0-update
...
(cherry picked from commit d316624f61
)
8 years ago
ttasket
9fb5f430fb
Backup root.img
...
Just in case template %post scriptlet doesn't unlink during reinstall, or if reinstall fails. Fixed PKGS test.
(cherry picked from commit 8c7a225070
)
8 years ago
ttasket
fb61b3995d
Backup root.img
...
Just in case template %post scriptlet doesn't unlink during reinstall, or if reinstall fails.
(cherry picked from commit 6c7c25d9e7
)
8 years ago
ttasket
f001a983e4
Support in-place template reinstalls - for testing
...
This doesn't yet prevent appvms from starting with invalid template during the reinstall, and doesn't deal with the Netvm setting problem.
For issue #2061
(cherry picked from commit 17627cdf3c
)
8 years ago
ttasket
6c1cbaedc4
Add template reinstall support
...
Issue #2061
Simple implementation checks for --action=reinstall but adds no sanity checks.
(cherry picked from commit 6b315b1dad
)
8 years ago
Marek Marczykowski-Górecki
6c7443223b
dom0-update: remove cached metadata when --clean is used
...
Fixes QubesOS/qubes-issues#1748
8 years ago
Marek Marczykowski-Górecki
2198986d5c
dom0-update: do not output scary messagge about missing repomd.xml
...
... when no updates are available.
Fixes QubesOS/qubes-issues#1685
8 years ago
Marek Marczykowski-Górecki
6921400a7a
dom0-updates: remove "updates pending" flag also when no actual updates were found
...
This allows to clear the flag when for some reason it wasn't cleared
immediately after installing updates.
Fixes QubesOS/qubes-issues#1511
9 years ago
Marek Marczykowski-Górecki
cb6a52a652
dom0-updates: wait for apper to finish, then remove "updates pending" flag
...
Unfortunate side effect (to be solved at Qubes Manager side): it will
block Qubes Manager until all updates are installed (not only updater
launched).
Fixes QubesOS/qubes-issues#1511
9 years ago
Marek Marczykowski-Górecki
4a556dcab1
dom0-updates: ensure proper permissions on "updates pending" flag
...
QubesOS/qubes-issues#1511
9 years ago
Marek Marczykowski-Górecki
d9a2a66073
dom0-updates: remove unused code from cron job
9 years ago
Patrick Schleizer
7d0b2479f5
filter out tar time wrap warnings using grep
...
https://phabricator.whonix.org/T401#6634
9 years ago
Marek Marczykowski-Górecki
5e3fbb1623
dom0-updates: ensure proper permissions on packages and metadata
...
This also includes possibly error flag file.
9 years ago
Marek Marczykowski-Górecki
a5650d3251
dom0-update: improve package validation regexp - include DSA case ( #988 )
...
Apparently when package is signed with DSA key, rpm -K output is totally
different. This is the case for bumblebee package on rpmfusion.
Fixes qubesos/qubes-issues#988
9 years ago
Marek Marczykowski-Górecki
f2b5cf1cc0
dom0-update: clear error marker before downloading new packages ( #987 )
...
Otherwise if some package download fails once - further tries will also
report errors.
Fixes qubesos/qubes-issues#987
9 years ago
Marek Marczykowski-Górecki
4cab815317
dom0-update: prevent template package upgrades ( #996 )
...
This would override user changes to the template. Previous method
(Obsoletes: rpm header) doesn't work now, so add explicit exclude list
as yum option
Fixes qubesos/qubes-issues#996
9 years ago
Marek Marczykowski-Górecki
3c151ca509
dom0-update: allow to specify custom yum action
...
This can be useful for actions like "downgrade", "reinstall" etc.
Needs additional testing if whole distribution upgrade using
"distro-sync" action will work as expected.
9 years ago
Marek Marczykowski-Górecki
28dfdddc0e
Minor fixes in messages
10 years ago
Marek Marczykowski-Górecki
a74b69ce08
dom0-updates: ensure that metadata are available to normal user
10 years ago
Marek Marczykowski-Górecki
a013cb3eca
dom0-updates: call "apper --updates" to go directly to updates tab
10 years ago
Marek Marczykowski-Górecki
8627ef9a80
dom0-updates: use GUI tool appropriate to current DE ( #824 )
10 years ago
Marek Marczykowski-Górecki
c443264fae
dom0-updates: move GUI notification to qubes-manager ( #824 )
...
It is hard to get user session D-Bus address from outside of session. In
some cases there are even multiple dbus-daemon instances of the same
user...
10 years ago
Wojciech Zygmunt Porczyk
66234f41ee
regexp fixes and validation ( #829 )
10 years ago
Marek Marczykowski-Górecki
a7c43e6148
dom0-updates: clean local repo when --clean given
10 years ago
Marek Marczykowski-Górecki
c74ac87582
dom0-updates: only notify about updates from cron, do not install them ( #824 )
...
It doesn't work and isn't simple to fix (needs the whole user
environment). So just notify about updates and let the user install them
from Qubes Manager or cmdline.
10 years ago
Marek Marczykowski-Górecki
c103f3713c
dom0-updates: force 'C' locale for rpm --checksig call
...
Otherwise "OK", searched by regex, might be translated (which is the
case for es_ES locale).
10 years ago
Marek Marczykowski-Górecki
46f85b7f3f
dom0-updates: fix command quotation, hide only harmless error msgs
10 years ago
Marek Marczykowski-Górecki
793dec27ff
dom0-updates: use qvm-run, not qrexec-client directly
10 years ago
Marek Marczykowski-Górecki
84a9d12c48
dom0-updates: add flag file for disabling update check ( #800 )
10 years ago
Marek Marczykowski-Górecki
2b95581928
Add -Wextra -Werror to all C compile flags
10 years ago
Marek Marczykowski-Górecki
aa0fda1984
Fix -Wextra warnings
10 years ago
Vincent Penquerc'h
f4551e7698
qfile-dom0-unpacker: add newlines to error messages
11 years ago
Vincent Penquerc'h
e6a5210d08
qfile-dom0-unpacker: some error checking
11 years ago
Vincent Penquerc'h
fa8ef4b4fc
qfile-dom0-unpacker: add a few consts where appropriate
11 years ago
Vincent Penquerc'h
13483691af
qfile-dom0-unpacker: make long long constant explicit
11 years ago
Marek Marczykowski-Górecki
68186cb980
qfile-dom0-unpacker: add '-v' option - print archive file list while extracting
...
This is used by backup-restore tool to handle already received files
immediately.
11 years ago
Marek Marczykowski-Górecki
d0509caf9e
pm-utils: hook qubes suspend scripts to systemd
...
Apparently new KDE doesn't call pm-suspend anymore, instead use systemd
suspend logic. So hook our scripts also there.
11 years ago
Marek Marczykowski
158bfff3cf
Add qrexec back, use qubes-utils libraries for common code
11 years ago
Marek Marczykowski
e5f9e46e19
dom0-updates code
11 years ago