/[smeserver]/rpms/mkinitrd/sme8/mkinitrd-5.1.19.6-installkernel.patch
ViewVC logotype

Contents of /rpms/mkinitrd/sme8/mkinitrd-5.1.19.6-installkernel.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download)
Thu Dec 20 18:36:32 2007 UTC (16 years, 11 months ago) by slords
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
FILE REMOVED
No longer needed

1 --- installkernel.orig 2007-04-26 09:46:08.000000000 -0400
2 +++ installkernel 2007-04-26 09:49:53.000000000 -0400
3 @@ -16,6 +16,8 @@ if [ -z "$INSTALL_PATH" -o "$INSTALL_PAT
4 cfgLoader=1
5 fi
6
7 +LINK_PATH=/boot
8 +RELATIVE_PATH=`echo "$INSTALL_PATH/" | sed "s|^$LINK_PATH/||"`
9 KERNEL_VERSION=$1
10 BOOTIMAGE=$2
11 MAPFILE=$3
12 @@ -41,8 +43,6 @@ if [ ! -L $INSTALL_PATH/$KERNEL_NAME ];
13 fi
14 fi
15
16 -ln -sf $KERNEL_NAME-$KERNEL_VERSION $INSTALL_PATH/$KERNEL_NAME
17 -
18 if [ -f $INSTALL_PATH/System.map-$KERNEL_VERSION ]; then
19 mv $INSTALL_PATH/System.map-$KERNEL_VERSION \
20 $INSTALL_PATH/System.map-$KERNEL_VERSION.old;
21 @@ -53,13 +53,13 @@ if [ ! -L $INSTALL_PATH/System.map ]; th
22 mv $INSTALL_PATH/System.map $INSTALL_PATH/System.map.old
23 fi
24 fi
25 -ln -sf System.map-$KERNEL_VERSION $INSTALL_PATH/System.map
26 +ln -sf ${RELATIVE_PATH}$INSTALL_PATH/System.map-$KERNEL_VERSION $LINK_PATH/System.map
27
28 cat $BOOTIMAGE > $INSTALL_PATH/$KERNEL_NAME-$KERNEL_VERSION
29 cp $MAPFILE $INSTALL_PATH/System.map-$KERNEL_VERSION
30
31 -ln -fs $KERNEL_NAME-$KERNEL_VERSION $INSTALL_PATH/$KERNEL_NAME
32 -ln -fs System.map-$KERNEL_VERSION $INSTALL_PATH/System.map
33 +ln -fs ${RELATIVE_PATH}$INSTALL_PATH/$KERNEL_NAME-$KERNEL_VERSION $LINK_PATH/$KERNEL_NAME
34 +ln -fs ${RELATIVE_PATH}$INSTALL_PATH/System.map-$KERNEL_VERSION $LINK_PATH/System.map
35
36 if [ -n "$cfgLoader" -a -x /sbin/new-kernel-pkg ]; then
37 /sbin/new-kernel-pkg --mkinitrd --depmod --install $KERNEL_VERSION

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed