diff options
author | Antoine Ginies <aginies@mandriva.com> | 2007-10-25 13:29:56 +0000 |
---|---|---|
committer | Antoine Ginies <aginies@mandriva.com> | 2007-10-25 13:29:56 +0000 |
commit | 377e84d138f70afd3e724bc1d9dda2a67f80a99d (patch) | |
tree | 9dbcf353050898f83d3a963b3b1d4b62919647aa /rescue/tree/ka/make_initrd | |
parent | 746787a1a03b9b30307036107884b60019294a5a (diff) | |
download | drakx-377e84d138f70afd3e724bc1d9dda2a67f80a99d.tar drakx-377e84d138f70afd3e724bc1d9dda2a67f80a99d.tar.gz drakx-377e84d138f70afd3e724bc1d9dda2a67f80a99d.tar.bz2 drakx-377e84d138f70afd3e724bc1d9dda2a67f80a99d.tar.xz drakx-377e84d138f70afd3e724bc1d9dda2a67f80a99d.zip |
remove obsolete files
Diffstat (limited to 'rescue/tree/ka/make_initrd')
-rwxr-xr-x | rescue/tree/ka/make_initrd | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/rescue/tree/ka/make_initrd b/rescue/tree/ka/make_initrd deleted file mode 100755 index 8f8a0492d..000000000 --- a/rescue/tree/ka/make_initrd +++ /dev/null @@ -1,44 +0,0 @@ -#!/bin/bash -echo Looking for default kernel -CHROOT=/mnt/disk -IMG=`cat $CHROOT/etc/lilo.conf | grep default | cut -d "=" -f 2 | sed -e 's/\"//g'` -KERN="x" -INITRD="" -LABEL="x" - -modprobe loop - -for i in `cat $CHROOT/etc/lilo.conf`; do - - if echo $i | grep image >/dev/null; then - KERN=$CHROOT`echo $i | cut -d "=" -f 2` - INITRD="" - LABEL="x" - fi - if echo $i | grep label >/dev/null; then - LABEL=`echo $i | cut -d "=" -f 2 | sed -e 's/\"//g'` - fi - if echo $i | grep initrd >/dev/null; then - INITRD=`echo $i | cut -d "=" -f 2` - fi - if [ ${LABEL} == ${IMG} ] && [ ! -z ${INITRD} ]; then - echo "Kernel name is $KERN" - echo "Initrd name is $INITRD" - KERN_VERSION=`/usr/bin/strings $KERN | grep "^2\.[2.6]"| cut -d " " -f 1` - if [ -z $KERN_VERSION ]; then - echo "No kernel version found !" - fi - chroot $CHROOT mount /proc - mount /dev/ $CHROOT/dev -o bind -# chroot $CHROOT MAKEDEV loop -# chroot $CHROOT MAKEDEV fd -# chroot $CHROOT MAKEDEV hd -# chroot $CHROOT MAKEDEV sd -# chroot $CHROOT MAKEDEV md -# chroot $CHROOT MAKEDEV zero - chroot $CHROOT /sbin/mkinitrd -f $INITRD $KERN_VERSION - umount $CHROOT/dev - chroot $CHROOT umount /proc - exit - fi -done |