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 > Ubuntu > Ubuntu User

 
 
LinkBack Thread Tools
 
Old 12-05-2007, 10:23 PM
Bill Nottingham
 
Default If directories are in $KEEPFILES, copy them to the second stage as well.

This is occasionally needed for things such as directories in /etc or
/var.
---
scripts/upd-instroot | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/scripts/upd-instroot b/scripts/upd-instroot
index f67c09e..cfb13c3 100755
--- a/scripts/upd-instroot
+++ b/scripts/upd-instroot
@@ -144,6 +144,17 @@ instFile() {
done
}

+instDir() {
+ DIR=$1
+ DESTROOT=$2
+
+ echo "Installing $DIR"
+ if [ -d $DESTROOT/$DIR -o -h $DESTROOT/$DIR ]; then
+ return
+ fi
+ cp -a --parents $DIR $DESTROOT/
+}
+
expandPackageSet() {
YUMCONF=$1
YUMDIR=$2
@@ -182,6 +193,7 @@ expandPackageSet() {
instFile $filespec $PKGDEST
else
for i in `find $filespec -type f` ; do instFile $i $PKGDEST ; done
+ for d in `find $filespec -type d` ; do instDir $d $PKGDEST ; done
fi
done
done
--
1.5.3.4

_______________________________________________
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 07:56 AM.

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