Bug#282594: kernel-image-2.6.9-1-k7: Installation requires script mkext2fs which is not installed
Package: kernel-image-2.6.9-1-k7
Version: 2.6.9-2
Severity: important
On installation of this package, installation fails because it cannot
find mkext2fs.
A search on the net revealed the shell script attached below. Installing
this in /usr/local/sbin made the package installable.
(My system is latest debian unstable, installed a while ago from
Knoppix)
#!/bin/bash
# similar to mkcramfs (for use with debian mkinitrd)
# mkext2fs dirname outfile
#
# no options are parsed
#
# Written by: Fabian Franz <mkext2fs@fabian-franz.de>
# GPL v.2 - See: `locate gpl.txt`
if [ $# -lt 2 ]
then
echo "Usage: $(basename $0) dirname outfile"
exit 1
fi
TMPDIR=/tmp/$(basename $0).$$
mkdir $TMPDIR
function clean_exit
{
umount $TMPDIR 2>/dev/null
rm -rf $TMPDIR
}
trap clean_exit EXIT
COUNT=$[$(du -s $1 | awk '{ print $1 }' )*2+1000]
dd if=/dev/zero of=$TMPDIR/image count=$COUNT
mke2fs -F $TMPDIR/image
mount -o loop $TMPDIR/image $TMPDIR
cp -a $1/* $TMPDIR
umount $TMPDIR
cat $TMPDIR/image | gzip - > $2
-- System Information:
Debian Release: 3.1
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.9-1-k7
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Versions of packages kernel-image-2.6.9-1-k7 depends on:
ii coreutils [fileutils] 5.2.1-2 The GNU core utilities
ii fileutils 5.2.1-2 The GNU file management utilities
ii initrd-tools 0.1.74 tools to create initrd image for p
ii module-init-tools 3.1-rel-2 tools for managing Linux kernel mo
-- no debconf information
Reply to: