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 User

 
 
LinkBack Thread Tools
 
Old 01-05-2010, 09:02 AM
Ales Kozumplik
 
Default Include depmod in stage1 and set it to prefer the DD directory

On 12/21/2009 04:21 PM, Martin Sivak wrote:

---
scripts/mk-images | 7 ++++++-
scripts/upd-instroot | 1 +
2 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/scripts/mk-images b/scripts/mk-images
index c3b1686..fd4ab11 100755
--- a/scripts/mk-images
+++ b/scripts/mk-images
@@ -328,6 +328,11 @@ makemoduletree() {
esac
done

+ # create depmod.conf to support DDs
+ cat> $MMB_DIR/etc/depmod.conf<< EOF
+search /tmp/DD/lib/modules built-in
+EOF
+
# clean up leftover cruft
find -H $MMB_DIR/lib/modules -type d -exec rmdir -f {} ; 2>/dev/null
$MODLIST --modinfo-file $MODINFO --ignore-missing --modinfo
@@ -808,7 +813,7 @@ makeinitrd() {

makeproductfile $MBD_DIR

- for n in insmod rmmod modprobe; do
+ for n in insmod rmmod modprobe depmod; do
instbin $IMGPATH /usr/sbin/$n $MBD_DIR /sbin/$n
done

diff --git a/scripts/upd-instroot b/scripts/upd-instroot
index 2a79ebf..8539cdd 100755
--- a/scripts/upd-instroot
+++ b/scripts/upd-instroot
@@ -780,6 +780,7 @@ sbin/insmod
sbin/lsmod
sbin/modinfo
sbin/modprobe
+sbin/depmod
sbin/netstat
sbin/restore
sbin/rrestore


ACK, if you haven't tried making a build with the modified scripts then
let's hope it won't break it.


_______________________________________________
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 09:55 PM.

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