Duplicated FAI-Classes ?

Steffen Grunewald steffen.grunewald at aei.mpg.de
Tue Oct 26 14:08:59 CEST 2004


On Tue, Oct 26, 2004 at 12:53:41PM +0200, Holger Schurig wrote:
> During installation, my /tmp/fai/FAI_CLASSES looks like:
> 
> DEFAULT
> LINUX
> I386
> MNWH
> PART_ONE
> BOOT_MBR
> BOOT_LILO
> NET_BASE
> MNWH
> PART_ONE
> BOOT_MBR
> BOOT_LILO
> NET_BASE
> mnwh
> LAST
> 
> 
> how does this come?  My 02alias is the usual one:
> 
> 
> uname -s | tr '[:lower:]' '[:upper:]'
> [ -x "`which dpkg`" ] && dpkg --print-installation-architecture | tr /a-z/ /A-Z/
> 
> case $HOSTNAME in
>     mnwh)
>         catnc mnwh
>         ;;
> esac
> 
> 
> and mnwh is also simple:
> 
> 
> MNWH
> PART_ONE
> BOOT_MBR
> BOOT_LILO
> NET_BASE
> 

Hi,

This happens quite often... and the solution is simple enough:
the contents of mnwh are included twice since it's the hostname - once
by the alias script, once by the hostname lookup.
I use to fix such situations using mixed-case names for files, lower
case for hostnames, upper case for classes

Cheers,
 Steffen

-- 
Steffen Grunewald * * * Merlin cluster admin (http://pandora.aei.mpg.de)
Albert-Einstein-Institut (MPI Gravitationsphysik, http://www.aei.mpg.de)
       Science Park Golm, Am Mühlenberg 1, 14476 Potsdam, Germany
e-mail: steffen.grunewald(*)aei.mpg.de * +49-331-567-{fon:7233,fax:7298}



More information about the linux-fai mailing list