[SOLVED]Re: fai-cd makes too big iso

2008-06-07 Diskussionsfäden rvenne

rvenne a écrit :

Hi list.


I've fai-server 3.2.7, and I'm unable to make bootable cd iso image 
with fai-cd command.


in fact, I did it with

fai-cd -m /tmp/emptydir myiso.iso

until an automtic update gets a new version of fai-server.

The NFSROOT structure has been changed, and I was forced to copy 
stage2_eltorito into the NFSROOT myself


here's the command output:

fai-cd -m /files/scratch/debmirror -f fai.iso
Bind mounting all required parts
NFSROOT /srv/fai/nfsroot/live/filesystem.dir mounted
Config space /srv/fai/config mounted
Mirror /files/scratch/debmirror mounted
find: 
/files/scratch/debmirror/dists//files/scratch/debmirror/debian-security/.temp/dists/etch: 
Aucun fichier ou répertoire de ce type
find: 
/files/scratch/debmirror/dists//files/scratch/debmirror/.temp/dists: 
Aucun fichier ou répertoire de ce type

Writing FAI CD-ROM image to fai.iso. This may need some time.
re-directing all messages to log


I've changed the file to see the logs output. they were re-directied 
to /dev/null by default. and my fai.iso grows up to some Go !


I'm pretty sure that it's making an iso image of the whole system. and 
fai-cd doesn't accept

empty mirror directory any longer.

/etc/fai/fai.conf
FAI_DEBMIRROR=fai:/files/scratch/debmirror
LOGUSER=
FAI_LOGPROTO=ssh
FAI_CONFIGDIR=/srv/fai/config
FAI_CONFIG_SRC=file://$FAI_CONFIGDIR
MNTPOINT=/media/mirror
FAI=/var/lib/fai/config #(this one is empy)


/etc/fai/make-fai-nfsroot.conf:
NFSROOT=/srv/fai/nfsroot
NFSROOT_ETC_HOSTS="192.168.0.10 fai"
TFTPROOT="/files/scratch/debmirror"  #I was forced to fixe this one. I 
haven't any tftp server

FAI_DEBOOTSTRAP="etch http://ftp.free.fr/debian";
FAI_ROOTPW='$1$kBnWcO.E$djxB128U7dMkrltJHPf6d1'
FAICLIENTS="192.168.0.0/24"
FAI_DEBOOTSTRAP_OPTS="--exclude=dhcp-client,info"
NFSROOT_ETC_HOSTS=192.168.0.10

/srv/fai/nfsroot makes about 350Mo
please help
regards
humm. ok. I forgot setting kernel package, so that fai is looking 
for a real mirror to install it.


KERNELPAQUAGE is not necessary any more in conf files. a fai kernel deb 
file should be specified in /etc/fai/NFSROOT





Re: config questions

2008-06-07 Diskussionsfäden Michael Tautschnig
Bjorn,

> Can not write log, openpty() failed (/dev/pts not mounted?)
> Can not write log, openpty() failed (/dev/pts not mounted?)
> /sys/class/net/ is not available, persistent interface names not saved.
[...]

Are you running all this in any kind of chroot (well, make-fai-nfsroot will
chroot itself), pbuilder or the like? It seems like there is no /dev and not
/sys mounted!?

Best,
Michael



pgpYMd1PvZDq7.pgp
Description: PGP signature


Re: fai-cd makes too big iso

2008-06-07 Diskussionsfäden Michael Tautschnig
> Hi list.
>
>
> I've fai-server 3.2.7, and I'm unable to make bootable cd iso image with  
> fai-cd command.
>
> in fact, I did it with
>
> fai-cd -m /tmp/emptydir myiso.iso
>
> until an automtic update gets a new version of fai-server.
>

[...]

Was that an update from 3.2.6. to 3.2.7? Apparently there was some change that
could cause such breakages. Thomas, could you help out?

Best,
Michael



pgpuBsCzbwRZj.pgp
Description: PGP signature


Re: Kernel config magic?

2008-06-07 Diskussionsfäden Thomas Lange
> On Fri, 6 Jun 2008 17:03:17 -0500, "John Heim" <[EMAIL PROTECTED]> said:

> Is there a way to take a stock kernel config and turn it into a FAI boot 
> kernel config?
Hi John,

from FAI 3.2 we are using a stock Debian kernel with initrd, so I
think you are still using an older FAI version. The README in the
fai-kernels packages describes which options you have to set to build
a kernel for FAI. But with FAI 3.2 and newer you can just use a plain
kernel. This needs the unionfs module, which is broken for some kernel
versions. But you may want to test aufs (another union file
system). Add union=aufs to the kernel command line and check that this
module available inside the nfsroot. But I did not test it myself yet.

-- 
regards Thomas