Re: Multiarch nfsroot for multiarch install?
On 21.02.2014 12:46, Toomas Tamm wrote: [...] To wrap this up, if I am the first (and possibly only) person seeing this, and because I already have a workaround, let us leave it as-is, in the mailing list archives, in case someone else will encounter this in the future. I do not think I can afford spending more time debugging it. You are not the only one, I see the same problem here. Did a few re-installs, always the same error. Adding the packages manually is possible. This was FAI 4.0.8 and an updatebase.AMD64 hook. Since I added the i386 architecture to the nfsroot, acroread installs perfectly from the package_config definition. Thanks Toomas for reporting this! regards, Ralf -- Ralf Utermann _ Universität Augsburg, Institut für Physik -- EDV-Betreuer Universitätsstr.1 D-86135 Augsburg Phone: +49-821-598-3231 SMTP: ralf.uterm...@physik.uni-augsburg.de Fax: -3411
Re: Multiarch nfsroot for multiarch install?
Hi, Toomas Tamm wrote on 2014-02-20 20:18:03 +0200 [Multiarch nfsroot for multiarch install?]: [...] All this was done with stock FAI 4.0.6 from wheezy. Thomas Lange wrote on 2014-02-21 12:05:59 +0100 [Re: Multiarch nfsroot for multiarch install?]: [...] This works for me like a charm. Using FAI 4.1, there's the hook updatebase.DEBIANm which includes these lines: [...] Toomas Tamm wrote on 2014-02-21 13:46:05 +0200 [Re: Multiarch nfsroot for multiarch install?]: [...] Must be just me then :-). Possibly my config space contains (or is missing) something which is causing this behaviour. Or have you changed anything in install_packages recently, which might affect this? Might this be a change between 4.0.6 and 4.1? Just guessing here, but what you write ... [...] Just re-iterating what has been said before: the install, such as apt-get install acroread works, yes. But sub installable {} in /usr/sbin/install_packages fails to recognize the :i386 packages unless the architecture has been added into the nfsroot. ... doesn't sound right. The check would need to be done within the chroot (i.e. using only information from the chroot) in any case, otherwise installing a different distribution from that of the nfsroot would also not work (though things might have been more subtle, such as using some information from the chroot and some from the nfsroot). My guess would be that it might have been a bug that was fixed, perhaps even without being noticed :). Regards, Holger
Re: Multiarch nfsroot for multiarch install?
On Fri, Feb 21, 2014 at 12:05:59PM +0100, Thomas Lange wrote: When I remove these comments and also add acroread:i386 to my package_config file, acroread is installed without any problems. No need for calling add-architecture inside the nfsroot. Must be just me then :-). Possibly my config space contains (or is missing) something which is causing this behaviour. Or have you changed anything in install_packages recently, which might affect this? Are you sure? Well, I have spent half a working day trying to find a workaround, and done several test installs with extra printouts included, so I believe I have done sufficient homework. When I call dpkg --print-foreign-architectures on my install client during installation (that's inside the nfsroot) it prints nothing. So, no foreign architecture was added inside the nfsroot, but still my client installs acroread:i386 fine. Just re-iterating what has been said before: the install, such as apt-get install acroread works, yes. But sub installable {} in /usr/sbin/install_packages fails to recognize the :i386 packages unless the architecture has been added into the nfsroot. To wrap this up, if I am the first (and possibly only) person seeing this, and because I already have a workaround, let us leave it as-is, in the mailing list archives, in case someone else will encounter this in the future. I do not think I can afford spending more time debugging it. Regards, Toomas
Re: Multiarch nfsroot for multiarch install?
Hi, I use multi-arch support since quite some time and never got error or warning messages. Thats my script: echo Enable multiarch support $ROOTCMD dpkg --add-architecture i386 $ROOTCMD apt-get update $ROOTCMD apt-get install -y --force-yes ia32-libs echo Install Adobe Acrobat Reader and skype (32bit) # libcanberra and gtk2-engines are for acroread) $ROOTCMD apt-get install -y --force-yes acroread acroread-plugins skype libcanberra-gtk-module:i386 gtk2-engines:i386 Note: As both Skype and acroread are not available though apt on wheezy (at least I didnt find them there), I have downloaded both packages and placed them in a local package repo Regards René On 02/20/2014 07:18 PM, Toomas Tamm wrote: Hello! I was struggling with getting multiarch install to work as described in http://wiki.fai-project.org/wiki/Tips_and_tricks, section Debian wheezy and MuliArch [*] . Everything seemed to be done correctly, but FAI kept printing the message WARNING: These unknown packages are removed from the installation list: acroread:i386 I could even ssh into the system being installed and successfully complete apt-get install acroread, which made it even more puzzling. After some careful reading of the sources, I came to the conclusion that the dpkg --add-architecture i386 needs to be executed *both* in the nfsroot (without the $ROOTCMD prefix) as well as inside the chroot (that is, prefixed with $ROOTCMD). This is because the installable package list is checked by the /usr/sbin/install_packages script, apparently against the apt database from the nfsroot, not against the one in the install target. Later on, the actual install uses the apt database from the install target itself. I am not sure if this is a bug or a feature, but I would ask that the Wiki page be updated accordingly: #!/bin/bash echo Adding i386 multi-arch dpkg --add-architecture i386 $ROOTCMD dpkg --add-architecture i386 (Alternatively, I guess that one can chroot into the nfsroot directory on the FAI server and execute the dpkg --add-architecture i386 therein once and for all. I did not test this, however.) All this was done with stock FAI 4.0.6 from wheezy. [*] Note: please also fix the typo in MuliArch! Toomas Tamm
Re: Multiarch nfsroot for multiarch install?
On Thu, Feb 20, 2014 at 07:41:53PM +0100, René Bleisch wrote: echo Enable multiarch support $ROOTCMD dpkg --add-architecture i386 $ROOTCMD apt-get update $ROOTCMD apt-get install -y --force-yes ia32-libs Indeed, that would work, as my own experiments proved as well. What does not work is including the i386 package in one of the package_config files. Your case would correspond to: PACKAGES install ia32-libs:i386 -- Toomas