History

mklive.sh.in: if REPOSITORY_CACHE not set use system default cachedir.

Juan RP committed 13 years ago

Commit d17210f1 parent 0fc10501 file · +5 −6Browse files

Unified · Split

mklive.sh.in+5−6
@@ -143,7 +143,7 @@ generate_initramfs() { · 142 unmodified lines
143143 # Install required pkgs in a temporary rootdir to create
144144 # the initramfs and to copy required files.
145145 $XBPS_INSTALL_CMD -r $ROOTFS/kernel_temp -Sy \
146− base-system void-mklive >>$LOGFILE 2>&1
146+ base-system void-mklive -c $REPOSITORY_CACHE >>$LOGFILE 2>&1
147147
148148 systemd-nspawn -D $ROOTFS/kernel_temp /usr/bin/dracut --${COMPRESSTYPE} \
149149 --force-add "vmklive" "/boot/initrd.lz" $KERNELVERSION >>$LOGFILE 2>&1
@@ -315,6 +315,9 @@ fi · 165 unmodified lines
315315 if [ -z "$COMPRESSTYPE" ]; then
316316 COMPRESSTYPE=xz
317317 fi
318+if [ -z "$REPOSITORYCACHE" ]; then
319+ REPOSITORY_CACHE="/var/cache/xbps"
320+fi
318321
319322 # Create or read configuration file.
320323 if [ ! -r $CONFIG_FILE ]; then
@@ -364,11 +367,7 @@ if [ $? -ne 0 ]; then · 43 unmodified lines
364367 fi
365368
366369 XBPS_ARGS="-r $ROOTFS -y"
367−if [ -n "$REPOSITORY_CACHE" ]; then
368− XBPS_ARGS="$XBPS_ARGS -c $REPOSITORY_CACHE"
369−else
370− XBPS_ARGS="$XBPS_ARGS -c /var/cache/xbps"
371−fi
370+XBPS_ARGS="$XBPS_ARGS -c $REPOSITORY_CACHE"
372371 XBPS_VERSION=$($XBPS_QUERY_CMD -V|awk '{print $2}')
373372 case $XBPS_VERSION in
374373 # XBPS >= 0.21

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t