summaryrefslogtreecommitdiff
path: root/kernels/xen/xen.install
blob: 5664948c71e776030d92cbd2fabb95eb93e8f818 (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
29
30
31
32
33
34
35
36
37
38
install_msg() {
    cat << __EOF__
===> IMPORTANT NOTICE:

In order to complete the installation, and enable Xen,
at the very least you must:
1. Edit your GRUB2 config files as specified at
    https://wiki.archlinux.org/index.php/Xen#Bootloader_Configuration
2. Issue the following commands to allow you to create and start VMs:
    systemctl enable xenstored.service
    systemctl enable xenconsoled.service
    systemctl enable xendomains.service
For more information refer to the Wiki:
    https://wiki.archlinux.org/index.php/Xen
__EOF__

}

post_upgrade() {
    install_msg
}

pre_remove() {
    for i in xen{stored,consoled,domains}.service; do
        systemctl disable $serv
        systemctl stop $serv
    done
}

post_remove() {
    cat << __EOF__
===> IMPORTANT NOTICE:

In order to finish removing Xen, you will need to modify
your bootloader configuration files to load your Linux
kernel instead of Xen kernel.
__EOF__
}