Remove unused kernel

This commit is contained in:
Victor LABORIE 2018-09-03 19:13:30 +02:00
parent ecb5fa17af
commit 694414eaab
2 changed files with 8 additions and 0 deletions

View file

@ -2,5 +2,8 @@
set -eu
DEBIAN_FRONTEND=noninteractive apt-get -yq purge $(dpkg-query -W -f='${binary:Package}\n' 'linux-image-4*' 'linux-headers-4*' | grep -v $(uname -r))
DEBIAN_FRONTEND=noninteractive apt-get -yq clean
chsh --shell '/usr/sbin/nologin' packer

View file

@ -66,6 +66,11 @@ cat <<EOF | jq .
,"command": ". /tmp/venv/bin/activate && ANSIBLE_FORCE_COLOR=1 PYTHONUNBUFFERED=1 ansible-playbook"
,"playbook_file": "./ansible/{{ user \`box_name\` }}.yml"
}
,{
"type": "shell"
,"execute_command": "sudo env {{ .Vars }} {{ .Path }}"
,"inline": ["reboot"]
}
,{
"type": "shell"
,"execute_command": "sudo env {{ .Vars }} {{ .Path }}"