mklive: add systemd dracut module for systemd images.

This commit is contained in:
Juan RP 2014-08-02 08:56:39 +02:00
parent 2c3fb819ee
commit 5c49a31161

View File

@ -139,9 +139,8 @@ generate_initramfs() {
copy_dracut_files $VOIDHOSTDIR copy_dracut_files $VOIDHOSTDIR
$XBPS_INSTALL_CMD -r $VOIDHOSTDIR $XBPS_REPOSITORY $XBPS_CACHEDIR -y base-system >>$LOGFILE 2>&1 $XBPS_INSTALL_CMD -r $VOIDHOSTDIR $XBPS_REPOSITORY $XBPS_CACHEDIR -y base-system >>$LOGFILE 2>&1
if [ "$BASE_SYSTEM_PKG" = "base-system-runit" ]; then if [ "$BASE_SYSTEM_PKG" = "base-system-systemd" ]; then
# for runit omit the systemd module _args="--add systemd"
_args="--omit 'systemd'"
fi fi
xbps-uchroot $VOIDHOSTDIR /usr/bin/dracut --${INITRAMFS_COMPRESSION} \ xbps-uchroot $VOIDHOSTDIR /usr/bin/dracut --${INITRAMFS_COMPRESSION} \
--force-add "vmklive" ${_args} "/boot/initrd" $KERNELVERSION >>$LOGFILE 2>&1 --force-add "vmklive" ${_args} "/boot/initrd" $KERNELVERSION >>$LOGFILE 2>&1