FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo Portage Developer

 
 
LinkBack Thread Tools
 
Old 12-01-2008, 08:26 PM
David Cantrell
 
Default Use modules.* files for finding modules of a type rather than modinfo

Jeremy Katz wrote:
> Use the modules.* files for finding modules of a type rather than the
> modinfo and then pull in drm modules using it rather than
> having to explicitly list them. (#446126)
> ---
> scripts/mk-images | 14 +++++++++++---
> 1 files changed, 11 insertions(+), 3 deletions(-)
>
> diff --git a/scripts/mk-images b/scripts/mk-images
> index 3b480cb..a405df7 100755
> --- a/scripts/mk-images
> +++ b/scripts/mk-images
> @@ -117,8 +117,7 @@ LVMMODS="dm-mod dm-zero dm-snapshot dm-mirror dm-multipath dm-round-robin dm-cry
> RAIDMODS="raid0 raid1 raid5 raid6 raid456 raid10 linear"
> CRYPTOMODS="sha256_generic cbc xts lrw aes_generic crypto_blkcipher crc32c ecb arc4"
> PCMCIASOCKMODS="yenta_socket i82365 tcic pcmcia"
> -DRMMODS="drm i810 i830 i915 mga nouveau r128 radeon savage sis tdfx via"
> -INITRDMODS="$USBMODS $FIREWIREMODS $IDEMODS $SCSIMODS $FSMODS $LVMMODS $RAIDMODS $CRYPTOMODS $COMMONMODS $PCMCIASOCKMODS $DRMMODS $SDMODS =scsi =net"
> +INITRDMODS="$USBMODS $FIREWIREMODS $IDEMODS $SCSIMODS $FSMODS $LVMMODS $RAIDMODS $CRYPTOMODS $COMMONMODS $PCMCIASOCKMODS $SDMODS =scsi =net =drm"
>
> . $(dirname $0)/buildinstall.functions
>
> @@ -261,7 +260,16 @@ expandModuleSet() {
> char=$(echo $name | cut -c1)
> if [ $char = '=' ]; then
> NAME=$(echo $name | cut -c2-)
> - SET="$SET $($MODLIST --modinfo-file $MODINFO $NAME)"
> + if [ "$NAME" = "ata" ]; then
> + SET="$SET $(cat $MBD_DIR/lib/modules/$kernel/modules.block |egrep '(ata|ahci)' |sed -e 's/.ko//')"
> + elif [ "$NAME" = "scsi" ]; then
> + SET="$SET $(cat $MBD_DIR/lib/modules/$kernel/modules.block) |sed -e 's/.ko//')"
> + else
> + # Ignore if group list does not exist
> + if [ -e $MBD_DIR/lib/modules/$kernel/modules.$NAME ]; then
> + SET="$SET $(cat $MBD_DIR/lib/modules/$kernel/modules.$NAME |sed -e 's/.ko//')"
> + fi
> + fi
> else
> SET="$SET $name"
> fi

Looks good.

--
David Cantrell <dcantrell@redhat.com>
Red Hat / Honolulu, HI

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 03:23 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org