blob: 6261292c9fb0f7c03a82c21a138d5f71847267de (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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" = "legacy" ]
|