Re: further problems with make-fai-nfsroot
> On Thu, 13 Sep 2007 16:43:43 +0200, Tobias Herziger <[EMAIL PROTECTED]> > said: > I just put thomas' debian repository into our sources.list apt-get > upgraded the packages and now FAI is broken. running make-fai-nfsroot > leads to that: > cp: Fehlender Zieldatei-Operand hinter > þ/srv/fai/nfsroot/live/filesystem.dir/boot/vmlinuz-*ü It seems that no kernel package was installed into the nfsroot. Which FAI version were you using before adding my repository? In my repository there is FAI 3.2 which has some major changes to FAI 3.1.8. -- regards Thomas
further problems with make-fai-nfsroot
Hi! I just put thomas' debian repository into our sources.list apt-get upgraded the packages and now FAI is broken. running make-fai-nfsroot leads to that: [EMAIL PROTECTED]:/etc/fai# make-fai-nfsroot -v Using configuration files from /etc/fai Creating FAI nfsroot in /srv/fai/nfsroot/live/filesystem.dir. [...] install_packages: executing chroot /srv/fai/nfsroot/live/filesystem.dir apt-get clean install_packages: executing chroot /srv/fai/nfsroot/live/filesystem.dir dpkg --configure --pending install_packages: executing chroot /srv/fai/nfsroot/live/filesystem.dir dpkg -C install_packages: executing chroot /srv/fai/nfsroot/live/filesystem.dir apt-get clean „/etc/fai/apt“ -> „/srv/fai/nfsroot/live/filesystem.dir/etc/fai/apt“ „/etc/fai/apt/sources.list.dpkg-dist“ -> „/srv/fai/nfsroot/live/filesystem.dir/etc/fai/apt/sources.list.dpkg-dist“ „/etc/fai/apt/sources.list“ -> „/srv/fai/nfsroot/live/filesystem.dir/etc/fai/apt/sources.list“ „/etc/fai/fai.conf“ -> „/srv/fai/nfsroot/live/filesystem.dir/etc/fai/fai.conf“ „/etc/fai/fai.conf.dpkg-dist“ -> „/srv/fai/nfsroot/live/filesystem.dir/etc/fai/fai.conf.dpkg-dist“ „/etc/fai/make-fai-nfsroot.conf“ -> „/srv/fai/nfsroot/live/filesystem.dir/etc/fai/make-fai-nfsroot.conf“ „/etc/fai/make-fai-nfsroot.conf.dpkg-dist“ -> „/srv/fai/nfsroot/live/filesystem.dir/etc/fai/make-fai-nfsroot.conf.dpkg-dist“ „/etc/fai/menu.lst“ -> „/srv/fai/nfsroot/live/filesystem.dir/etc/fai/menu.lst“ „/etc/fai/menu.lst.dpkg-dist“ -> „/srv/fai/nfsroot/live/filesystem.dir/etc/fai/menu.lst.dpkg-dist“ „/etc/fai/NFSROOT“ -> „/srv/fai/nfsroot/live/filesystem.dir/etc/fai/NFSROOT“ „/etc/fai/NFSROOT.dpkg-dist“ -> „/srv/fai/nfsroot/live/filesystem.dir/etc/fai/NFSROOT.dpkg-dist“ Shadow passwords are now on. Removing `local diversion of /usr/sbin/update-initramfs to /usr/sbin/update-initramfs.distrib' cp: Fehlender Zieldatei-Operand hinter „/srv/fai/nfsroot/live/filesystem.dir/boot/vmlinuz-*“ „cp --help“ gibt weitere Informationen. Aborting Removing `local diversion of /sbin/discover-modprobe to /sbin/discover-modprobe.distrib' why??? regards, tobias -- Tobias Herziger Senior System Administrator Phone: +49-89-74642-535 Cell: +49-178-6955984 Fax: +49-89-74642-200 CHIP Xonio Online GmbH Poccistraße 11, 80336 München Geschäftsführung: Mathias Plica Vors. d. Aufsichtsrats: Dr. Jan-Gisbert Schultze Registergericht München HRB 104168 USt.-Ident.Nr. 155 289 492
Re: error while running make-fai-nfsroot
> Thanks Holger, It worked. > > I was able install the etch OS. What is the default username/password > that we need to give when it reboots? > > Should we login as root? > The password should be fai HTH, Michael pgpCdtPBKK4WX.pgp Description: PGP signature
thanks Thomas
Thanks thomas for your help. I installed one target using the fai-cd today. Fully Automatic Installation !!! I used fai version 3.2 on etch (kernel 2.6.20.7 - custom kernel) Warm Regards, Prafash
RE: error while running make-fai-nfsroot
Thanks Holger, It worked. I was able install the etch OS. What is the default username/password that we need to give when it reboots? Should we login as root? Thanks, Shekar -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Holger Levsen Sent: Wednesday, September 12, 2007 2:30 PM To: [EMAIL PROTECTED] Subject: Re: error while running make-fai-nfsroot Hi, On Wednesday 12 September 2007 10:06, Muniven Shekar-PTH473 wrote: > install_packages: reading config files from directory > /srv/fai/config/package_config > Can't call method "exists" on an undefined value at > /usr/sbin/install_packages line 388, line 89. > I checked in all the NFSROOT and changed all occurrences of install to > aptitude. Still I am getting this error. How do we fix this? you need to install libapt-pkg-perl - this will be fixed in fai 3.2.1 regards, Holger
Re: securing installation
Henning Glawe wrote: On Wed, Sep 12, 2007 at 06:14:26PM +0200, Michael Tautschnig wrote: [...] I think it works the following way: put your code in a script $NFSROOT/$FAI/hooks/confdir.DEFAULT, where $NFSROOT and $FAI are set in make-fai-nfsroot.conf and fai.conf, respectively. I'll try this out tomorrow. I now have my FAI pulling the config space from a svn repository. Just to make sure we get this right: That hooks/ directory will later be effectively overwritten by the SVN checkout and well, hmm, I'm not even sure one gets to see the hook at all as it must be made available within tmpfs. @Thomas: Could you maybe comment on this one? I am using a quite ugly hack: in /etc/fai/fai.conf [...] if [ -d "/etc/fai/hooks" ]; then FAI=/etc/fai fi [...] in /etc/fai/hooks/confdir.DEFAULT.source [...] get_the_config FAI=the_real_fai_config_path [...] Thanks this seems to work. -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Rudy Gevaert [EMAIL PROTECTED] tel:+32 9 264 4734 Directie ICT, afd. Infrastructuur ICT Department, Infrastructure office Groep SystemenSystems group Universiteit Gent Ghent University Krijgslaan 281, gebouw S9, 9000 Gent, Belgie www.UGent.be -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Re: securing installation
> Michael Tautschnig wrote: > Where should I put the hook? >>> >> I think it works the following way: put your code in a script >> $NFSROOT/$FAI/hooks/confdir.DEFAULT, where $NFSROOT and $FAI are set in >> make-fai-nfsroot.conf and fai.conf, respectively. > > Ok, it reads to hook, but then my svn checkout fails because the directory > already exists. > > I don't see any other way than to move the code that downloads my key to an > higher level. > [...] Not necessarily, you might follow the advice of Henning Glawe (which he posted yesterday) to redefine $FAI within the hooks. Best, Michael pgpGF6aP2LzjW.pgp Description: PGP signature
Re: securing installation
Michael Tautschnig wrote: Where should I put the hook? I think it works the following way: put your code in a script $NFSROOT/$FAI/hooks/confdir.DEFAULT, where $NFSROOT and $FAI are set in make-fai-nfsroot.conf and fai.conf, respectively. Ok, it reads to hook, but then my svn checkout fails because the directory already exists. I don't see any other way than to move the code that downloads my key to an higher level. About svn+ssh: I think latest FAI should already allow that, so it depends on your actual version. Yes your right, I checked it again. I must have looked over it the first time. -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Rudy Gevaert [EMAIL PROTECTED] tel:+32 9 264 4734 Directie ICT, afd. Infrastructuur ICT Department, Infrastructure office Groep SystemenSystems group Universiteit Gent Ghent University Krijgslaan 281, gebouw S9, 9000 Gent, Belgie www.UGent.be -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --