Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Dec 2008 21:09:29 +0100
From:      Bernard Dugas <bernard@dugas-family.org>
To:        Wojciech Puchar <wojtek@wojtek.tensor.gdynia.pl>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Optimising pxeboot disk size
Message-ID:  <49592E79.40504@dugas-family.org>
In-Reply-To: <20081216123057.M61117@wojtek.tensor.gdynia.pl>
References:  <20081216094719.EDCEE1065675@hub.freebsd.org> <49478749.2030200@dugas-family.org> <20081216123057.M61117@wojtek.tensor.gdynia.pl>

next in thread | previous in thread | raw e-mail | index | archive | help
Hello,

Wojciech Puchar wrote:
> i already did such things but with NetBSD 1.5 for my Xterminal distro.
> it's simple: 
> mount / readonly, put everything here.
> in /etc put /etc/rc consisting only
> #!/bin/sh
> exec /systemrc
> 
> in /systemrc put something like that:
> #!/bin/sh
> echo -n Mounting workstation config directory...
> #get your IP or MAC address using ifconfig,grep,cut,awk,how you like
> #put to to say MYIP
> /sbin/mount_nfs yournfsserver:/clients/etc/MYIP /etc
> echo done
> exec /etc/rc

Thank you very much, it is now running well after some hardware adventure.

I couldn't find the hostname sent by dhcp, but found a way to find the 
ip address.

The only problem i have is that the "echo done" and other standard 
outputs are not visible in /var/log/messages. How can i keep them either 
in dmesg or /var/log/messages ?

Best regards,
-- 
Bernard DUGAS Mobile +33 615 333 770



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?49592E79.40504>