diff options
author | Bill Nottingham <notting@redhat.com> | 2005-09-09 04:52:18 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2005-09-09 04:52:18 +0000 |
commit | 5c90ff7b2b9e3486413d87dea2d26ff0e187a99f (patch) | |
tree | 970d581724573564c7962475bc0397f3b1a8df06 /scripts | |
parent | ec4a87597dc1d0f653b2e0574d57e55dbc727ddd (diff) | |
download | anaconda-5c90ff7b2b9e3486413d87dea2d26ff0e187a99f.tar.gz anaconda-5c90ff7b2b9e3486413d87dea2d26ff0e187a99f.tar.xz anaconda-5c90ff7b2b9e3486413d87dea2d26ff0e187a99f.zip |
* anaconda.spec: Bump version, tweak requirements
* installclass.py (setVideoCard, configureX): Adapt to new rhpl
X setup code
* kickstart.py (doXConfig): Likewise
* kickstartData.py (__init__): Likewise
* kickstartParser.py (doXConfig): Likewise
* packages.py (writeXConfiguration): Likewise
* xsetup.py (getArgList): Likewise
* scripts/mk-images: Remove modules.pcimap, modules.usbmap,
pcitable, from images, and associated trimmer scripts from
files used. Add modules.alias, videoaliases. Trim modules.alias
using trimmodalias.
* scripts/upd-instroot: Don't keep Cards, but keep videoaliases.
Don't run checkcards.py
* utils/trimmodalias: New script, trim modules.alias file to
match modules in the first/second stage
* utils/trimpciids: Trim pci.ids based on modules.alias and
videoaliases, not pcitable and modules.pcimap
* utils/checkcards.py: Remove now obsolete script
* utils/trimmodmap: Likewise
* utils/trimpcitable: Likewise
* utils/trimusbmap: Likewise
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/mk-images | 35 | ||||
-rwxr-xr-x | scripts/upd-instroot | 8 |
2 files changed, 12 insertions, 31 deletions
diff --git a/scripts/mk-images b/scripts/mk-images index 476a64ed7..808c7ec44 100755 --- a/scripts/mk-images +++ b/scripts/mk-images @@ -42,8 +42,7 @@ TOPDIR=$(cd $TOPDIR; pwd) IMGPATH=$4 KERNELBASE=/tmp/updboot.kernel.$$ MODDEPS=$KERNELBASE/moddeps - MODMAPS=$KERNELBASE/modules.pcimap - USBMAPS=$KERNELBASE/modules.usbmap + MODALIAS=$KERNELBASE/modules.alias BUILDARCH=$5 KERNELNAME=vmlinuz @@ -93,10 +92,8 @@ TOPDIR=$(cd $TOPDIR; pwd) mkdir -p $INSTIMGPATH # Stuff that we need - TRIMPCITABLE=$IMGPATH/usr/lib/anaconda-runtime/trimpcitable - TRIMMODMAP=$IMGPATH/usr/lib/anaconda-runtime/trimmodmap + TRIMMODALIAS=$IMGPATH/usr/lib/anaconda-runtime/trimmodalias TRIMPCIIDS=$IMGPATH/usr/lib/anaconda-runtime/trimpciids - TRIMUSBMAP=$IMGPATH/usr/lib/anaconda-runtime/trimusbmap GETKEYMAPS=$IMGPATH/usr/lib/anaconda-runtime/getkeymaps KEYMAPS=/tmp/keymaps-$BUILDARCH.$$ SCREENFONT=$IMGPATH/usr/lib/anaconda-runtime/screenfont-${BASEARCH}.gz @@ -107,15 +104,15 @@ TOPDIR=$(cd $TOPDIR; pwd) LOADERBINDIR=$IMGPATH/usr/lib/anaconda-runtime/loader BOOTDISKDIR=$IMGPATH/usr/lib/anaconda-runtime/boot LANGTABLE=$IMGPATH/usr/lib/anaconda/lang-table - PCITABLE=$IMGPATH/usr/share/hwdata/pcitable PCIIDS=$IMGPATH/usr/share/hwdata/pci.ids + XDRIVERS=$IMGPATH=/usr/share/hwdata/videoaliases CACHE=$KERNELBASE/.cache MODULESUSED=$KERNELBASE/modules-used touch $MODULESUSED - REQUIREMENTS="$TRIMPCITABLE $TRIMMODMAP $TRIMPCIIDS $PCITABLE $PCIIDS $GETMODDEPS $MODINFO - $FILTERMODDEPS $LANGTABLE $GETKEYMAPS $TRIMUSBMAP" + REQUIREMENTS="$TRIMMODALIAS $TRIMPCIIDS $PCIIDS $XDRIVERS $GETMODDEPS $MODINFO + $FILTERMODDEPS $LANGTABLE $GETKEYMAPS" dieLater= for n in $REQUIREMENTS; do @@ -181,8 +178,7 @@ rundepmod () { $FAKEARCH /sbin/depmod -a -F $KERNELROOT/boot/System.map-$version \ -b $KERNELROOT $version - mv $KERNELROOT/lib/modules/$version/modules.pcimap $MODMAPS - mv $KERNELROOT/lib/modules/$version/modules.usbmap $USBMAPS + mv $KERNELROOT/lib/modules/$version/modules.alias $MODALIAS cat $KERNELROOT/lib/modules/$version/modules.dep | $FILTERMODDEPS > $final } @@ -300,7 +296,7 @@ makemoduleball() { MMB_DIR=$1 MMB_MODULESET=$(resdeps $2) - rm -rf $MMB_DIR/modules $MMB_DIR/$MMB_NAME $MMB_DIR/modules.dep \ + rm -rf $MMB_DIR/modules $MMB_DIR/$MMB_NAME $MMB_DIR/modules.dep $MMB_DIR/modules.alias \ $MMB_DIR/modules.pcimap $MMB_DIR/pcitable $MMB_DIR/$MMB_MODINFO \ $MMB_DIR/pci.ids mkdir -p $MMB_DIR/modules @@ -314,21 +310,12 @@ makemoduleball() { getmoddeps "$(find . -name *.ko)" ../modules.dep - # create the pcitable - $TRIMPCITABLE ignore $(find . -name *.ko -exec basename {} \;) < $PCITABLE > ../pcitable + # create the modules.alias file + $TRIMMODALIAS $(find . -name *.ko -exec basename {} \;) < $MODALAIS > ../modules.alias - # create the modules.pcimap - $TRIMMODMAP $PCITABLE $(find . -name *.ko -exec basename {} \;) < $MODMAPS > ../modules.pcimap - - # create the modules.usbmap - $TRIMUSBMAP $(find . -name *.ko -exec basename {} \;) < $USBMAPS > ../modules.usbmap - # remove a zero-byte modules.usbmap - if [ "$(ls -s ../modules.usbmap |cut -f 1 -d ' ')" = "0" ]; then - rm -f ../modules.usbmap - fi - # create the pci.ids + # create the pci.ids, from modules.alias and the X driver aliases awk '!/^(\t\t|#)/ { print ;if ($0 == "ffff Illegal Vendor ID") nextfile; }' < $PCIIDS | \ - $TRIMPCIIDS ../pcitable ../modules.pcimap > ../pci.ids + $TRIMPCIIDS ../modules.alias $XDRIVERS > ../pci.ids if [ -n "$MMB_DD" ]; then echo $MMB_DD > $MMB_DIR/rhdd diff --git a/scripts/upd-instroot b/scripts/upd-instroot index e919888a0..fdd65a8d7 100755 --- a/scripts/upd-instroot +++ b/scripts/upd-instroot @@ -420,9 +420,8 @@ usr/share/terminfo/b/bterm usr/share/terminfo/l/linux usr/share/terminfo/v/vt100 usr/share/terminfo/v/vt100-nav -usr/share/hwdata/pcitable usr/share/hwdata/pci.ids -usr/share/hwdata/Cards +usr/share/hwdata/videoaliases usr/share/hwdata/MonitorsDB usr/share/rhpl/extramodes usr/share/rhpl/vesamodes @@ -1257,9 +1256,4 @@ if [ "$ARCH" != "s390" -a "$ARCH" != "s390x" ]; then rm -rf $DESTGR/usr/X11R6/lib/X11/xkb/compiled ln -s /tmp $DESTGR/usr/X11R6/lib/X11/xkb/compiled fi - - if [ -n "$NEEDGR" ]; then - cd $ORIGDIR - $DESTGR/usr/lib/anaconda-runtime/checkcards.py $DESTGR/usr/share/hwdata/pcitable $DESTGR/usr/share/hwdata/Cards - fi fi |