Skip to content

Commit 70f5e44

Browse files
committed
Merge remote-tracking branch 'origin/pr/549'
* origin/pr/549: post-install: initialize version to empty value archlinux: include nm-applet in network dependencies arch: fix creating marker-vm file dom0-update: apply --installroot etc for --help calls too archlinux: enable NetworkManager archlinux: package tools for fetching dom0 updates Pull request description: Add qubes-vm-dom0-updates subpackage, similar to other distributions.
2 parents fac98ed + 9f6ae0b commit 70f5e44

File tree

4 files changed

+35
-5
lines changed

4 files changed

+35
-5
lines changed

archlinux/PKGBUILD.in

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Maintainer: Frédéric Pierret (fepitre) <[email protected]>
22

3-
pkgname=(qubes-vm-core qubes-vm-networking qubes-vm-keyring qubes-vm-passwordless-root)
3+
pkgname=(qubes-vm-core qubes-vm-networking qubes-vm-keyring qubes-vm-passwordless-root qubes-vm-dom0-updates)
44
pkgver=@VERSION@
55
pkgrel=@REL@
66
pkgdesc="The Qubes core files for installation inside a Qubes VM."
@@ -38,7 +38,7 @@ build() {
3838
sed 's:/usr/sbin/ntpdate:/usr/bin/ntpdate:g' -i qubes-rpc/sync-ntp-clock
3939

4040
for dir in qubes-rpc misc; do
41-
make -C "$dir"
41+
make -C "$dir" VERSION=${pkgver}
4242
done
4343
}
4444

@@ -153,6 +153,7 @@ package_qubes-vm-networking() {
153153
python
154154
iproute2
155155
networkmanager
156+
network-manager-applet
156157
tinyproxy
157158
nftables
158159
conntrack-tools
@@ -204,3 +205,29 @@ package_qubes-vm-passwordless-root() {
204205
USER_DROPIN_DIR=/usr/lib/systemd/user \
205206
DIST=archlinux
206207
}
208+
209+
package_qubes-vm-dom0-updates() {
210+
pkgdesc="Qubes OS tools for fetching dom0 updates"
211+
depends=(
212+
qubes-vm-core
213+
qubes-vm-networking
214+
python
215+
dnf
216+
)
217+
218+
cd "${_pkgnvr}"
219+
make -C package-managers install \
220+
DESTDIR="$pkgdir" \
221+
SBINDIR=/usr/bin \
222+
LIBDIR=/usr/lib \
223+
SYSLIBDIR=/usr/lib \
224+
SYSTEM_DROPIN_DIR=/usr/lib/systemd/system \
225+
USER_DROPIN_DIR=/usr/lib/systemd/user \
226+
DIST=archlinux
227+
228+
# already included in the main package
229+
rm -f "${pkgdir}/usr/lib/qubes/upgrades-installed-check"
230+
rm -f "${pkgdir}/usr/lib/qubes/upgrades-status-notify"
231+
# not relevant for dom0 updates
232+
rm -f "${pkgdir}/usr/lib/environment.d/60-gnome-software-fix.conf"
233+
}

package-managers/qubes-download-dom0-updates.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ fi
7171
if type dnf >/dev/null 2>&1; then
7272
UPDATE_CMD=dnf
7373
UPDATE_ARGUMENTS+=(--noplugins -y)
74-
"$UPDATE_CMD" "$UPDATE_ACTION" --help | grep -q best && UPDATE_ARGUMENTS+=(--best)
75-
"$UPDATE_CMD" "$UPDATE_ACTION" --help | grep -q allowerasing && UPDATE_ARGUMENTS+=(--allowerasing)
74+
"$UPDATE_CMD" "${OPTS[@]}" "$UPDATE_ACTION" --help | grep -q best && UPDATE_ARGUMENTS+=(--best)
75+
"$UPDATE_CMD" "${OPTS[@]}" "$UPDATE_ACTION" --help | grep -q allowerasing && UPDATE_ARGUMENTS+=(--allowerasing)
7676
if "$UPDATE_CMD" --version | grep -q dnf5 && [ "$CHECK_ONLY" = "1" ]; then
7777
UPDATE_ACTION=check-upgrade
7878
fi
@@ -151,7 +151,7 @@ UPDATE_COMMAND=(fakeroot "$UPDATE_CMD" "$UPDATE_ACTION" "${UPDATE_ARGUMENTS[@]}"
151151
# search, info and similar actions if --downloadonly is specified. The below
152152
# condition is a smart way to check if --downloadonly option is applicable to
153153
# the action.
154-
"$UPDATE_CMD" "$UPDATE_ACTION" --help | grep -q downloadonly && UPDATE_COMMAND+=(--downloadonly)
154+
"$UPDATE_CMD" "${OPTS[@]}" "$UPDATE_ACTION" --help | grep -q downloadonly && UPDATE_COMMAND+=(--downloadonly)
155155

156156
mkdir -p "$DOM0_UPDATES_DIR/packages"
157157

qubes-rpc/post-install.d/10-qubes-core-agent-features.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ qvm-features-request qubes-agent-version="$qubes_version"
4949
if [ -r /etc/os-release ]; then
5050
distro_like=""
5151
eol=""
52+
version=""
5253
while IFS='=' read -r key val; do
5354
val="${val##[\"\']}"
5455
val="${val%%[\"\']}"

vm-systemd/75-qubes-vm.preset

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@ enable module-load-dummy-psu.service
112112
enable module-load-dummy-backlight.service
113113
enable [email protected] default sys-usb
114114
enable dev-xvdc1-swap.service
115+
enable NetworkManager.service
116+
enable NetworkManager-dispatcher.service
115117

116118
# Disable useless Xen services in Qubes VM
117119
disable xenstored.service

0 commit comments

Comments
 (0)