summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorV3n3RiX <venerix@rogentos.ro>2015-09-26 11:44:24 +0100
committerV3n3RiX <venerix@rogentos.ro>2015-09-26 11:44:24 +0100
commit4302a051e2135d16c543c0773d0cd397729bd613 (patch)
tree85151a2e5bcd295db94814a543b7c54c50fbbd92
parent70edca98d2653cb1874545f67014e5dc84708790 (diff)
no need for multiple checks, use only one
-rwxr-xr-xlibvasile4
1 files changed, 2 insertions, 2 deletions
diff --git a/libvasile b/libvasile
index 1240be2..4c5bf73 100755
--- a/libvasile
+++ b/libvasile
@@ -65,7 +65,7 @@ chrootstartx64 () {
mount -t squashfs "$chrootx64" "$rodir"
if [[ "$(uname -r | cut -d . -f1,2)" = "3.14" ]] ; then
mount -t overlayfs -o lowerdir="$rodir",upperdir="$rwdir" overlayfs "$overlaydir"
- elif [[ "(uname -r | cut -d . -f1,2)" = "4.1" ]] ; then
+ else
mount -t overlay -o lowerdir="$rodir",upperdir="$rwdir",workdir="$workdir" overlay "$overlaydir"
fi
while : true ; do
@@ -171,7 +171,7 @@ chrootstartx86 () {
mount -t squashfs "$chrootx86" "$rodir"
if [[ "$(uname -r | cut -d . -f1,2)" = "3.14" ]] ; then
mount -t overlayfs -o lowerdir="$rodir",upperdir="$rwdir" overlayfs "$overlaydir"
- elif [[ "(uname -r | cut -d . -f1,2)" = "4.1" ]] ; then
+ else
mount -t overlay -o lowerdir="$rodir",upperdir="$rwdir",workdir="$workdir" overlay "$overlaydir"
fi
while : true ; do