From 90d5d98a73e40409b3ff8a9e197c94424b61dd8a Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Tue, 24 May 2022 15:47:58 +0200 Subject: setup-xen-dom0: add test --- setup-xen-dom0.in | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'setup-xen-dom0.in') diff --git a/setup-xen-dom0.in b/setup-xen-dom0.in index a4dc965..beab62b 100644 --- a/setup-xen-dom0.in +++ b/setup-xen-dom0.in @@ -3,18 +3,19 @@ # simple script to setup basic xen dom0 # kernel modules +mkdir -p "$ROOT"/etc for mod in xen_netback xen_blkback xenfs xen_pciback xen_wdt tun; do - if modprobe $mod; then - grep -q -w $mod /etc/modules || echo $mod >> /etc/modules + if $MOCK modprobe $mod; then + grep -q -w $mod "$ROOT"/etc/modules 2>/dev/null || echo $mod >> "$ROOT"/etc/modules fi done # install packages -apk add --quiet xen +$MOCK apk add --quiet xen # setup and start services for svc in xenstored xenconsoled xenqemu; do - rc-update -q add $svc default + rc-update --quiet add $svc default done rc-service xenstored start -- cgit v1.2.3