Marek Marczykowski-Górecki
59ecf8eb83
dom0-update: fix backup template name calculation
...
VM name is limited to 31 chars, not 32.
Fixes QubesOS/qubes-issues#4829
5 years ago
Marek Marczykowski-Górecki
9c3a4e7b00
dom0-updates: use qvm-run -q
...
One of the calls missed -q option.
6 years ago
Marek Marczykowski-Górecki
d7c23e1b7f
dom0-updates: fix command line for dnf4
...
dnf4 (Fedora 29) does not like final coma in --exclude option. If it's
there, the whole --exclude is ignored on misinterpreted (as one long
package name?).
6 years ago
Marek Marczykowski-Górecki
8555ff4ced
dom-updates: drop 'distroverpkg' from dnf.conf
...
It does nothing in dnf (was useful in yum era).
QubesOS/qubes-issues#4477
6 years ago
Marek Marczykowski-Górecki
c03fbecb4e
dom0-updates: use qvm-service for disabling dom0 updates check
...
Use the same mechanism as VMs - first it's compatible with Admin API (in
contrary to flag files); second it ease handling it.
Migrate old setting on package upgrade.
6 years ago
Marek Marczykowski-Górecki
10960564cf
dom0-updates: use qvm-features to report dom0 updates
...
Use the same as thing as VMs.
6 years ago
Kushal Das
0a94e59325
Adds info & search actions for template packages
...
Now we can do --action=info or --action=search
for a template. This will not shutdown the template and simply
execute search or info command for dnf.
6 years ago
Marta Marczykowska-Górecka
879b62c353
Error in qubes-dom0-update --gui
...
Fixed error with zenity in qubes-dom0-update --gui,
in which zenity was called with insufficient parameters.
fixes QubesOS/qubes-issues#4339
6 years ago
AJ Jordan
a5d6dd3001
Fix some references to `yum` instead of `dnf`
...
I didn't change any of the variable names because it made me nervous and I was too lazy to test.
6 years ago
Marek Marczykowski-Górecki
03959b670c
dom0-updates: display GUI notification about no updates
...
If no updates are available, display some notification about that (when
GUI mode requested). Otherwise user has no idea what happened (update
failed? still doing something?).
Fixes QubesOS/qubes-issues#3751
6 years ago
donoban
dbb22f6335
Bad spaces
6 years ago
donoban
31548737c6
Add -p to mkdir to skip error if dir already exists
6 years ago
donoban
994bd72363
Make dir dom0-updates if not exists on UpdateVM
...
https://github.com/QubesOS/qubes-issues/issues/3620
6 years ago
Miguel Jacq
6a792ed056
Fix typos in qubes-dom0-update
6 years ago
Marek Marczykowski-Górecki
b07706fd7a
dom0-updates: launch console update in terminal emulator as "GUI"
...
GUI updaters and Packagekit are confused by networkless dom0 and often
report that:
- cannot check for updates (because of no network connection)
- no updates are available, even if they are
The latter happen mostly because PackageKit does not load dnf.conf, so
try to use /etc/yum.repos.d (network repositories) instead of
/etc/yum.real.repos.d (local cache, downloaded by qubes-dom0-update).
Currently PackageKit does not support configuring it, the path is
hardcoded.
Until both of above issues get fixed, prefer console updater.
Fixes QubesOS/qubes-issues#1378
7 years ago
Marek Marczykowski-Górecki
8689170368
dom0-updates: move PackageKit cache refresh to GUI handling
...
PackageKit is used only by GUI updaters, refresh its cache only then.
Since PackageKit daemon do not read dnf.conf, it doesn't know the right
repository location, so try to access network, which results in
timeouts. But at the same time, it invalidate previous cache, which is
what we need.
Do not delay every qubes-dom0-update call by pkcon call.
7 years ago
Marek Marczykowski-Górecki
be9e759697
Merge remote-tracking branch 'qubesos/pr/33'
...
* qubesos/pr/33:
qubes-dom0-update: Adapt template backup failsafe for R4
7 years ago
Marek Marczykowski-Górecki
7902979470
Merge remote-tracking branch 'qubesos/pr/32'
...
* qubesos/pr/32:
qubes-dom0-update: Simplify
7 years ago
Jean-Philippe Ouellet
552fd062ea
qubes-dom0-update: Adapt template backup failsafe for R4
...
Perhaps the UpdateVM template should be temporarily switched to the
backup too. That would make it really failsafe. Currently it requires
manual recovery (by setting template of UpdateVM to the backup).
7 years ago
Jean-Philippe Ouellet
aeb04e24e2
qubes-dom0-update: Simplify
...
qvm-run auto-starts VMs by default
7 years ago
Jean-Philippe Ouellet
686db90032
qubes-dom0-update: Remove dependency on Xen as vmm
7 years ago
Andrew (anoa)
02ced3a639
Switch to createrepo_c
...
Fixes QubesOS/qubes-core-admin-linux#2815
7 years ago
Marek Marczykowski-Górecki
005fed6cdf
Merge remote-tracking branch 'qubesos/pr/27'
...
* qubesos/pr/27:
Fix root.img handling bug
7 years ago
Christopher Laprise
6d251d5c58
Fix root.img handling bug
...
Per issue https://github.com/QubesOS/qubes-issues/issues/2848
7 years ago
Marek Marczykowski-Górecki
1447ecad57
dom0-updates: migrate qubes-receive-updates script to use Admin API
...
Don't import qubes.xml directly.
7 years ago
Marek Marczykowski-Górecki
d9202f8d14
Update qubes-dom0-update script
...
- don't call removed qvm-sync-clock
- use qvm-start --skip-if-running instead of qvm-run ... true, to start
a VM
- update qvm-run options
- use dnf directly, not through compatibility wrapper
7 years ago
Marek Marczykowski-Górecki
ad2a976924
Merge branch 'core3-devel'
7 years ago
unman
fa72d66d5d
Flush dnf configuration on updateVM before starting dom0 update
7 years ago
Christopher Laprise
25f1801061
Fixes
7 years ago
Christopher Laprise
ad404bfbe6
Starting mods for template upgrade support
7 years ago
Marek Marczykowski-Górecki
452b6c4ae2
dom0-updates: code style fixes
7 years ago
Marek Marczykowski-Górecki
514c27d681
dom0-updates: update qubes-receive-updates to python3
7 years ago
Rusty Bird
be30203d81
qubes-dom0-update: Show sync and download progress
...
Use "script" (part of util-linux) to fake a dumb terminal in the
updatevm, so dnf will show sync and download progress indicators.
8 years ago
Marek Marczykowski-Górecki
b91eace873
dom0-updates: convert to core3 API
8 years ago
Marek Marczykowski-Górecki
d9b37eec6c
dom0-updates: whitespace fixes
8 years ago
ttasket
fbb58918af
Fixes
...
Moved create private.img before yum.
Shutdown templatevm first -- don't want to query possibly compromised vm running old private.img.
Issue #2061
8 years ago
ttasket
ef1ab34234
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
8 years ago
ttasket
577944c8fb
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.
8 years ago
ttasket
457b275800
Fix syntax
...
@marmarek This works on my system.
8 years ago
ttasket
32a4269f4a
Backup root.img
...
Just in case template %post scriptlet doesn't unlink during reinstall, or if reinstall fails.
Also preserves Netvm prefs setting.
8 years ago
ttasket
d316624f61
Update qubes-dom0-update
8 years ago
ttasket
8c7a225070
Backup root.img
...
Just in case template %post scriptlet doesn't unlink during reinstall, or if reinstall fails. Fixed PKGS test.
8 years ago
ttasket
6c7c25d9e7
Backup root.img
...
Just in case template %post scriptlet doesn't unlink during reinstall, or if reinstall fails.
8 years ago
ttasket
17627cdf3c
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
8 years ago
ttasket
6b315b1dad
Add template reinstall support
...
Issue #2061
Simple implementation checks for --action=reinstall but adds no sanity checks.
8 years ago
Marek Marczykowski-Górecki
01f357ae3a
dom0-updates: patch dnf.conf to use local repository
...
Add the same options as for yum. And do that with nice markers, instead
of forcefully overriding the entries.
QubesOS/qubes-issues#1807
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