Keep previous /etc/hostname and /etc/localtime

This commit is contained in:
Timothy Redaelli 2016-02-02 11:55:23 +01:00
parent 39dd673d79
commit f6e56798fd

View file

@ -99,6 +99,10 @@ save_root_pass() {
chmod 0600 "/root.$cpu_type/root.passwd" chmod 0600 "/root.$cpu_type/root.passwd"
} }
backup_old_files() {
cp -fL /etc/hostname /etc/localtime "/root.$cpu_type/etc/" || true
}
delete_all() { delete_all() {
# Remove immutable flag from any files / directories # Remove immutable flag from any files / directories
if command -v chattr >/dev/null 2>&1; then if command -v chattr >/dev/null 2>&1; then
@ -320,6 +324,7 @@ cd /
download_and_extract_bootstrap download_and_extract_bootstrap
configure_chroot configure_chroot
save_root_pass save_root_pass
backup_old_files
delete_all delete_all
install_packages install_packages
restore_root_pass restore_root_pass