[arch-commits] Commit in (18 files)
Daniel Wallace
dwallace at nymeria.archlinux.org
Tue Jun 18 00:45:16 UTC 2013
Date: Tuesday, June 18, 2013 @ 02:45:16
Author: dwallace
Revision: 92884
move xen from aur to community
Added:
xen/
xen/repos/
xen/trunk/
xen/trunk/09_xen
xen/trunk/PKGBUILD
xen/trunk/gdbsx-glibc-2.17.patch
xen/trunk/proc-xen.mount
xen/trunk/qemu-makefile.patch
xen/trunk/texi2html.patch
xen/trunk/timer-add-lrt-lm.patch
xen/trunk/tmpfiles.d-xen.conf
xen/trunk/var-lib-xenstored.mount
xen/trunk/xen.conf
xen/trunk/xen.install
xen/trunk/xenconsoled.service
xen/trunk/xendomU at .service
xen/trunk/xendomains.service
xen/trunk/xenstored.service
-------------------------+
09_xen | 121 +++++++++++++++++++++++++++++++++++++++
PKGBUILD | 142 ++++++++++++++++++++++++++++++++++++++++++++++
gdbsx-glibc-2.17.patch | 10 +++
proc-xen.mount | 9 ++
qemu-makefile.patch | 10 +++
texi2html.patch | 10 +++
timer-add-lrt-lm.patch | 11 +++
tmpfiles.d-xen.conf | 1
var-lib-xenstored.mount | 10 +++
xen.conf | 19 ++++++
xen.install | 31 ++++++++++
xenconsoled.service | 18 +++++
xendomU at .service | 12 +++
xendomains.service | 15 ++++
xenstored.service | 19 ++++++
15 files changed, 438 insertions(+)
Added: xen/trunk/09_xen
===================================================================
--- xen/trunk/09_xen (rev 0)
+++ xen/trunk/09_xen 2013-06-18 00:45:16 UTC (rev 92884)
@@ -0,0 +1,121 @@
+#! /bin/sh -e
+
+if [ -f /usr/share/grub/grub-mkconfig_lib ]; then
+ . /usr/share/grub/grub-mkconfig_lib
+else
+ # no grub file, so we notify and exit gracefully
+ echo "Cannot find grub config file, exiting." >&2
+ exit 0
+fi
+
+XEN_HYPERVISOR_CMDLINE="xsave=1"
+XEN_LINUX_CMDLINE="console=tty0"
+[ -r /etc/xen/grub.conf ] && . /etc/xen/grub.conf
+
+CLASS="--class gnu-linux --class gnu --class os"
+
+if [ "x${GRUB_DISTRIBUTOR}" = "x" ] ; then
+ OS=GNU/Linux
+else
+ OS="${GRUB_DISTRIBUTOR} GNU/Linux"
+ CLASS="--class $(echo ${GRUB_DISTRIBUTOR} | tr '[A-Z]' '[a-z]' | cut -d' ' -f1) ${CLASS}"
+fi
+
+# loop-AES arranges things so that /dev/loop/X can be our root device, but
+# the initrds that Linux uses don't like that.
+case ${GRUB_DEVICE} in
+ /dev/loop/*|/dev/loop[0-9])
+ GRUB_DEVICE=`losetup ${GRUB_DEVICE} | sed -e "s/^[^(]*(\([^)]\+\)).*/\1/"`
+ ;;
+esac
+
+if [ "x${GRUB_DEVICE_UUID}" = "x" ] || [ "x${GRUB_DISABLE_LINUX_UUID}" = "xtrue" ] \
+ || ! test -e "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" \
+ || [ "`grub-probe -t abstraction --device ${GRUB_DEVICE} | sed -e 's,.*\(lvm\).*,\1,'`" = "lvm" ] ; then
+ LINUX_ROOT_DEVICE=${GRUB_DEVICE}
+else
+ LINUX_ROOT_DEVICE=UUID=${GRUB_DEVICE_UUID}
+fi
+
+xen_entry ()
+{
+ os="$1"
+ xen_version="$2"
+ version="$3"
+ xen_args="$4"
+ args="$5"
+ printf "menuentry 'Xen %s / %s, with Linux %s' --class xen ${CLASS} {\n" "${xen_version}" "${os}" "${version}"
+ save_default_entry | sed -e "s/^/\t/"
+
+ if [ -z "${prepare_boot_cache}" ]; then
+ prepare_boot_cache="$(prepare_grub_to_access_device ${GRUB_DEVICE_BOOT} | sed -e "s/^/\t/")"
+ fi
+ printf '%s\n' "${prepare_boot_cache}"
+ cat << EOF
+ echo '$(printf "Loading Xen %s ..." ${xen_version})'
+ multiboot ${rel_dirname}/${xen_basename} ${rel_dirname}/${xen_basename} ${xen_args}
+ echo $(printf "$(gettext "Loading Linux %s ...")" ${version})
+ module ${rel_dirname}/${basename} ${rel_dirname}/${basename} root=${linux_root_device_thisversion} ro ${args}
+EOF
+ if test -n "${initrd}" ; then
+ cat << EOF
+ echo "Loading initial ramdisk ..."
+ module ${rel_dirname}/${initrd}
+EOF
+ fi
+ cat << EOF
+}
+EOF
+}
+
+xen_list=`for i in /boot/xen-*.gz /xen-*.gz ; do
+ if grub_file_is_not_garbage "$i" ; then echo -n "$i "; fi
+done`
+prepare_boot_cache=
+
+while [ "x$xen_list" != "x" ] ; do
+ xen=`version_find_latest $xen_list`
+ echo "Found Xen hypervisor image: $xen" >&2
+ xen_basename=`basename $xen`
+ xen_dirname=`dirname $xen`
+ rel_xen_dirname=`make_system_path_relative_to_its_root $xen_dirname`
+ xen_version=`echo $xen_basename | sed -e "s,^[^0-9]*-,,g" | sed -e "s,.gz,,g"`
+ alt_xen_version=`echo $xen_version | sed -e "s,\.old$,,g"`
+
+ list="/boot/vmlinuz-linux";
+
+ while [ "x$list" != "x" ] ; do
+ linux=`version_find_latest $list`
+ echo -e "\tFound linux image: $linux" >&2
+ basename=`basename $linux`
+ dirname=`dirname $linux`
+ rel_dirname=`make_system_path_relative_to_its_root $dirname`
+ version=`echo $basename | sed -e "s,^[^0-9]*-,,g"`
+ base_init=`echo $basename | sed -e "s,vmlinuz,initramfs,g"`
+ alt_version="${base_init}-fallback"
+ linux_root_device_thisversion="${LINUX_ROOT_DEVICE}"
+ initrd=
+
+ for i in "${base_init}.img"; do
+ if test -e "${dirname}/${i}" ; then
+ initrd="$i"
+ break
+ fi
+ done
+ if test -n "${initrd}" ; then
+ echo -e "\tFound initrd image: ${dirname}/${initrd}" >&2
+ else
+ # "UUID=" magic is parsed by initrds. Since there's no initrd, it can't work here.
+ linux_root_device_thisversion=${GRUB_DEVICE}
+ fi
+
+ xen_entry "${OS}" "${xen_version}" "${version}" \
+ "${XEN_HYPERVISOR_CMDLINE}" \
+ "${XEN_LINUX_CMDLINE}"
+
+ list=`echo $list | tr ' ' '\n' | grep -vx $linux | tr '\n' ' '`
+ done
+
+ xen_list=`echo $xen_list | tr ' ' '\n' | grep -vx $xen | tr '\n' ' '`
+done
+
Added: xen/trunk/PKGBUILD
===================================================================
--- xen/trunk/PKGBUILD (rev 0)
+++ xen/trunk/PKGBUILD 2013-06-18 00:45:16 UTC (rev 92884)
@@ -0,0 +1,142 @@
+# $Id$
+# Maintainer: Daniel Wallace <danielwallace at gtmanfred dot com>
+# Contributor: Shanmu Thiagaraja <sthiagaraja+AUR at prshanmu.com>
+# Contributor: Limao Luo
+# Contributor: Luceo
+# Contributor: Revellion
+
+pkgname=xen
+pkgver=4.2.2
+pkgrel=1
+pkgdesc="Xen Hypervisor & Tools"
+arch=(i686 x86_64)
+url=http://xen.org
+license=(GPL2)
+depends=(bin86 bluez bridge-utils glib2 gnutls libaio libjpeg-turbo libpng lzo2 sdl wget vde2 yajl python2)
+[[ "$CARCH" == "x86_64" ]] && depends+=(lib32-glibc)
+makedepends=(dev86 git iasl markdown ocaml-findlib)
+optdepends=('xen-docs: Official Xen Documentation')
+conflicts=(xen-4.2{,-testing-hg} xen-{gdbsx,hg-unstable,rc})
+backup=(etc/$pkgname/xend-{config,pci-{permissive,quirks}}.sxp etc/modules-load.d/$pkgname.conf etc/$pkgname/xl.conf)
+options=(!buildflags !strip)
+install=$pkgname.install
+source=(http://bits.xensource.com/oss-xen/release/$pkgver/$pkgname-$pkgver.tar.gz
+ 09_xen
+ gdbsx-glibc-2.17.patch
+ texi2html.patch
+ timer-add-lrt-lm.patch
+ qemu-makefile.patch
+ proc-xen.mount
+ var-lib-xenstored.mount
+ xenconsoled.service
+ xendomains.service
+ xendomU at .service
+ xenstored.service
+ tmpfiles.d-$pkgname.conf
+ $pkgname.conf)
+
+prepare() {
+ cd $pkgname-$pkgver/
+ patch -Np1 -i ../gdbsx-glibc-2.17.patch
+ patch -Np1 -i ../texi2html.patch
+ patch -Np1 -i ../timer-add-lrt-lm.patch
+ patch -Np1 -i ../qemu-makefile.patch
+ sed -i '203i\\t\t--disable-docs \\' tools/Makefile # disable qemu doc generation b/c of an error
+}
+
+build() {
+ export CFLAGS+='-Wall -Wstrict-prototypes -Wno-unused-local-typedefs -Wno-sizeof-pointer-memaccess'
+ cd $pkgname-$pkgver/
+ ./autogen.sh
+ ./configure PYTHON=/usr/bin/python2
+ unset CFLAGS
+}
+
+package() {
+ cd $pkgname-$pkgver/
+
+ make DESTDIR="$pkgdir" LANG=C PYTHON=python2 install-{xen,tools,stubdom}
+
+ cd ../
+ for f in ${source[@]}; do
+ [[ $f =~ .mount || $f =~ .service ]] && install -Dm644 $f "$pkgdir"/usr/lib/systemd/system/$f
+ done
+ install -Dm644 tmpfiles.d-$pkgname.conf "$pkgdir"/usr/lib/tmpfiles.d/$pkgname.conf
+ install -Dm644 $pkgname.conf "$pkgdir"/etc/modules-load.d/$pkgname.conf
+ install -Dm755 09_xen "$pkgdir"/etc/grub.d/09_xen
+
+ cd "$pkgdir"
+ sed -i ':XENDOM_CONFIG=/etc/:s:sysconfig/xendomains:conf.d/xendomains:' etc/init.d/xendomains
+ sed -i 's:touch /var/lock/subsys/xend:mkdir -p /var/lock/subsys\n &:' etc/init.d/xend
+
+ if [[ -d usr/lib64 ]]; then
+ cd usr/
+ cp -r lib64/* lib/
+ rm -rf lib64
+ fi
+
+ mv etc/{init,rc}.d
+
+ mv usr/local/etc/qemu/ etc/
+ rm -rf usr/local/share/
+ mv etc/rc.d/xendomains etc/xen/scripts/xendomains
+
+ ##### Kill unwanted stuff #####
+ # stubdom: newlib
+ rm -rf usr/*-xen-elf
+
+ # hypervisor symlinks
+ rm -f boot/xen{,-4,-4.2}.gz
+
+ # silly doc dir fun
+ rm -rf usr/share/doc/xen
+ rm -rf usr/share/doc/qemu
+
+ # Pointless helper
+ rm -f usr/sbin/xen-python-path
+
+ # qemu stuff (unused or available from upstream)
+ rm -rf usr/share/xen/man
+ rm -rf usr/bin/qemu-*-xen
+ for file in bamboo.dtb bios.bin openbios-ppc openbios-sparc32 openbios-sparc64 \
+ ppc_rom.bin pxe-e1000.bin pxe-ne2k_pci.bin pxe-pcnet.bin pxe-rtl8139.bin \
+ vgabios-cirrus.bin vgabios.bin video.x; do
+ rm -f usr/share/xen/qemu/$file
+ done
+
+ # adhere to Static Library Packaging Guidelines
+ rm -rf usr/lib/*.a
+
+ # Fix errors from deprecated xend
+ rm etc/udev/rules.d/xend.rules
+
+ rmdir usr/local/etc etc/xen/auto var/xen/dump var/lock/subsys usr/share/doc var/lib/xen/xenpaging var/run/xend/boot var/log/xen
+}
+sha256sums=('c9bfe91a5e72f8545acebad9889d64368020359bfe18044c0e683133e55ae005'
+ '89f0076485d3f253b55aa6bb067003e74b4a6d6d559a87258fcaa8f93123693e'
+ 'f78593f1b3b4d6201644ecce77c6dd5bb7378dc53eff7cc940a80e3cd1bf72f4'
+ '08e5bf65c833a608470ad118ce369e32f9c267e1787f2900c06708af321225e6'
+ '4d55132a8e47fbfe415bf3c88824b6dcf48e4da1fff86d2b07e0c2c9e42c0a63'
+ '247fbfacf3212c26b673e1d7c3cc29eb0d1e903c217f16ef9dab5ed667ee139d'
+ '139eed988bfaf8edc8ccdfd0b668382bd63db48ce17be91776182a7e28e9d88c'
+ 'c19146931c6ab8e53092bd9b2ebbfda5c76fd22ad3b1d42dcda3dd1b61f123ff'
+ 'ba8f1c10b3f3df1f9fda0782a691fed67661e36f49be74471c86850639fee3ba'
+ '0bd45d9de6456c4f9adf32e726f2db3a3cd0423c1d161b442e8a1666d2e68e3f'
+ '1862a14607582d14247b74435dfb16411fd68904aa19e2a93c5e6ac301169d3c'
+ 'a0ad5a7d9262c2d22a8875a47cff2c821885ddb65c0c9eb7518befb0f42fcce7'
+ '6bddcea43922f72a1c8ab556c3f20067d7f817220bcd9c1c61d18f3a58dfaa9d'
+ '50a9b7fd19e8beb1dea09755f07318f36be0b7ec53d3c9e74f3266a63e682c0c')
+sha512sums=('4943b18016ed8c2b194a3b55e6655b3b734b39ffb8cb7ee0a0580f2f4460a1d0e92e1de8ac23f5186272914fad1650586af51fd7c3644d0310eb16f2e11c5e80'
+ 'd8d5bdc64632e5cc3430d5c65adaaf0befc36c5825225d42fb04d4f69a989319de76f65cf3277d60cde516c7bfc559d5c78f6bdd7d6ec7606d9cccb28eb76c1d'
+ 'fb7dbd3d9ca610c0b476cf7202e4bd051d85de2de8e92c0c3ac59dc327bc47820eddfa67a8dc01fde21d1a3209f83b6f8533bdc7ecd0634ff503f2fac61fee6d'
+ '562f12e723116c705fc9d0fd4a2afd382a93465be7f616d1e20e87daf39c11029fbc57ec46e38d3ff61c482fdc9ac4df9e07600a77515867d9da6f0faf3da7f9'
+ 'a0baec71e9240fa9a72aa67e0783fe1200afb2ff61c625f5e96e536a8839213ada9908e776ed243a866065084f61a06d286ae2488c158730c1dd2d424cf4b0dc'
+ '738bfe72ab6c03d6b84c8f594fb8a63adc148edc4f9eb7beb279aa06002171fd957dbcee3b850bfbb5672f3d740047f41f59b5fdea0970a2de1a24b178fd5972'
+ '6afdf16e32bb837faf6333334f86855a746f1f46fee9673a4fddc62eecf41f9856bc34397807203c6f5071f0b1ce74532214084042154585c0d39514450db25c'
+ '00e340f4d3635e3850ca24baea1da08467523c17815feb74161e18397b607fef904db2165fd9bf4632a6e8a6e37aeddad4e56965e1c99b5213c98b3f9afc6aad'
+ '27d7289a8bf6e15bddcb360287001429205b57ee4d791b0337328879ffd76b8e375e3c1dd0de0ab57dd4bd1e2a2bc1748c44cc05b2528632a3e6af60f626de9d'
+ 'f00034f8b826b828659a0177f0a6454113c625e69a817dfe32e461767f6643e0288bfc2a22d23358504240df627af6e3b8f5ffa0077e241e590b33d3f252e74c'
+ '31fefc739f0f0e568df03dcf9aa02e0265ff4fbf77e7ae62d6a318fcc34e87a0ffd3fc4b84ff8c9cc95511e2e74b7b61e6b5471cd0b3cd47ee0da86b1ea90268'
+ 'd93509c53a3f80ab266f75a54633bba070a7ef48f629168f074c7c37d36ee9c98d2d30703bed41b1c163d960f2a3ac9f435b335db6e7b8a6e9c97044ede8b76e'
+ '97fb10771fad1c59c1168ede6e4a37710937821c0a053e77df7907b0a33137a190731b0130fb1d373c196a04450360a9cd3202617a77b1726613c523613cd194'
+ 'ccaa2ff82e4203b11e5dec9aeccac2e165721d8067e0094603ecaa7a70b78c9eb9e2287a32687883d26b6ceae6f8d2ad7636ddf949eb658637b3ceaa6999711b')
Property changes on: xen/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Added: xen/trunk/gdbsx-glibc-2.17.patch
===================================================================
--- xen/trunk/gdbsx-glibc-2.17.patch (rev 0)
+++ xen/trunk/gdbsx-glibc-2.17.patch 2013-06-18 00:45:16 UTC (rev 92884)
@@ -0,0 +1,10 @@
+--- a/tools/debugger/gdbsx/xg/xg_main.c
++++ b/tools/debugger/gdbsx/xg/xg_main.c
+@@ -34,6 +34,7 @@
+ * XGTRC(): generic trace utility
+ */
+
++#include <sys/types.h>
+ #include <stdio.h>
+ #include <stddef.h>
+ #include <stdarg.h>
Added: xen/trunk/proc-xen.mount
===================================================================
--- xen/trunk/proc-xen.mount (rev 0)
+++ xen/trunk/proc-xen.mount 2013-06-18 00:45:16 UTC (rev 92884)
@@ -0,0 +1,9 @@
+[Unit]
+Description=Mount /proc/xen files
+ConditionPathExists=/proc/xen
+RefuseManualStop=true
+
+[Mount]
+What=xenfs
+Where=/proc/xen
+Type=xenfs
Added: xen/trunk/qemu-makefile.patch
===================================================================
--- xen/trunk/qemu-makefile.patch (rev 0)
+++ xen/trunk/qemu-makefile.patch 2013-06-18 00:45:16 UTC (rev 92884)
@@ -0,0 +1,10 @@
+--- a/tools/qemu-xen/Makefile.target 2013-04-05 23:39:54.000000000 +0000
++++ b/tools/qemu-xen/Makefile.target 2013-04-25 13:54:59.360000000 +0000
+@@ -206,6 +206,7 @@
+ obj-$(CONFIG_NO_KVM) += kvm-stub.o
+ obj-y += memory.o
+ LIBS+=-lz
++LIBS+=-lrt
+
+ QEMU_CFLAGS += $(VNC_TLS_CFLAGS)
+ QEMU_CFLAGS += $(VNC_SASL_CFLAGS)
Added: xen/trunk/texi2html.patch
===================================================================
--- xen/trunk/texi2html.patch (rev 0)
+++ xen/trunk/texi2html.patch 2013-06-18 00:45:16 UTC (rev 92884)
@@ -0,0 +1,10 @@
+--- a/tools/Makefile 2012-09-17 22:25:54.683349679 -0500
++++ b/tools/Makefile 2012-09-17 22:49:08.923331802 -0500
+@@ -164,6 +164,7 @@
+ $(QEMU_ROOT)/xen-setup \
+ --extra-cflags="$(EXTRA_CFLAGS_QEMU_TRADITIONAL)" \
+ $(IOEMU_CONFIGURE_CROSS); \
++ sed -i 's/number[ ]/number-sections /' Makefile; \
+ $(MAKE) install
+
+ subdir-clean-qemu-xen-traditional-dir:
Added: xen/trunk/timer-add-lrt-lm.patch
===================================================================
--- xen/trunk/timer-add-lrt-lm.patch (rev 0)
+++ xen/trunk/timer-add-lrt-lm.patch 2013-06-18 00:45:16 UTC (rev 92884)
@@ -0,0 +1,11 @@
+--- a/tools/qemu-xen-traditional/Makefile.target
++++ b/tools/qemu-xen-traditional/Makefile.target
+@@ -520,7 +520,7 @@
+ OBJS+=block-raw-posix.o
+ endif
+
+-LIBS+=-lz
++LIBS+=-lz -lm -lrt
+ ifdef CONFIG_ALSA
+ LIBS += -lasound
+ endif
Added: xen/trunk/tmpfiles.d-xen.conf
===================================================================
--- xen/trunk/tmpfiles.d-xen.conf (rev 0)
+++ xen/trunk/tmpfiles.d-xen.conf 2013-06-18 00:45:16 UTC (rev 92884)
@@ -0,0 +1 @@
+d /run/xen 0755 root root -
Added: xen/trunk/var-lib-xenstored.mount
===================================================================
--- xen/trunk/var-lib-xenstored.mount (rev 0)
+++ xen/trunk/var-lib-xenstored.mount 2013-06-18 00:45:16 UTC (rev 92884)
@@ -0,0 +1,10 @@
+[Unit]
+Description=mount xenstore file system
+ConditionPathExists=/proc/xen
+RefuseManualStop=true
+
+[Mount]
+What=xenstore
+Where=/var/lib/xenstored
+Type=tmpfs
+Options=mode=755
Added: xen/trunk/xen.conf
===================================================================
--- xen/trunk/xen.conf (rev 0)
+++ xen/trunk/xen.conf 2013-06-18 00:45:16 UTC (rev 92884)
@@ -0,0 +1,19 @@
+xen-evtchn
+xen-gntdev
+xen-gntalloc
+xen-blkback
+xen-netback
+xen-pciback
+xen-acpi-processor
+## xen-acpi-processor: This module may not work on all machines; try removing this first if it causes issues.
+
+## The following were included in xencommons, but were not inserted by systemd:
+# evtchn
+# gntdev
+# netbk
+# blkbk
+# xen-scsibk
+# usbbk
+# pciback
+# blktap2
+# blktap
Added: xen/trunk/xen.install
===================================================================
--- xen/trunk/xen.install (rev 0)
+++ xen/trunk/xen.install 2013-06-18 00:45:16 UTC (rev 92884)
@@ -0,0 +1,31 @@
+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
+}
+
+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__
+}
Added: xen/trunk/xenconsoled.service
===================================================================
--- xen/trunk/xenconsoled.service (rev 0)
+++ xen/trunk/xenconsoled.service 2013-06-18 00:45:16 UTC (rev 92884)
@@ -0,0 +1,18 @@
+[Unit]
+Description=Xenconsoled - handles logging from guest consoles and hypervisor
+Requires=proc-xen.mount
+After=proc-xen.mount xenstored.service
+ConditionPathExists=/proc/xen
+
+[Service]
+Type=simple
+Environment=XENCONSOLED_ARGS=
+Environment=XENCONSOLED_LOG=none
+Environment=XENCONSOLED_LOG_DIR=/var/log/xen/console
+EnvironmentFile=-/etc/conf.d/xenconsoled
+PIDFile=/var/run/xenconsoled.pid
+ExecStartPre=/usr/bin/grep -q control_d /proc/xen/capabilities
+ExecStart=/usr/sbin/xenconsoled --log=${XENCONSOLED_LOG} --log-dir=${XENCONSOLED_LOG_DIR} $XENCONSOLED_ARGS
+
+[Install]
+WantedBy=multi-user.target
Added: xen/trunk/xendomU at .service
===================================================================
--- xen/trunk/xendomU at .service (rev 0)
+++ xen/trunk/xendomU at .service 2013-06-18 00:45:16 UTC (rev 92884)
@@ -0,0 +1,12 @@
+[Unit]
+Description=xen domU service for domain %i
+Requires=xenstored.service
+
+[Service]
+Type=oneshot
+RemainAfterExit=yes
+ExecStart=/usr/sbin/xl create /etc/xen/conf/%i.cfg
+ExecStop=/usr/sbin/xl shutdown %i
+
+[Install]
+WantedBy=multi-user.target
Added: xen/trunk/xendomains.service
===================================================================
--- xen/trunk/xendomains.service (rev 0)
+++ xen/trunk/xendomains.service 2013-06-18 00:45:16 UTC (rev 92884)
@@ -0,0 +1,15 @@
+[Unit]
+Description=Xendomains - start and stop guests on boot and shutdown
+Requires=proc-xen.mount xenstored.service
+After=proc-xen.mount xenstored.service xenconsoled.service
+ConditionPathExists=/proc/xen
+
+[Service]
+Type=oneshot
+RemainAfterExit=true
+ExecStartPre=/usr/bin/grep -q control_d /proc/xen/capabilities
+ExecStart=/etc/xen/scripts/xendomains start
+ExecStop=/etc/xen/scripts/xendomains stop
+
+[Install]
+WantedBy=multi-user.target
Added: xen/trunk/xenstored.service
===================================================================
--- xen/trunk/xenstored.service (rev 0)
+++ xen/trunk/xenstored.service 2013-06-18 00:45:16 UTC (rev 92884)
@@ -0,0 +1,19 @@
+[Unit]
+Description=Xenstored - daemon managing xenstore file system
+Requires=proc-xen.mount var-lib-xenstored.mount systemd-tmpfiles-setup.service
+After=proc-xen.mount var-lib-xenstored.mount systemd-tmpfiles-setup.service
+Before=libvirtd.service libvirt-guests.service
+RefuseManualStop=true
+ConditionPathExists=/proc/xen
+
+[Service]
+Type=forking
+Environment=XENSTORED_ARGS=
+EnvironmentFile=-/etc/conf.d/xenstored
+PIDFile=/var/run/xenstored.pid
+ExecStartPre=/usr/bin/grep -q control_d /proc/xen/capabilities
+ExecStart=/usr/sbin/xenstored --pid-file /var/run/xenstored.pid $XENSTORED_ARGS
+ExecStartPost=/usr/bin/xenstore-write "/local/domain/0/name" "Domain-0"
+
+[Install]
+WantedBy=multi-user.target
More information about the arch-commits
mailing list