summaryrefslogtreecommitdiff
path: root/libvasile
diff options
context:
space:
mode:
authorV3n3RiX <venerix@rogentos.ro>2015-09-26 11:40:15 +0100
committerV3n3RiX <venerix@rogentos.ro>2015-09-26 11:40:15 +0100
commit70edca98d2653cb1874545f67014e5dc84708790 (patch)
treeffda2d122a3ca968d704ab5059175dae7b1a04aa /libvasile
parent50528cc875eb7869bf96b5c623adcee009abade1 (diff)
make kernel version checking a bit more robust
Diffstat (limited to 'libvasile')
-rwxr-xr-xlibvasile8
1 files changed, 4 insertions, 4 deletions
diff --git a/libvasile b/libvasile
index dee2937..1240be2 100755
--- a/libvasile
+++ b/libvasile
@@ -63,9 +63,9 @@ chrootchecksumx64 () {
chrootstartx64 () {
mount -t squashfs "$chrootx64" "$rodir"
- if [[ "$(uname -r | cut -d - -f1)" = "3.14.0" ]] ; then
+ 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)" = "4.1.0" ]] ; then
+ elif [[ "(uname -r | cut -d . -f1,2)" = "4.1" ]] ; then
mount -t overlay -o lowerdir="$rodir",upperdir="$rwdir",workdir="$workdir" overlay "$overlaydir"
fi
while : true ; do
@@ -169,9 +169,9 @@ chrootchecksumx86 () {
chrootstartx86 () {
mount -t squashfs "$chrootx86" "$rodir"
- if [[ "$(uname -r | cut -d - -f1)" = "3.14.0" ]] ; then
+ 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)" = "4.1.0" ]] ; then
+ elif [[ "(uname -r | cut -d . -f1,2)" = "4.1" ]] ; then
mount -t overlay -o lowerdir="$rodir",upperdir="$rwdir",workdir="$workdir" overlay "$overlaydir"
fi
while : true ; do