From ddbf495c4cbbb92c51dcda69f0f6a48ba5923057 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 25 Jun 2014 06:53:30 +0200 Subject: mklive: two fixes to generate images on any linux distro. - Store and use default void rsa pubkey for the xbps repos. - If -r is unset, use default void main http repo. --- mklive.sh.in | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'mklive.sh.in') diff --git a/mklive.sh.in b/mklive.sh.in index 5bbf80e..c31768c 100644 --- a/mklive.sh.in +++ b/mklive.sh.in @@ -90,7 +90,7 @@ _EOF copy_void_keys() { if [ ! -d "$1"/var/db/xbps/keys ]; then mkdir -p "$1"/var/db/xbps/keys - cp /var/db/xbps/keys/*.plist "$1"/var/db/xbps/keys + cp keys/*.plist "$1"/var/db/xbps/keys fi } @@ -286,6 +286,7 @@ ISOLINUX_DIR="$BOOT_DIR/isolinux" GRUB_DIR="$BOOT_DIR/grub" ISOLINUX_CFG="$ISOLINUX_DIR/isolinux.cfg" +: ${XBPS_REPOSITORY:=--repository=http://repo.voidlinux.eu/current} : ${SYSLINUX_DATADIR:=$VOIDHOSTDIR/usr/share/syslinux} : ${SPLASH_IMAGE:=splash.png} : ${XBPS_INSTALL_CMD:=xbps-install} @@ -310,7 +311,7 @@ info_msg "Redirecting stdout/stderr to $LOGFILE ..." info_msg "[1/9] Synchronizing XBPS repository data..." # Sync index for remote repos first. copy_void_keys $ROOTFS -$XBPS_INSTALL_CMD -r $ROOTFS ${XBPS_REPOSITORY} -S >/dev/null 2>&1 +$XBPS_INSTALL_CMD -r $ROOTFS ${XBPS_REPOSITORY} -S cp -a $ROOTFS/* $VOIDHOSTDIR _linux_series=$($XBPS_QUERY_CMD -r $ROOTFS ${XBPS_REPOSITORY:=-R} -x linux) -- cgit 1.4.1