diff options
author | Simon Rettberg | 2021-07-08 16:05:57 +0200 |
---|---|---|
committer | Simon Rettberg | 2021-07-08 16:05:57 +0200 |
commit | eec5e1576e70d27caa639f36e34679ed18817458 (patch) | |
tree | 48b4f6be10d33c6c3b81a7723ff0c4bbb0b66cf7 /core/modules/vmware15/data/addon-required | |
parent | Drop 32bit support, improve CPU detection (diff) | |
download | mltk-eec5e1576e70d27caa639f36e34679ed18817458.tar.gz mltk-eec5e1576e70d27caa639f36e34679ed18817458.tar.xz mltk-eec5e1576e70d27caa639f36e34679ed18817458.zip |
Add installer mode for stage4
Diffstat (limited to 'core/modules/vmware15/data/addon-required')
-rw-r--r-- | core/modules/vmware15/data/addon-required | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/core/modules/vmware15/data/addon-required b/core/modules/vmware15/data/addon-required new file mode 100644 index 00000000..a86e41bc --- /dev/null +++ b/core/modules/vmware15/data/addon-required @@ -0,0 +1,19 @@ +#!/bin/bash + +# the vmware helper needs the kmod msr and the tool rdmsr, +# /dev, /sys and /proc to properly detect the CPU info. + +bindmount=("/dev" "/proc" "/sys") + +for bm in "${bindmount[@]}"; do + mount --bind "$bm" "${NEWROOT}/${bm}" +done + +export PATH="$PATH:/opt/openslx/sbin:/opt/openslx/bin" +version="$(chroot "$NEWROOT" vmware-get-supported-version)" + +for bm in "${bindmount[@]}"; do + umount "${NEWROOT}/${bm}" +done + +[ -n "$version" ] && [ "$version" = "new" ] |