summaryrefslogtreecommitdiff
path: root/libvasile
diff options
context:
space:
mode:
authorV3n3RiX <venerix@rogentos.ro>2016-04-17 12:15:29 +0100
committerV3n3RiX <venerix@rogentos.ro>2016-04-17 12:15:29 +0100
commit01c51c734d7cd9ea570f7acf26837a03fffd5141 (patch)
tree3aa4052c37b0e4aa3d934e603895ed5ba7dc559b /libvasile
parentc0947cea428782379316d3596cd958413eb573aa (diff)
lets refactor some things
Diffstat (limited to 'libvasile')
-rwxr-xr-xlibvasile20
1 files changed, 8 insertions, 12 deletions
diff --git a/libvasile b/libvasile
index 9759b1e..f2a99cb 100755
--- a/libvasile
+++ b/libvasile
@@ -78,8 +78,8 @@ chrootstop () {
umount -l "$overlaydir"/dev/shm > /dev/null 2>&1
umount -l "$overlaydir"/dev > /dev/null 2>&1
umount -l "$overlaydir"/tmp > /dev/null 2>&1
- umount -l "$overlaydir"/usr/portage > /dev/null 2>&1
- umount -l "$overlaydir"/mnt > /dev/null 2>&1
+ umount -l "$overlaydir"/usr/portage/packages > /dev/null 2>&1
+ umount -l "$overlaydir"/usr/portage/distfiles > /dev/null 2>&1
umount -l "$overlaydir" > /dev/null 2>&1
umount -l "$rodir" > /dev/null 2>&1
}
@@ -93,8 +93,8 @@ chrootstartx64 () {
else # kernel version equal or above 3.18
mount -t overlay -o lowerdir="$rodir",upperdir="$rwdir",workdir="$workdir" overlay "$overlaydir"
fi
- mount -o bind portage "$overlaydir"/usr/portage
- mount -o bind targets "$overlaydir"/mnt
+ mount -o bind packages "$overlaydir"/usr/portage/packages
+ mount -o bind distfiles "$overlaydir"/usr/portage/distfiles
mount -t proc proc "$overlaydir"/proc
mount -t sysfs sysfs "$overlaydir"/sys
mount -t devtmpfs -o relatime,size=3055348k,nr_inodes=763837,mode=755 none "$overlaydir"/dev
@@ -153,8 +153,8 @@ chrootstartx86 () {
else # kernel version equal or above 3.18
mount -t overlay -o lowerdir="$rodir",upperdir="$rwdir",workdir="$workdir" overlay "$overlaydir"
fi
- mount -o bind portage "$overlaydir"/usr/portage
- mount -o bind targets "$overlaydir"/mnt
+ mount -o bind packages "$overlaydir"/usr/portage/packages
+ mount -o bind distfiles "$overlaydir"/usr/portage/distfiles
mount -t proc proc "$overlaydir"/proc
mount -t sysfs sysfs "$overlaydir"/sys
mount -t devtmpfs -o relatime,size=3055348k,nr_inodes=763837,mode=755 none "$overlaydir"/dev
@@ -207,8 +207,7 @@ chrootx86 () {
# x64 specific iso functions
isostartx64 () {
- mount -o bind portage/packages "$isosyncdirx64"/usr/portage/packages
- mount -o bind targets "$isosyncdirx64"/mnt
+ mount -o bind packages "$isosyncdirx64"/usr/portage/packages
mount -t proc proc "$isosyncdirx64"/proc
mount -t sysfs sysfs "$isosyncdirx64"/sys
mount -t devtmpfs -o relatime,size=3055348k,nr_inodes=763837,mode=755 none "$isosyncdirx64"/dev
@@ -225,7 +224,6 @@ isostopx64 () {
umount -l "$isosyncdirx64"/dev > /dev/null 2>&1
umount -l "$isosyncdirx64"/tmp > /dev/null 2>&1
umount -l "$isosyncdirx64"/usr/portage/packages > /dev/null 2>&1
- umount -l "$isosyncdirx64"/mnt > /dev/null 2>&1
}
isooverlaysx64 () {
@@ -267,8 +265,7 @@ isochrootx64 () {
# x86 specific iso functions
isostartx86 () {
- mount -o bind portage/packages "$isosyncdirx86"/usr/portage/packages
- mount -o bind targets "$isosyncdirx86"/mnt
+ mount -o bind packages "$isosyncdirx86"/usr/portage/packages
mount -t proc proc "$isosyncdirx86"/proc
mount -t sysfs sysfs "$isosyncdirx86"/sys
mount -t devtmpfs -o relatime,size=3055348k,nr_inodes=763837,mode=755 none "$isosyncdirx86"/dev
@@ -285,7 +282,6 @@ isostopx86 () {
umount -l "$isosyncdirx86"/dev > /dev/null 2>&1
umount -l "$isosyncdirx86"/tmp > /dev/null 2>&1
umount -l "$isosyncdirx86"/usr/portage/packages > /dev/null 2>&1
- umount -l "$isosyncdirx86"/mnt > /dev/null 2>&1
}
isooverlaysx86 () {