Cleanup scripts
Some checks reported errors
continuous-integration/drone/push Build was killed

This commit is contained in:
Tyler 2022-03-06 15:49:51 -05:00
parent 459db18b9d
commit 199464dde3
3 changed files with 3 additions and 24 deletions

View File

@ -58,6 +58,9 @@ echo "removing command-not-found-data"
# 19.10+ don't have this package so fail gracefully
apt-get -y purge command-not-found-data || true;
echo "remove unnecessary packages via snap/apt"
snap remove lxd
# Exclude the files we don't need w/o uninstalling linux-firmware
echo "Setup dpkg excludes for linux-firmware"
cat <<_EOF_ | cat >> /etc/dpkg/dpkg.cfg.d/excludes

View File

@ -1,13 +0,0 @@
#!/bin/sh -eux
ubuntu_version="`lsb_release -r | awk '{print $2}'`";
major_version="`echo $ubuntu_version | awk -F. '{print $1}'`";
case "$PACKER_BUILDER_TYPE" in
hyperv-iso)
echo "installing packaging for hyper-v"
if [ "$major_version" -eq "16" ]; then
apt-get install -y linux-tools-virtual-lts-xenial linux-cloud-tools-virtual-lts-xenial;
else
apt-get -y install linux-image-virtual linux-tools-virtual linux-cloud-tools-virtual;
fi
esac

View File

@ -1,11 +0,0 @@
#!/bin/sh -eux
case "$PACKER_BUILDER_TYPE" in
vmware-iso|vmware-vmx)
echo "install open-vm-tools"
apt-get install -y open-vm-tools;
mkdir /mnt/hgfs;
systemctl enable open-vm-tools
systemctl start open-vm-tools
echo "platform specific vmware.sh executed";
esac