Re: Optimising pxeboot disk size

2008-12-30 Thread Wojciech Puchar
add second echo to >>/var/log/messages ;) Hope not to forget one > ;-) But is there a system call or configuration to do that automatically ? I can see some echo in /etc/rc without any >>, and their result seems to go to /var/messages. I wish to learn to do clean scripting :-) actually i

Re: Optimising pxeboot disk size

2008-12-30 Thread Bernard Dugas
Wojciech Puchar wrote: I couldn't find the hostname sent by dhcp, but found a way to find the ip address. just use hostname command. I did, but the answer is empty (remember this is before /etc/rc is run). Where is kept the data received by dhcp_client during pxe boot ? The only problem i

Re: Optimising pxeboot disk size

2008-12-29 Thread Wojciech Puchar
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. just use hostname command. The only problem i have is that the "echo done" and other standard outputs are not visible in /var/log/me

Re: Optimising pxeboot disk size

2008-12-29 Thread Bernard Dugas
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 co

Re: Optimising pxeboot disk size

2008-12-16 Thread Bernard Dugas
Paul B. Mahol wrote: Well, I tested unionfs on CURRENT and it did not crashed on me. Feel free to test it on 7 STABLE and report results to developers. Thanks for the feed-back, i will no more be afraid to test :-) I will tell you later, Best regards, -- Bernard DUGAS Mobile +33 615 333 770 __

Re: Optimising pxeboot disk size

2008-12-16 Thread Paul B. Mahol
On 12/16/08, Bernard Dugas wrote: > Paul B. Mahol wrote: > >> On 12/16/08, Wojciech Puchar wrote: > When you want to change something, you add a rw TransparentLayer : mount -tl yournfsserver:/StationYchanges/etc /etc So that changed or added files are only stored in this rw parti

Re: Optimising pxeboot disk size

2008-12-16 Thread Da Rock
On Tue, 2008-12-16 at 15:02 +0100, Bernard Dugas wrote: > Wojciech Puchar wrote: > > i already did such things but with NetBSD 1.5 for my Xterminal distro. > > > > it's simple: > > More simple when you tell it ;-) Thanks a lot, i will try it tonight ! > > > I wish it's helpful, doing this doesn'

Re: Optimising pxeboot disk size

2008-12-16 Thread Wojciech Puchar
MOUNT_NULLFS(8) doc is very detailled, but i can't find how to use it for my problem : being able to go from common shared configuration to specific you can't - nullfs doesn't do this. use symlinks /etc containing tons of links to /sharedetc and few files instead of symlink - for those that

Re: Optimising pxeboot disk size

2008-12-16 Thread Bernard Dugas
Paul B. Mahol wrote: On 12/16/08, Wojciech Puchar wrote: When you want to change something, you add a rw TransparentLayer : mount -tl yournfsserver:/StationYchanges/etc /etc So that changed or added files are only stored in this rw partition, thus very small and easy to manage. This would

Re: Optimising pxeboot disk size

2008-12-16 Thread Bernard Dugas
Wojciech Puchar wrote: mount_unionfs but i don't know how stable it is. Thanks to fill my dreams :-) The dream is close, but still a dream :-( http://www.freebsd.org/cgi/man.cgi?query=mount_unionfs&sektion=8&apropos=0&manpath=FreeBSD+7.0-RELEASE "BUGS THIS FILE SYSTEM TYPE IS NOT YET FUL

Re: Optimising pxeboot disk size

2008-12-16 Thread Paul B. Mahol
On 12/16/08, Wojciech Puchar wrote: >>> it's simple: >> >> More simple when you tell it ;-) Thanks a lot, i will try it tonight ! > > it doesn't have chance - must work :) > >> >>> I wish it's helpful, doing this doesn't just save space but saves time - >>> you have to upgrade software once. >> >>

Re: Optimising pxeboot disk size

2008-12-16 Thread Wojciech Puchar
it's simple: More simple when you tell it ;-) Thanks a lot, i will try it tonight ! it doesn't have chance - must work :) I wish it's helpful, doing this doesn't just save space but saves time - you have to upgrade software once. So preserving consistency, which is the most important whe

Re: Optimising pxeboot disk size

2008-12-16 Thread Bernard Dugas
Wojciech Puchar wrote: i already did such things but with NetBSD 1.5 for my Xterminal distro. it's simple: More simple when you tell it ;-) Thanks a lot, i will try it tonight ! I wish it's helpful, doing this doesn't just save space but saves time - you have to upgrade software once. So p

Re: Optimising pxeboot disk size

2008-12-16 Thread Wojciech Puchar
on NFS server. Lot of root directories can be shared and mounted in fstab, after booting process : /usr, /home... In current solution, the minimum root directories i had to keep for managing to boot are : bin libexec sbin boot etc lib i already did such things but with NetBSD 1.5 for my Xt

Optimising pxeboot disk size

2008-12-16 Thread Bernard Dugas
Hi, I'm working on a project to have many diskless clients PXEbooting on 1 nfs server. This works now, but i would like to have a more efficient use of disk space on NFS server. Lot of root directories can be shared and mounted in fstab, after booting process : /usr, /home... In current