diff options
author | V3n3RiX <venerix@rogentos.ro> | 2015-09-26 11:40:15 +0100 |
---|---|---|
committer | V3n3RiX <venerix@rogentos.ro> | 2015-09-26 11:40:15 +0100 |
commit | 70edca98d2653cb1874545f67014e5dc84708790 (patch) | |
tree | ffda2d122a3ca968d704ab5059175dae7b1a04aa | |
parent | 50528cc875eb7869bf96b5c623adcee009abade1 (diff) |
make kernel version checking a bit more robust
-rwxr-xr-x | libvasile | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 |