Package: fai-server
Version: 2.10
Severity: minor
Tags: patch

Each time i rerun 'fai-setup -r'  a new set of identical lines is added to 
(nfsroot)/etc/hosts, with localhost and $NFSROOT_ETC_HOSTS entries.

This is due to the function create_nfsroot()  in /usr/sbin/make-fai-nfsroot
which does:
    echo "127.0.0.1 localhost" >> etc/hosts
    echo "$NFSROOT_ETC_HOSTS" >> etc/hosts

The trivial solution is:
    echo "127.0.0.1 localhost" > etc/hosts
    [ -n "$NFSROOT_ETC_HOSTS" ] && echo "$NFSROOT_ETC_HOSTS" >> etc/hosts

It seems to me that this bug is related to #331258, but that one applies to 
an older fai version 2.8.*

Thanks, Ariel


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to