e2fsprogs/debian/initrd-tools.e2fsprogs
Theodore Ts'o 8667f7a211 Filter out linux-gate.so, which is a pseudo entry for the 32->64bit
translation for amd64 systems, in the initrd creation script.
(Addresses Debian bug #253595)
2004-09-19 07:15:30 -04:00

25 lines
538 B
Bash

#!/bin/sh
#
# /usr/share/initrd-tools/scripts/e2fsprogs
#
cp /usr/share/e2fsprogs/initrd.ext3-add-journal \
$INITRDDIR/scripts/ext3-add-journal.sh
cp /sbin/tune2fs $INITRDDIR/sbin
cp /usr/lib/e2initrd_helper $INITRDDIR/bin/e2initrd_helper
case "$VERSION" in
2.4.*)
LD_ASSUME_KERNEL=2.4
export LD_ASSUME_KERNEL
;;
esac
PROGS="/sbin/tune2fs /usr/lib/e2initrd_helper"
LIBS=`ldd $PROGS | grep -v linux-gate.so | sort -u | \
awk '{print $3}'`
for i in $LIBS
do
mkdir -p `dirname $INITRDDIR/$i`
cp $i $INITRDDIR/$i
done