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
143 # Install required pkgs in a temporary rootdir to create143 # Install required pkgs in a temporary rootdir to create
144 # the initramfs and to copy required files.144 # the initramfs and to copy required files.
145 $XBPS_INSTALL_CMD -r $ROOTFS/kernel_temp -Sy \145 $XBPS_INSTALL_CMD -r $ROOTFS/kernel_temp -Sy \
146 base-system void-mklive >>$LOGFILE 2>&1146 base-system void-mklive -c $REPOSITORY_CACHE >>$LOGFILE 2>&1
147 147
148 systemd-nspawn -D $ROOTFS/kernel_temp /usr/bin/dracut --${COMPRESSTYPE} \148 systemd-nspawn -D $ROOTFS/kernel_temp /usr/bin/dracut --${COMPRESSTYPE} \
149 --force-add "vmklive" "/boot/initrd.lz" $KERNELVERSION >>$LOGFILE 2>&1149 --force-add "vmklive" "/boot/initrd.lz" $KERNELVERSION >>$LOGFILE 2>&1
@@ -315,6 +315,9 @@ fi · 165 unmodified lines
315if [ -z "$COMPRESSTYPE" ]; then315if [ -z "$COMPRESSTYPE" ]; then
316 COMPRESSTYPE=xz316 COMPRESSTYPE=xz
317fi317fi
318if [ -z "$REPOSITORYCACHE" ]; then
319 REPOSITORY_CACHE="/var/cache/xbps"
320fi
318 321
319# Create or read configuration file.322# Create or read configuration file.
320if [ ! -r $CONFIG_FILE ]; then323if [ ! -r $CONFIG_FILE ]; then
@@ -364,11 +367,7 @@ if [ $? -ne 0 ]; then · 43 unmodified lines
364fi367fi
365 368
366XBPS_ARGS="-r $ROOTFS -y"369XBPS_ARGS="-r $ROOTFS -y"
367if [ -n "$REPOSITORY_CACHE" ]; then370XBPS_ARGS="$XBPS_ARGS -c $REPOSITORY_CACHE"
368 XBPS_ARGS="$XBPS_ARGS -c $REPOSITORY_CACHE"
369else
370 XBPS_ARGS="$XBPS_ARGS -c /var/cache/xbps"
371fi
372XBPS_VERSION=$($XBPS_QUERY_CMD -V|awk '{print $2}')371XBPS_VERSION=$($XBPS_QUERY_CMD -V|awk '{print $2}')
373case $XBPS_VERSION in372case $XBPS_VERSION in
374# XBPS >= 0.21373# 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