diff options
author | Juan RP <xtraeme@gmail.com> | 2013-07-12 10:34:45 +0200 |
---|---|---|
committer | Juan RP <xtraeme@gmail.com> | 2013-07-12 10:34:45 +0200 |
commit | c36acf400c026b2dd48850214c4107869893756a (patch) | |
tree | b95e565a7651a0688e343190610ee9dde140122a | |
parent | 0d79e3980b307990661e6ba140d00baa0deb1d33 (diff) | |
download | hrmpf-c36acf400c026b2dd48850214c4107869893756a.tar.gz hrmpf-c36acf400c026b2dd48850214c4107869893756a.tar.xz hrmpf-c36acf400c026b2dd48850214c4107869893756a.zip |
mklive.sh.in: repair support for remote repos.
-rw-r--r-- | mklive.sh.in | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/mklive.sh.in b/mklive.sh.in index a5c2832..6c6b5a4 100644 --- a/mklive.sh.in +++ b/mklive.sh.in @@ -363,9 +363,11 @@ if [ $? -ne 0 ]; then error_out fi -XBPS_ARGS="-r $ROOTFS -Sy" +XBPS_ARGS="-r $ROOTFS -y" if [ -n "$REPOSITORY_CACHE" ]; then XBPS_ARGS="$XBPS_ARGS -c $REPOSITORY_CACHE" +else + XBPS_ARGS="$XBPS_ARGS -c /var/cache/xbps" fi XBPS_VERSION=$($XBPS_QUERY_CMD -V|awk '{print $2}') case $XBPS_VERSION in @@ -374,8 +376,11 @@ case $XBPS_VERSION in *) echo "Your xbps utilities are too old ($XBPS_VERSION), 0.21 is required."; exit 1;; esac -_linux_series=$($XBPS_QUERY_CMD -Rx linux) -KERNELVERSION=$($XBPS_QUERY_CMD -R --property version ${_linux_series}) +# Sync index for remote repos first. +$XBPS_INSTALL_CMD -r $ROOTFS -S >/dev/null 2>&1 + +_linux_series=$($XBPS_QUERY_CMD -r $ROOTFS -Rx linux) +KERNELVERSION=$($XBPS_QUERY_CMD -r $ROOTFS -R --property version ${_linux_series}) if [ -z "$OUTPUT_FILE" ]; then OUTPUT_FILE="$HOME/void-live-$(uname -m)-${KERNELVERSION}-$(date +%Y%m%d).iso" |