Cleanup scripts
continuous-integration/drone/push Build was killed
Details
continuous-integration/drone/push Build was killed
Details
This commit is contained in:
parent
459db18b9d
commit
199464dde3
|
@ -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
|
||||
|
|
|
@ -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
|
|
@ -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
|
Loading…
Reference in New Issue