Installing Debian Squeeze (i386) - No $HOSTNAME set

Michael Tautschnig mt at debian.org
Sat Oct 9 21:13:54 CEST 2010


Hi Karl,

[...] (hostname/HOSTNAME issue is tracked in a separate sub-thread)

> 
> >>3. ssh-command for fai-chboot (Calling task_chboot) requires user input.
> >>>The authenticity of host 'faiserver (192.168.148.11)' can't be established.
> >>>RSA key fingerprint is ...
> >>>Are you sure you want to continue connection (yes/no)?
> >>Solution is to append the line "StrictHostKeyChecking no" to /etc/ssh/ssh_config (for nfsroot).
> >>
> >
> >No, fai-setup should be taking care of this, as good as it can. There should be
> >some output resulting from echo "$sshdir/known_hosts created."; you might want
> >to check the contents of that file.
> >
> "$sshdir/known_hosts" is only created when FAI_LOGPROTO is "ssh". (I used LOGPROTO "ftp".)
> fai-setup:95> if [ "$FAI_LOGPROTO" = "ssh" ]; then
> 

Ah, ok, seems we are abusing that $LOG... stuff for running fai-chboot as well.
Not really nice, IMHO. Would you mind filing a bug with the Debian BTS about his
issue? I bet we're not going to get this fixed within the next days and it would
just get lost all too easily.

> >>5. Error when running fai-setup
> >>>df: Warning: cannot read table of mounted file systems: No such file or directory
> >>>
> >>No /etc/mtab inside nfsroot.
> >>Solution is to add a softlink: "ln -sf /proc/mounts /etc/mtab"
> >>
> >
> >I have no idea when df would be called, or which script should be calling it.
> It's called by "update-initramfs" (during fai-setup). Reproducible with:
> > root at sque32:~# chroot /srv/fai/nfsroot/live/filesystem.dir
> > root at sque32:/# update-initramfs -u
> > update-initramfs: Generating /boot/initrd.img-2.6.32-5-486
> > df: Warning: cannot read table of mounted file systems: No such file or directory
> > warning: can't open /etc/mtab: No such file or directory
> 
> 
> >>6. Error when running fai-setup
> >>>Creating config file /etc/default/grub with new version
> >>>grub-probe: error: cannot find a device for / (is /dev mounted?).
> >>>grub-probe: error: cannot find a device for /boot (is /dev mounted?).
> >>>grub-probe: error: cannot find a device for /boot/grub (is /dev mounted?).
> >>No idea on this errors. Can't detect any problems caused by this.
> >>
> >
> >It's just installing the grub package in the NFSROOT, but it can (obviously) not
> >be properly configured; should not pose any problems.
> >
> grub-probe is called by grub-install, which is called by postinst of grub-pc (/var/lib/dpkg/info/grub-pc.postinst).
> IMHO it is not useful to call grub-install inside nfs-root during fai-setup. fai-cd (iso+usb) do their own grub install.
> Maybe it's better to install grub-pc unconfigured (dpkg --unpack).
> 

I'm not sure whether we want to fix those "problems" at all - none of them will
be causing problems for the installed system, doing a redirect to /dev/null
would be just as good.

Best,
Michael

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
Url : http://lists.uni-koeln.de/pipermail/linux-fai/attachments/20101009/1ad190ab/attachment.bin 


More information about the linux-fai mailing list