Remove unused kernel
This commit is contained in:
parent
ecb5fa17af
commit
694414eaab
|
@ -2,5 +2,8 @@
|
||||||
|
|
||||||
set -eu
|
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
|
DEBIAN_FRONTEND=noninteractive apt-get -yq clean
|
||||||
|
|
||||||
chsh --shell '/usr/sbin/nologin' packer
|
chsh --shell '/usr/sbin/nologin' packer
|
||||||
|
|
|
@ -66,6 +66,11 @@ cat <<EOF | jq .
|
||||||
,"command": ". /tmp/venv/bin/activate && ANSIBLE_FORCE_COLOR=1 PYTHONUNBUFFERED=1 ansible-playbook"
|
,"command": ". /tmp/venv/bin/activate && ANSIBLE_FORCE_COLOR=1 PYTHONUNBUFFERED=1 ansible-playbook"
|
||||||
,"playbook_file": "./ansible/{{ user \`box_name\` }}.yml"
|
,"playbook_file": "./ansible/{{ user \`box_name\` }}.yml"
|
||||||
}
|
}
|
||||||
|
,{
|
||||||
|
"type": "shell"
|
||||||
|
,"execute_command": "sudo env {{ .Vars }} {{ .Path }}"
|
||||||
|
,"inline": ["reboot"]
|
||||||
|
}
|
||||||
,{
|
,{
|
||||||
"type": "shell"
|
"type": "shell"
|
||||||
,"execute_command": "sudo env {{ .Vars }} {{ .Path }}"
|
,"execute_command": "sudo env {{ .Vars }} {{ .Path }}"
|
||||||
|
|
Loading…
Reference in a new issue