summary refs log tree commit diff
path: root/mklive.sh.in
diff options
context:
space:
mode:
authorJuan RP <xtraeme@gmail.com>2014-01-11 18:51:02 +0100
committerJuan RP <xtraeme@gmail.com>2014-01-11 18:51:02 +0100
commitad4c7ec38121812800a85bcf1f681cdf73aa2ce2 (patch)
tree13e8f7a1d4c09a163b18528d13838f7ec6f8177a /mklive.sh.in
parentde357fbda99dda168457cf2dae655c071ef87b75 (diff)
downloadhrmpf-ad4c7ec38121812800a85bcf1f681cdf73aa2ce2.tar.gz
hrmpf-ad4c7ec38121812800a85bcf1f681cdf73aa2ce2.tar.xz
hrmpf-ad4c7ec38121812800a85bcf1f681cdf73aa2ce2.zip
mklive.sh.in: install local installer if available, otherwise the host one.
Diffstat (limited to 'mklive.sh.in')
-rw-r--r--mklive.sh.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/mklive.sh.in b/mklive.sh.in
index 35114d1..0a4e628 100644
--- a/mklive.sh.in
+++ b/mklive.sh.in
@@ -145,6 +145,12 @@ install_packages() {
     if [ -f $ROOTFS/usr/lib/systemd/system/NetworkManager.service ]; then
         systemd-nspawn -D $ROOTFS systemctl enable NetworkManager.service >>$LOGFILE 2>&1
     fi
+
+    if [ -x installer.sh ]; then
+        install -Dm755 installer.sh $ROOTFS/usr/sbin/void-installer
+    else
+        install -Dm755 /usr/sbin/void-installer $ROOTFS/usr/sbin/void-installer
+    fi
 }
 
 generate_initramfs() {