summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2000-03-30 16:24:23 +0000
committerMatt Wilson <msw@redhat.com>2000-03-30 16:24:23 +0000
commit4a96590d0dae9ba3fc057c49fc7676539520c503 (patch)
treeb6bd6a06f824861feb33b7f2e2a90d8e1fe4fe20 /scripts
parenta45bf6cd74b500821efd73da7ad49a54d3050ca5 (diff)
downloadanaconda-4a96590d0dae9ba3fc057c49fc7676539520c503.tar.gz
anaconda-4a96590d0dae9ba3fc057c49fc7676539520c503.tar.xz
anaconda-4a96590d0dae9ba3fc057c49fc7676539520c503.zip
seems to work with anaconda-runtime
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/upd-instroot59
1 files changed, 36 insertions, 23 deletions
diff --git a/scripts/upd-instroot b/scripts/upd-instroot
index c54084d26..f2534e990 100755
--- a/scripts/upd-instroot
+++ b/scripts/upd-instroot
@@ -3,24 +3,26 @@
ORIGDIR=`pwd`
STRIP=strip
+ARCH=`uname -m | sed -e 's/i.86/i386/'`
+
+if [ "$ARCH" = sparc64 ]; then
+ exec sparc32 $0 $*
+fi
+
NEEDGR=yes
if [ $(uname -m) = ia64 ]; then
NEEDGR=""
STRIP=echo
fi
-if [ -z "$1" -o ! -d "$1" ]; then
+LATEST="latest --arch $ARCH"
+
+if [ -z "$1" ]; then
echo "upd-instroot: updates instimage from a Red Hat RPMS directory"
echo "usage: $0 <packagedir>"
exit 1
fi
-ARCH=`uname -m | sed -e 's/i.86/i386/'`
-
-if [ "$ARCH" = sparc64 ]; then
- exec sparc32 $0 $*
-fi
-
HOMEDIR=`pwd`
# remove all non unused python files
@@ -47,6 +49,11 @@ prunePackageList() {
PACKAGEPATH=$1
PACKAGES="$2"
+ if [ -n "$LATEST" ]; then
+ $LATEST $PACKAGEPATH $PACKAGES
+ return
+ fi
+
PATTERN=""
PACKAGEFILES=""
for PKG in $PACKAGES; do
@@ -77,19 +84,16 @@ expandPackageSet() {
PACKAGEDIR=$1
-mkdir -p ../trees/hdimage
-cd ../trees/hdimage
-DEST=$PWD
-cd -
+rm -rf /tmp/upd-instroot
+DEST=/tmp/upd-instroot/hd
+mkdir -p $DEST
-mkdir -p ../../../RedHat/instimage
-cd ../../../RedHat/instimage
-DESTGR=$PWD
-cd -
+DESTGR=/tmp/upd-instroot/gr
+mkdir -p $DESTGR
PACKAGES="glibc ldconfig setup python newt libtermcap zlib ash e2fsprogs
util-linux raidtools locale-ja popt mount procps rpm XFree86
- Xconfigurator"
+ Xconfigurator anaconda anaconda-runtime kudzu-devel kudzu"
if [ $ARCH = i386 ]; then
PACKAGES="$PACKAGES kernel-pcmcia-cs"
@@ -168,6 +172,12 @@ lib/libss*
lib/libuuid*
usr/X11R6/lib/X11/Cards
usr/X11R6/share/Xconfigurator/MonitorsDB
+usr/lib/anaconda/*
+usr/lib/anaconda/textw/*
+usr/lib/anaconda-runtime/*
+usr/sbin/anaconda
+usr/lib/python1.5/site-packages/kudzumodule.so
+usr/share/kudzu/pcitable
EOF
KEEPFILEGR=/tmp/keepfilegr.$$
@@ -347,6 +357,11 @@ usr/bin/tac
usr/bin/uniq
usr/sbin/chroot
usr/sbin/traceroute
+usr/lib/anaconda/iw
+usr/share/locale/*/LC_MESSAGES/anaconda.mo
+usr/share/anaconda/*
+usr/share/anaconda/help/*/*
+usr/share/anaconda/pixmaps/*
EOF
TIMEZONES="
@@ -411,11 +426,6 @@ fi
rm -f $KEEPFILE $KEEPFILEGR
-echo "Installing anaconda..."
-make install-hd DESTDIR=$DEST > /dev/null
-rm -rf $DEST/usr/share/locale
-make install DESTDIR=$DESTGR > /dev/null
-
echo -n "Scrubbing trees..."
for p in $DEST $DESTGR; do
echo -n -e "\rScrubbing trees..." "$p"
@@ -423,6 +433,9 @@ for p in $DEST $DESTGR; do
ln -s ../lib/anaconda/raidstart-stub $p/usr/bin/raidstart
ln -s ../lib/anaconda/raidstop-stub $p/usr/bin/raidstop
+ mv $p/usr/sbin/anaconda $p/usr/bin/anaconda
+ mv $p/usr/lib/anaconda-runtime/lib* $p/usr/lib
+
find $p -type d | xargs chmod 755
if [ -f $p/bin/bash ]; then
@@ -542,9 +555,9 @@ echo "Compressing ramdisk install images..."
ls [a-r]* | cpio --quiet -H crc -o | gzip -9 > sbin.cgz
rm -f [a-r]*
- cp -a $HOMEDIR/anaconda-stub $DEST/usr/bin/anaconda
+ mv $DEST/usr/lib/anaconda-runtime/anaconda-stub $DEST/usr/bin/anaconda
if [ -n "$NEEDGR" ]; then
cd $ORIGDIR
- utils/checkcards.py $DESTGR/usr/share/kudzu/pcitable $DESTGR/usr/X11R6/lib/X11/Cards
+ $DESTGR/usr/lib/anaconda-runtime/checkcards.py $DESTGR/usr/share/kudzu/pcitable $DESTGR/usr/X11R6/lib/X11/Cards
fi