[__hostname] Comment out support for ancient ArchLinux versions

This commit is contained in:
Dennis Camera 2019-11-16 23:31:58 +01:00
parent a885082534
commit f18bdd1fad

View file

@ -68,14 +68,17 @@ in
then
set_hostname_systemd "$name_should"
else
echo 'Ancient ArchLinux variants without hostnamectl are not supported.' >&2
exit 1
# Only for ancient ArchLinux, write to /etc/rc.conf on pre-systemd
# versions. There are some versions which use /etc/hostname but not
# systemd. It is unclear which ones these are.
__key_value '/etc/rc.conf:HOSTNAME' \
--file /etc/rc.conf \
--delimiter '=' --exact_delimiter \
--key 'HOSTNAME' \
--value "\"$name_should\""
# systemd. It is unclear which ones these are.
# __key_value '/etc/rc.conf:HOSTNAME' \
# --file /etc/rc.conf \
# --delimiter '=' --exact_delimiter \
# --key 'HOSTNAME' \
# --value "\"$name_should\""
fi
;;
centos|fedora|redhat|scientific)