Am Mittwoch, 22. Dezember 2004 14:24 schrieb Colin Watson: > On Wed, Dec 22, 2004 at 01:40:20PM +0100, Cajus Pollmeier wrote: > > I've prepared a partman-prep package which should add support for PPC > > PReP boot partitions to the installer. The package has been forked from > > partman-palo. Now, short before testing, I'm wondering about the > > mechanism which takes care about loading this module. > > > > I've grep'ed through the complete installer source, but got stuck in > > the partman code. So - what do I have to do, that the partman-prep udeb > > gets loaded on installation time? > > Same as partman-newworld: Priority: standard is enough to have it > installed automatically. Make sure to use proper Architecture: and > XB-Subarchitecture: fields to make sure it's not installed where it's > inappropriate, and if necessary an isinstallable file in the control > area.
Ah - thanks for your answer. I didn't set the XB-Subarchitecture field, because it wasn't set in the control file. In case of the newworld example, I can't find where powermac_newworld comes from. What to do if I only want to have this loaded when using the pseries flavor added by me in the linux-kernel-di-powerpc's kernel-versions file? -- While looking for the way to set the correct subarch, I found that in base-installer's postinst, line 438 the CPU variable is filled by: CPU=`grep '^cpu[[:space:]]*:' /proc/cpuinfo | cut -d: -f2 | sed 's/^ *//; s/[, ].*//' | tr A-Z a-z` The following case doesn't seem to work with more than one CPU. In my case CPU contains "power4+ power4+". CPU=`grep '^cpu[[:space:]]*:' /proc/cpuinfo | cut -d: -f2 | sed 's/^ *//; s/[, ].*//; q' | tr A-Z a-z` fixes the problem. Cheers, Cajus