Clean up on break out

This commit is contained in:
Ben Wilson
2021-09-17 16:47:51 +01:00
parent 8f9f524e78
commit bd9b443dc9
18 changed files with 18 additions and 0 deletions

View File

@@ -139,6 +139,7 @@ systemd-nspawn_exec /third-stage
set_locale "$locale"
# Clean system
include clean_system
trap clean_build ERR SIGTERM SIGINT
# Define DNS server after last running systemd-nspawn
echo "nameserver 8.8.8.8" >"${work_dir}"/etc/resolv.conf
# Disable the use of http proxy in case it is enabled