[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Fwd: Debian installer: partman-prep



Am Donnerstag, 23. Dezember 2004 07:23 schrieb Sven Luther:

[...]

> > 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+".
>
> Where did you find it ?
>
> > CPU=`grep '^cpu[[:space:]]*:' /proc/cpuinfo | cut -d: -f2 | sed 's/^ *//;
> > s/[, ].*//; q' | tr A-Z a-z`
> >
> > fixes the problem.
>
> archdetect is a C program, which fills a debconf variable, which others
> only need to query, and i believe that it is well probable that the above
> code should really not be used.

Just looked at the new version. It has changed in base-installer 1.14.
Ignore me ;-)

Cajus



Reply to: