Re: Wheezy and Multi-Arch...
> On Wed, 6 Mar 2013 21:19:57 +0100, Thomas Neumann > said: > On Wednesday, March 06, 2013 09:03:13 PM Thomas Lange wrote: >> What about this hook? A hook called updatebase.AMD64 containing >> >> $ROOTCMD dpkg --add-architecture i386 >> $ROOTCMD apt-get update > It feels wrong to me. Couldn't really put my finger on it at first, but now I'm > pretty sure the right place is actually prepareapt for fai 3.x or repository > for fai 4.x. hook/updatebase.whatever is the right choise. The hook is executed before task update is called, so you will add the architecture not too early. But you're right, we can omit calling apt-get update, since it's already done in task updatebase. -- regards Thomas
Re: Wheezy and Multi-Arch...
Hi Thomas & Thomas, > > What about this hook? A hook called updatebase.AMD64 containing > > > > $ROOTCMD dpkg --add-architecture i386 > > $ROOTCMD apt-get update > > It feels wrong to me. Couldn't really put my finger on it at first, but now > I'm > pretty sure the right place is actually prepareapt for fai 3.x or repository > for fai 4.x. Because that's what it really is. It's just another repository / > source. As a bonus this would avoid having to call 'update' manually, since > the 'updatebase' task would call it anyway. that sounds good, avoiding two calls of "update" would probably increase installing a bit although the update is now for amd64 and i386. And with repository.AMD64 I do not have to take care of problems if I try to install another architecture than amd64. Best regards and thanks for the tips Dirk -- +--+ | Dr. Dirk Geschke / Plankensteinweg 61/ 85435 Erding| | Telefon: 08122-559448 / Mobil: 0176-96906350 / Fax: 08122-9818106 | | d...@geschke-online.de / d...@lug-erding.de / kont...@lug-erding.de | +--+
Re: Wheezy and Multi-Arch...
On Wednesday, March 06, 2013 09:03:13 PM Thomas Lange wrote: > What about this hook? A hook called updatebase.AMD64 containing > > $ROOTCMD dpkg --add-architecture i386 > $ROOTCMD apt-get update It feels wrong to me. Couldn't really put my finger on it at first, but now I'm pretty sure the right place is actually prepareapt for fai 3.x or repository for fai 4.x. Because that's what it really is. It's just another repository / source. As a bonus this would avoid having to call 'update' manually, since the 'updatebase' task would call it anyway.
Re: Wheezy and Multi-Arch...
What about this hook? A hook called updatebase.AMD64 containing $ROOTCMD dpkg --add-architecture i386 $ROOTCMD apt-get update -- regards Thomas
Re: Wheezy and Multi-Arch...
Hi Thomas, > > when using amd64 it is also possible to use the new Multi-Arch > > architecture bei appending a :i386 to the packages to be installed. > > > > But first one has to execute a > > > >dpkg --add-architecture i386 > > > > and do an > > > >apt-get update > > > > Has anyone an idea where the best place in FAI is to do this? > > 'instsoft' sounds pretty reasonable -> hooks/instsoft. ah, yes, that sounds good, it is early enough to install i386 packages via package_config. I will give it a try Best regards Dirk -- +--+ | Dr. Dirk Geschke / Plankensteinweg 61/ 85435 Erding| | Telefon: 08122-559448 / Mobil: 0176-96906350 / Fax: 08122-9818106 | | d...@geschke-online.de / d...@lug-erding.de / kont...@lug-erding.de | +--+
Re: Wheezy and Multi-Arch...
On Wednesday 06 March 2013 15:15:48 Dirk Geschke wrote: > when using amd64 it is also possible to use the new Multi-Arch > architecture bei appending a :i386 to the packages to be installed. > > But first one has to execute a > >dpkg --add-architecture i386 > > and do an > >apt-get update > > Has anyone an idea where the best place in FAI is to do this? 'instsoft' sounds pretty reasonable -> hooks/instsoft.
Wheezy and Multi-Arch...
Hi all, when using amd64 it is also possible to use the new Multi-Arch architecture bei appending a :i386 to the packages to be installed. But first one has to execute a dpkg --add-architecture i386 and do an apt-get update Has anyone an idea where the best place in FAI is to do this? Would the class-directory the best place for something like this: = FOREIGN=`dpkg --print-foreign-architectures` if [ xi386 != x$FOREIGN ] then dpkg --add-architecture i386 apt-get update fi = Or are the better places / other recommendations? Best regards Dirk, just trying to get a 32-bit iceweasel running on amd64... -- +--+ | Dr. Dirk Geschke / Plankensteinweg 61/ 85435 Erding| | Telefon: 08122-559448 / Mobil: 0176-96906350 / Fax: 08122-9818106 | | d...@geschke-online.de / d...@lug-erding.de / kont...@lug-erding.de | +--+