about summary refs log tree commit diff
path: root/mklive.sh.in
diff options
context:
space:
mode:
authorJuan RP <xtraeme@gmail.com>2013-06-02 12:08:27 +0200
committerJuan RP <xtraeme@gmail.com>2013-06-02 12:08:27 +0200
commit699937efcac563a57e56d07c3d4976999b7cc90b (patch)
treec94666a38b20f0fc930f4836ea1438844ce717b9 /mklive.sh.in
parent97f9b02fd7fe2d42a97d9d748b3e3527c82331dd (diff)
downloadhrmpf-699937efcac563a57e56d07c3d4976999b7cc90b.tar.gz
hrmpf-699937efcac563a57e56d07c3d4976999b7cc90b.tar.xz
hrmpf-699937efcac563a57e56d07c3d4976999b7cc90b.zip
mklive: force-add vmklive dracut module and generate a polkit rules file to bypass auth.
Diffstat (limited to 'mklive.sh.in')
-rw-r--r--mklive.sh.in5
1 files changed, 2 insertions, 3 deletions
diff --git a/mklive.sh.in b/mklive.sh.in
index 4785dd7..cb22bfc 100644
--- a/mklive.sh.in
+++ b/mklive.sh.in
@@ -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
 }