Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=fvbe.git;a=commitdiff;h=8fdcfee44b2a5cbe4c83c71485212ca8e5400d83

commit 8fdcfee44b2a5cbe4c83c71485212ca8e5400d83
Author: crazy <[email protected]>
Date:   Fri Aug 25 16:28:09 2017 +0200

mount: split out mounting of pacman cache

diff --git a/bin/fvbe-make-iso b/bin/fvbe-make-iso
index b5e14b8..2b8679a 100755
--- a/bin/fvbe-make-iso
+++ b/bin/fvbe-make-iso
@@ -92,6 +92,15 @@ fvbe_check_prog() {
fi
}

+
+fvbe_mount_pacman_cache() {
+
+       if [[ -d /var/cache/pacman-g2 ]]; then
+               fvbe_info_msg "Found pacman-g2 cache, mounting.."
+               mount -o bind /var/cache/pacman-g2 
$FVBE_ROOT/var/cache/pacman-g2
+       fi
+}
+
fvbe_mount() {

fvbe_info_msg "Mounting the kernel pseudo file-systems.."
@@ -102,10 +111,7 @@ fvbe_mount() {
mount -t tmpfs none $FVBE_ROOT/tmp
mount -t tmpfs none $FVBE_ROOT/var/tmp

-       if [[ -d /var/cache/pacman-g2 ]]; then
-               fvbe_info_msg "Found pacman-g2 cache, mounting.."
-               mount -o bind /var/cache/pacman-g2 
$FVBE_ROOT/var/cache/pacman-g2
-       fi
+       fvbe_mount_pacman_cache
}

_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to