Include disable proxy, mirror restore and dns on clean_system script

This commit is contained in:
Fran
2021-09-18 11:50:14 +02:00
committed by Fran Rodríguez
parent 73ff96c74e
commit 0ff3de4495
19 changed files with 25 additions and 155 deletions

View File

@@ -135,14 +135,6 @@ systemd-nspawn_exec /third-stage
set_locale "$locale"
# Clean system
include clean_system
# Define DNS server after last running systemd-nspawn.
echo "nameserver ${nameserver}" >"${work_dir}"/etc/resolv.conf
# Disable the use of http proxy in case it is enabled.
disable_proxy
# Mirror & suite replacement
restore_mirror
# Reload sources.list
#include sources.list
# Kernel section. If you want to use a custom kernel, or configuration, replace
# them in this section.
@@ -296,7 +288,7 @@ umount -l "${rootp}"
e2fsck -y -f "$rootp"
# Remove loop devices
kpartx -dv "${loopdevice}"
kpartx -dv "${loopdevice}"
losetup -d "${loopdevice}"
# Compress image compilation