Skip to content

Commit

Permalink
Only use DHCPv6 hostname if no other hostname was set
Browse files Browse the repository at this point in the history
  • Loading branch information
danwinship committed Sep 24, 2020
1 parent f852306 commit 1bbd351
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chrooted.sh
Expand Up @@ -7,7 +7,7 @@ dnf --best install -y $(cat ${PKGS_LIST_DST})
# FIXME: we need an alternative of this packaged
mkdir -p /etc/NetworkManager/conf.d /etc/NetworkManager/dispatcher.d
echo -e '[main]\ndhcp=dhclient\n[connection]\nipv6.dhcp-duid=ll' > /etc/NetworkManager/conf.d/clientid.conf
echo -e '[[ "$DHCP6_FQDN_FQDN" =~ - ]] && hostname $DHCP6_FQDN_FQDN' > /etc/NetworkManager/dispatcher.d/01-hostname
echo -e '[[ "$DHCP6_FQDN_FQDN" =~ - ]] && [[ "$(hostname)" == localhost.localdomain ]] && hostname $DHCP6_FQDN_FQDN' > /etc/NetworkManager/dispatcher.d/01-hostname
chmod +x /etc/NetworkManager/dispatcher.d/01-hostname

# Provide a list of packages installed in the ipa-ramdisk
Expand Down

0 comments on commit 1bbd351

Please sign in to comment.