summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormaximilian attems <max@stro.at>2010-12-28 21:28:00 +0100
committermaximilian attems <max@stro.at>2011-02-23 18:12:38 +0100
commit08d4895152e45ba1c4c645910b26dc8c0b214b75 (patch)
treef70db5014652effff977e86287c9fd75a05b6953
parent6cab0eccd015a443157c83643ec5aff9505bdc23 (diff)
initramfs-tools: Remove mkinitramfs-kpkg
This is an unused old mkinitramfs wrapper. These days update-initramfs is to be called. No point in keeping that old thing around, as it shouldn't be used anymore since Lenny. Closes: #502792 Signed-off-by: maximilian attems <max@stro.at> Reviewed-by: Michael Prokop <mika@debian.org>
-rw-r--r--debian/initramfs-tools.install1
-rw-r--r--debian/initramfs-tools.manpages1
-rwxr-xr-xmkinitramfs-kpkg102
-rw-r--r--mkinitramfs-kpkg.852
4 files changed, 0 insertions, 156 deletions
diff --git a/debian/initramfs-tools.install b/debian/initramfs-tools.install
index 184837f..25d7990 100644
--- a/debian/initramfs-tools.install
+++ b/debian/initramfs-tools.install
@@ -1,6 +1,5 @@
lsinitramfs usr/bin
mkinitramfs usr/sbin
-mkinitramfs-kpkg usr/sbin
init usr/share/initramfs-tools
scripts usr/share/initramfs-tools
conf/initramfs.conf etc/initramfs-tools
diff --git a/debian/initramfs-tools.manpages b/debian/initramfs-tools.manpages
index 6d78d4c..d56d0bd 100644
--- a/debian/initramfs-tools.manpages
+++ b/debian/initramfs-tools.manpages
@@ -1,6 +1,5 @@
lsinitramfs.8
mkinitramfs.8
-mkinitramfs-kpkg.8
initramfs.conf.5
initramfs-tools.8
update-initramfs.8
diff --git a/mkinitramfs-kpkg b/mkinitramfs-kpkg
deleted file mode 100755
index 6beaad5..0000000
--- a/mkinitramfs-kpkg
+++ /dev/null
@@ -1,102 +0,0 @@
-#!/bin/sh
-set -eu
-
-STATEDIR=/var/lib/initramfs-tools
-supported_host_version=""
-supported_target_version=""
-outfile=""
-
-# FIXME: drop script after Lenny (needed for Etch linux-images)
-
-usage()
-{
- cat >&2 << EOF
-
-Usage: ${0} <-o outfile> [version]
-
-Please use update-initramfs(8):
-${0} exists for compatibility by kernel-package(5) calls.
-See mkinitramfs-kpkg(8) for further details.
-EOF
- exit 1
-}
-
-OPTIONS=`getopt -o m:o: --long supported-host-version:,supported-target-version: -n "$0" -- "$@"`
-# Check for non-GNU getopt
-if [ $? != 0 ] ; then echo "Terminating..." >&2 ; exit 1 ; fi
-
-eval set -- "$OPTIONS"
-
-while true; do
- case "$1" in
- -m)
- # ignore
- shift 2
- ;;
- -o)
- touch $2
- outfile="$(readlink -f "$2")"
- shift 2
- ;;
- --supported-host-version)
- supported_host_version="$2"
- shift 2
- ;;
- --supported-target-version)
- supported_target_version="$2"
- shift 2
- ;;
- --)
- shift
- break
- ;;
- *)
- echo "Internal error!" >&2
- exit 1
- ;;
- esac
-done
-
-if [ -n "$supported_host_version" ] || [ -n "$supported_target_version" ]; then
- if [ -n "$supported_host_version" ]; then
- host_upstream_version="${supported_host_version%%-*}"
- fi
- if [ -n "$supported_target_version" ]; then
- target_upstream_version="${supported_target_version%%-*}"
- if dpkg --compare-versions "$target_upstream_version" lt "2.6.12"; then
- exit 2
- fi
- fi
- exit 0
-fi
-
-
-if [ -z "${outfile}" ]; then
- usage
-fi
-
-# And by "version" we really mean path to kernel modules
-# This is braindead, and exists to preserve the interface with mkinitrd
-version="${1}"
-
-case "${version}" in
-/lib/modules/*/[!/]*)
- ;;
-/lib/modules/[!/]*)
- version="${version#/lib/modules/}"
- version="${version%%/*}"
- ;;
-esac
-
-case "${version}" in
-*/*)
- echo "$PROG: ${version} is not a valid kernel version" >&2
- exit 1
- ;;
-esac
-
-echo "Deprecation WARNING: use update-initramfs(8)" >&2
-
-# linux-image installs latest version
-mkinitramfs -o ${outfile} ${version}
-sha1sum "${outfile}" | sed -e 's/\.new//' > "${STATEDIR}/${version}"
diff --git a/mkinitramfs-kpkg.8 b/mkinitramfs-kpkg.8
deleted file mode 100644
index 0e8783e..0000000
--- a/mkinitramfs-kpkg.8
+++ /dev/null
@@ -1,52 +0,0 @@
-.TH MKINITRAMFS-KPKG 8 "2008/12/19" "Linux" "mkinitramfs-kpkg manual"
-
-.SH NAME
-mkinitramfs-kpkg \- generates an initramfs image for kernel-package
-
-.SH SYNOPSIS
-.B mkinitramfs
-.RB [ \-o
-.IR outfile ]
-.RI [ version ]
-.B mkinitramfs
-.RB [ \-\-supported-host-version=
-.IR hversion ]
-.RB [ \-\-supported-target-version=
-.IR tversion ]
-
-.SH DESCRIPTION
-The
-.B mkinitramfs-kpkg
-script calls
-.B mkinitramfs
-as wrapper script for kernel-package. It preservers the old mkinitrd calling
-conventions. It's usage is not recommended.
-See
-.B update-initramfs (8)
-for an better alternative.
-
-.SH OPTIONS
-
-.TP
-\fB \-o \fI outfile
-Write the image to
-.IR outfile .
-
-.TP
-\fB\-\-supported-host-version=\fIhversion
-This option queries if mkinitramfs can create ramdisks on a running kernel of version
-.IR hversion .
-
-.TP
-\fB\-\-supported-target-version=\fItversion
-This option queries if mkinitramfs can create ramdisks for kernel version
-.IR tversion .
-
-.SH AUTHOR
-mkinitramfs-kpkg is maintained by Maximilian Attems <maks@debian.org>.
-
-.SH SEE ALSO
-.BR
-.IR initramfs.conf (5),
-.IR initramfs-tools (8),
-.IR update-initramfs (8).