diff options
author | Juan RP <xtraeme@gmail.com> | 2014-04-22 12:11:34 +0200 |
---|---|---|
committer | Juan RP <xtraeme@gmail.com> | 2014-04-22 12:11:34 +0200 |
commit | 6694adcef9acbac6e5d9e17b5e40aada59d1e10a (patch) | |
tree | 0e039489761ab683465aa2086ce8821af5a97238 | |
parent | 0d81294fcce9b73e46595b6d9abe052b0f5a8abe (diff) | |
download | hrmpf-6694adcef9acbac6e5d9e17b5e40aada59d1e10a.tar.gz hrmpf-6694adcef9acbac6e5d9e17b5e40aada59d1e10a.tar.xz hrmpf-6694adcef9acbac6e5d9e17b5e40aada59d1e10a.zip |
mklive: switch to xbps-uchroot(8); bye bye systemd-nspawn.
-rw-r--r-- | README.md | 3 | ||||
-rw-r--r-- | mklive.sh.in | 6 |
2 files changed, 5 insertions, 4 deletions
diff --git a/README.md b/README.md index 6922dfa..be71d5e 100644 --- a/README.md +++ b/README.md @@ -10,11 +10,12 @@ This repository contains utilities for Void Linux: #### Dependencies - * xbps>=0.21 + * xbps>=0.35 * GNU bash * syslinux (to generate the PC-BIOS bootloader) * dosfstools (to generate the EFI bootloader) * xorriso (to generate the ISO image) * squashfs-tools (to generate the squashed rootfs) * parted (to generate image) + * qemu-user-static binaries (to generate foreign rootfs) diff --git a/mklive.sh.in b/mklive.sh.in index 0a4e628..fef2d6a 100644 --- a/mklive.sh.in +++ b/mklive.sh.in @@ -139,11 +139,11 @@ install_packages() { # Enable choosen UTF-8 locale and generate it into the target rootfs. sed -e "s/\#\(${LOCALE}.*\)/\1/g" -i $ROOTFS/etc/default/libc-locales - systemd-nspawn -D $ROOTFS xbps-reconfigure -fa >>$LOGFILE 2>&1 + xbps-uchroot $ROOTFS xbps-reconfigure -fa >>$LOGFILE 2>&1 # Enable some services if found. if [ -f $ROOTFS/usr/lib/systemd/system/NetworkManager.service ]; then - systemd-nspawn -D $ROOTFS systemctl enable NetworkManager.service >>$LOGFILE 2>&1 + xbps-uchroot $ROOTFS systemctl enable NetworkManager.service >>$LOGFILE 2>&1 fi if [ -x installer.sh ]; then @@ -160,7 +160,7 @@ generate_initramfs() { $XBPS_INSTALL_CMD -r $ROOTFS/kernel_temp -Sy \ base-system void-mklive -c $REPOSITORY_CACHE >>$LOGFILE 2>&1 - systemd-nspawn -D $ROOTFS/kernel_temp /usr/bin/dracut --${COMPRESSTYPE} \ + xbps-uchroot $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 |