summaryrefslogtreecommitdiff
path: root/libvasile
diff options
context:
space:
mode:
authorV3n3RiX <venerix@rogentos.ro>2015-11-29 00:37:52 +0000
committerV3n3RiX <venerix@rogentos.ro>2015-11-29 00:37:52 +0000
commit9b47ea9717f916402d4c53cc1f96026017e925f8 (patch)
tree07284cefc2b662d0f29a85f64eaa5a3b21fb519a /libvasile
parent653a4ad3faad77f41d52674a5de96c4955eb4caf (diff)
make vasile check the kernel configuration for overlayfs && squashfs && loop devices support before attempting to do its magic
Diffstat (limited to 'libvasile')
-rwxr-xr-xlibvasile23
1 files changed, 19 insertions, 4 deletions
diff --git a/libvasile b/libvasile
index 330f6b0..576f2a0 100755
--- a/libvasile
+++ b/libvasile
@@ -13,6 +13,21 @@ export local chrootportageconfig="ln -sf /opt/kogaion-build/conf/intel/portage /
export local chrootenvupdate="/usr/sbin/env-update && . /etc/profile"
export local chrootprofile="eselect profile set 1"
+kernelconfig () {
+ if [[ $(zgrep 'CONFIG_OVERLAY_FS=' /proc/config.gz) && $(zgrep "CONFIG_SQUASHFS=" /proc/config.gz) && $(zgrep "CONFIG_BLK_DEV_LOOP=" /proc/config.gz) ]] ; then
+ echo ""
+ echo "Kernel configuration seems OK, moving on"
+ echo ""
+ sleep 1
+ else
+ echo ""
+ echo "Vasile needs OVERLAYFS && SQUASHFS && LOOP DEVICES to work"
+ echo "Please rebuild the kernel with those activated to use it"
+ echo ""
+ exit 1
+ fi
+}
+
checkroot () {
if [[ "$(whoami)" != root ]] ; then
echo ""
@@ -61,8 +76,8 @@ chrootchecksumx64 () {
done
}
-coresetupx64 () {
-}
+#coresetupx64 () {
+#}
chrootstartx64 () {
mount -t squashfs "$chrootx64" "$rodir"
@@ -170,8 +185,8 @@ chrootchecksumx86 () {
done
}
-coresetupx86 () {
-}
+#coresetupx86 () {
+#}
chrootstartx86 () {
mount -t squashfs "$chrootx86" "$rodir"