diff options
author | Cedric Schieli <cschieli@gmail.com> | 2010-03-20 21:03:49 +0000 |
---|---|---|
committer | Cedric Schieli <cschieli@gmail.com> | 2010-03-22 14:42:19 +0000 |
commit | 5977b0785475799a1fcb844a95c0745f56564afc (patch) | |
tree | fc366cae9a1e9124d4b1df8253fe240eb4f28a4a | |
parent | 50dfc13e86b0ac9445847604208c3d3a8729018f (diff) | |
download | mkinitfs-5977b0785475799a1fcb844a95c0745f56564afc.tar.bz2 mkinitfs-5977b0785475799a1fcb844a95c0745f56564afc.tar.xz |
init: install xe-guest-utilities if xen on cmdline and /proc/xen is present
-rwxr-xr-x | initramfs-init.in | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/initramfs-init.in b/initramfs-init.in index a306971..588ab42 100755 --- a/initramfs-init.in +++ b/initramfs-init.in @@ -378,6 +378,10 @@ ebegin "Installing packages to root filesystem" if [ "$KOPT_chart" = yes ]; then pkgs="$pkgs acct" fi +if [ "$KOPT_xen" = yes ] && [ -d /proc/xen ]; then + pkgs="$pkgs xe-guest-utilities" + rc_add xe-guest-utilities boot +fi apkflags="--initdb --quiet --progress --force --no-network" if [ "$KOPT_keep_apk_new" != yes ]; then apkflags="$apkflags --clean-protected" |