diff options
author | Daniel Silverstone <daniel.silverstone@codethink.co.uk> | 2014-05-08 14:03:12 +0000 |
---|---|---|
committer | Daniel Silverstone <daniel.silverstone@codethink.co.uk> | 2014-05-16 15:17:37 +0100 |
commit | a723d8f3a61cb38f72626314f930280c8e2f9cb5 (patch) | |
tree | c2d09160b586a1570cd277086d49fd83186ed293 | |
parent | fb123f93f9f5ce42c8e5785d2f8e0edaf951740e (diff) | |
download | VirtualBox-baserock/danielsilverstone/vagrant-support.tar.gz |
VirtualBox Guest Additions morphologybaserock/danielsilverstone/vagrant-support
-rw-r--r-- | vboxguest.morph | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/vboxguest.morph b/vboxguest.morph new file mode 100644 index 00000000..17b27e84 --- /dev/null +++ b/vboxguest.morph @@ -0,0 +1,35 @@ +name: vboxguest +kind: chunk +description: | + VirtualBox guest additions +build-system: manual +max-jobs: 1 +build-commands: + # Disable the PAM build because we don't have libpam to hand right now + - cd src/VBox/Additions/common/pam && rm Makefile.kmk && touch Makefile.kmk + # Yes, this is all very x86_64 specific right now, I can fix that later + - env PATH=$PATH:$(pwd)/kBuild/bin/linux.amd64/ VBOX_ONLY_ADDITIONS=1 VBOX_ONLY_BUILD=1 kmk + - cd out/linux.amd64/release/bin/additions/src/ && make M=$(pwd) -C /usr/src/linux modules +install-commands: + - cd out/linux.amd64/release/bin/additions/src && make M="$(pwd)" -C /usr/src/linux INSTALL_MOD_PATH="$DESTDIR" modules_install + - install -m 755 -D -o 0 -g 0 out/linux.amd64/release/bin/additions/mount.vboxsf "$DESTDIR/sbin/mount.vboxsf" + - install -m 755 -D -o 0 -g 0 out/linux.amd64/release/bin/additions/VBoxService "$DESTDIR/sbin/VBoxService" + - install -m 755 -D -o 0 -g 0 out/linux.amd64/release/bin/additions/VBoxControl "$DESTDIR/sbin/VBoxControl" + - | + install -m 644 -D -o 0 -g 0 /proc/self/fd/0 "$DESTDIR/lib/systemd/system/virtualbox-guest.service" <<EOS + [Unit] + Description=VirtualBox Guest Additions + + [Service] + ExecStart=/sbin/VBoxService -f + Restart=always + EOS + - mkdir -p "$DESTDIR/lib/systemd/system/basic.target.wants" + - ln -s "/lib/systemd/system/virtualbox-guest.service" "$DESTDIR/lib/systemd/system/basic.target.wants/virtualbox-guest.service" + - mkdir -p "$DESTDIR/etc/modules-load.d" + - echo vboxsf > "$DESTDIR/etc/modules-load.d/virtualbox-guest-filesystem.conf" +system-integration: + vboxguest-misc: + 00-earlyconf: + - depmod -a $(cd /lib/modules; ls | head -1) + |