From 194c1cdd8956aa4ae23282b62ed6bd6a23e44d57 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 29 Jul 2014 08:33:04 +0200 Subject: mkrootfs: update for base-system as runit. --- mkrootfs.sh.in | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'mkrootfs.sh.in') diff --git a/mkrootfs.sh.in b/mkrootfs.sh.in index 74deae8..acfb58f 100644 --- a/mkrootfs.sh.in +++ b/mkrootfs.sh.in @@ -178,14 +178,14 @@ if [ -n "${_ARCH}" ]; then register_binfmt run_cmd "xbps-reconfigure -r $rootfs base-directories" run_cmd "chroot $rootfs xbps-reconfigure shadow" - if [ "$PKGBASE" = "base-system" ]; then + if [ "$PKGBASE" = "base-system-systemd" ]; then run_cmd "chroot $rootfs xbps-reconfigure systemd" fi run_cmd "chroot $rootfs xbps-reconfigure -a" rmdir $rootfs/usr/lib32 rm -f $rootfs/lib32 $rootfs/lib64 $rootfs/usr/lib64 else - if [ "$PKGBASE" = "base-system" ]; then + if [ "$PKGBASE" = "base-system-systemd" ]; then run_cmd "chroot $rootfs xbps-reconfigure systemd" fi fi @@ -205,9 +205,9 @@ rm -rf $rootfs/var/cache/* 2>/dev/null # Generate final tarball. # arch=$ARCH -if [ -n "$TARGET_ARCH" ]; then - rm -f $rootfs/usr/bin/qemu-*-static - arch=$TARGET_ARCH +if [ -n "${_ARCH}" ]; then + rm -f $rootfs/usr/bin/$QEMU_BIN + arch=${_ARCH} fi tarball=void-${PLATFORM}-rootfs-$(date '+%Y%m%d').tar.xz -- cgit 1.4.1