summaryrefslogtreecommitdiffstats
path: root/rescue/tree/ka/make_initrd
diff options
context:
space:
mode:
authorAntoine Ginies <aginies@mandriva.com>2004-04-03 12:57:25 +0000
committerAntoine Ginies <aginies@mandriva.com>2004-04-03 12:57:25 +0000
commit2683c67adfc63dfbd68a13f199c5929d2877c9e5 (patch)
treee2f9959ac6d4cd3d71ee6fe81f3ff2733f6ce629 /rescue/tree/ka/make_initrd
parent0f48a313c3597abd7573d87eeca5ca98588c8ecf (diff)
downloaddrakx-2683c67adfc63dfbd68a13f199c5929d2877c9e5.tar
drakx-2683c67adfc63dfbd68a13f199c5929d2877c9e5.tar.gz
drakx-2683c67adfc63dfbd68a13f199c5929d2877c9e5.tar.bz2
drakx-2683c67adfc63dfbd68a13f199c5929d2877c9e5.tar.xz
drakx-2683c67adfc63dfbd68a13f199c5929d2877c9e5.zip
remove file already in cluster/mdkc2 cvs branch
Diffstat (limited to 'rescue/tree/ka/make_initrd')
-rwxr-xr-xrescue/tree/ka/make_initrd49
1 files changed, 0 insertions, 49 deletions
diff --git a/rescue/tree/ka/make_initrd b/rescue/tree/ka/make_initrd
deleted file mode 100755
index d6f15a951..000000000
--- a/rescue/tree/ka/make_initrd
+++ /dev/null
@@ -1,49 +0,0 @@
-#!/bin/bash
-echo Looking for default kernel
-CHROOT=/mnt/disk
-IMG=`cat $CHROOT/etc/lilo.conf | grep default | cut -d "=" -f 2`
-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`
- 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=`strings $KERN | grep "^2\.[2.4]"| cut -d " " -f 1`
- if [ -z $KERN_VERSION ]; then
- echo "No kernel version found !"
- read
- fi
-
- chroot $CHROOT mount /proc
- 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 mkinitrd -f $INITRD $KERN_VERSION
- chroot $CHROOT umount /proc
-
- exit
- fi
-done