Re: d-i, pulling in fdisk-udeb
On Tue, Sep 30, 2003 at 11:07:37PM +0200, Geert Stappers wrote:
> On Tue, Sep 30, 2003 at 06:59:05PM +0100, Richard Hirst wrote:
> > Hi,
> > For hppa I need fdisk-udeb pulled in when d-i runs. parted cannot be
> > used to partition for hppa because we need a partition for palo of type
> > 'f0', and parted doesn't let you specify partition types (didn't last
> > time I looked anyway). At the moment I have to specifically request
> > that installer module in the "load installer modules" menu item.
> >
> > How should I make fdisk-udeb get pulled in automatically? I could make
> > palo-installer depend on it, I guess, but that doesn't sound very
> > logical as palo doesn't really care which partitioner is used provided
> > it creates the right partitions.
>
> In build/Makefile is this code:
>
> |# Build the driver floppy image
> |$(EXTRA_TARGETS) : %-stamp : $(TYPE)-get_udebs-stamp
> | mkdir -p ${TEMP}/$*
> | for file in $(shell grep --no-filename -v ^\# pkg-lists/$*/common \
> | `if [ -f pkg-lists/$*/$(DEB_HOST_ARCH) ]; then echo pkg-lists/$*/$(DEB_HOST_ARCH); fi` \
> | | sed -e 's/^\(.*\)$${kernel:Version}\(.*\)$$/$(foreach VERSION,$(KERNELIMAGEVERSION),\1$(VERSION)\2\n)/g' ) ; do \
> | cp $(EXTRAUDEBDIR)/$$file* ${TEMP}/$* ; \
> | echo $$file >> ${TEMP}/$*/udeb_include; \
> | done
> | touch $@
>
> It generates "udeb_include" from files under build/pkg-lists
> I have not yet played with it, but that is where I would start
> adding udebs.
Hmm, I could add fdisk-udeb to pkg-lists/*/hppa, but that would include
the udeb in the initrd image, rather than downloading it from the cdrom
or mirror at runtime along with the other d-i modules.
Richard
Reply to: