5.2.2-alt1

- Enabled FQDN in computer name in all cases (ALT #41708).
This commit is contained in:
Andrey Cherepanov 2022-03-15 12:19:21 +03:00
parent 9962ce73cb
commit 6bf86eb2be
2 changed files with 5 additions and 10 deletions

View File

@ -1,5 +1,5 @@
Name: alterator-net-eth
Version: 5.2.1
Version: 5.2.2
Release: alt1
Source:%name-%version.tar
@ -77,6 +77,9 @@ mapping current hostname to 127.0.0.1 in /etc/hosts.
%_sysconfdir/hooks/hostname.d/*
%changelog
* Tue Mar 15 2022 Andrey Cherepanov <cas@altlinux.org> 5.2.2-alt1
- Enabled FQDN in computer name in all cases (ALT #41708).
* Mon Dec 27 2021 Slava Aseev <ptrnine@altlinux.org> 5.2.1-alt1
- Use hostnamectl (if it possible) to manage static hostname

View File

@ -1025,16 +1025,8 @@ list_current_iface_addresses()
iface_up lo
clear_cache
# do not setup domain name if alterator-net-domain installed to current system
if [ -f "$ALTERATOR_DOMAIN" ] && [ -z "$DURING_INSTALL" ];then
NAME_CHECK=system-computer-name
else
NAME_CHECK=hostname
fi
alterator_export_var \
computer_name $NAME_CHECK \
computer_name hostname \
search hostname-list \
dns ip-address-list
# default ipv4-address \