blob: a9c993a0f26b3a2eb48fab9017793b5224b8dcb3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#!/bin/sh
# simple script to setup basic xen dom0
# kernel modules
for mod in xen_netback xen_blkback xenfs xen-platform-pci xen_wdt tun; do
modprobe $mod
grep -q -w $mod /etc/modules || echo $mod >> /etc/modules
done
# install packages
apk add -q xen udev
# setup and start services
rc-update -q del mdev sysinit
rc-update -q add udev sysinit
for svc in udev-postmount xenstored xenconsoled; do
rc-update -q add $svc default
done
if ! rc-service -q udev status; then
rc-service udev start
rc-service udev-postmount start
fi
rc-service xenstored start
rc-service xenconsoled start
|