mklive: force-add vmklive dracut module and generate a polkit rules file to bypass auth.

This commit is contained in:
Juan RP
2013-06-02 12:08:27 +02:00
parent 97f9b02fd7
commit 699937efca
2 changed files with 18 additions and 3 deletions

View File

@@ -145,9 +145,8 @@ generate_initramfs() {
$XBPS_INSTALL_CMD -r $ROOTFS/kernel_temp -y \
base-system void-mklive >>$LOGFILE 2>&1
chroot $ROOTFS/kernel_temp /usr/bin/dracut --${COMPRESSTYPE} \
--add "vmklive" --omit "btrfs caps dash resume" \
--force "/boot/initrd.lz" $KERNELVERSION >>$LOGFILE 2>&1
systemd-nspawn -D $ROOTFS/kernel_temp /usr/bin/dracut --${COMPRESSTYPE} \
--force-add "vmklive" "/boot/initrd.lz" $KERNELVERSION >>$LOGFILE 2>&1
mv $ROOTFS/kernel_temp/boot/initrd.lz $BOOT_DIR
}