mklive.sh.in: install local installer if available, otherwise the host one.

This commit is contained in:
Juan RP 2014-01-11 18:51:02 +01:00
parent de357fbda9
commit ad4c7ec381
1 changed files with 6 additions and 0 deletions

View File

@ -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() {