Skip to content

Commit

Permalink
Work in progress for ESXi 6.5
Browse files Browse the repository at this point in the history
  • Loading branch information
DrDonk committed Nov 20, 2016
1 parent e6d9d04 commit 1ee4d6e
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions local-template.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ fi
# Create new RAM disk and map to /unlocker
logger -t unlocker Creating RAM disk
mkdir /unlocker
mkdir /unlocker/lib
mkdir /unlocker/lib64
localcli system visorfs ramdisk add -m 100 -M 100 -n unlocker -p 0755 -t /unlocker
localcli system visorfs ramdisk add -m 200 -M 200 -n unlocker -p 0755 -t /unlocker

# Copy the vmx files
logger -t unlocker Copying vmx files
Expand All @@ -38,12 +36,17 @@ rm -fv /bin/vmx-stats
ln -s /unlocker/vmx-stats /bin/vmx-stats

# Copy the libvmkctl.so file
cp /lib/libvmkctl.so /unlocker/lib
mkdir /unlocker/lib
cp /lib/libvmkctl.so /unlocker/lib/libvmkctl.so
rm -fv /lib/libvmkctl.so
ln -s /unlocker/lib/libvmkctl.so /lib/libvmkctl.so
cp /lib64/libvmkctl.so /unlocker/lib64
rm -fv /lib64/libvmkctl.so
ln -s /unlocker/lib64/libvmkctl.so /lib64/libvmkctl.so

if [ -f "/lib64/libvmkctl.so" ] ; then
mkdir /unlocker/lib64
cp /lib64/libvmkctl.so /unlocker/lib64/libvmkctl.so
rm -fv /lib64/libvmkctl.so
ln -s /unlocker/lib64/libvmkctl.so /lib64/libvmkctl.so
fi

# Patch the vmx files
logger -t unlocker Patching vmx files
Expand Down

0 comments on commit 1ee4d6e

Please sign in to comment.