initramfs-tools: update to 0.95.

- busybox is mandatory, so you cannot disable it.
- create /bin/sh as symlink to busybox.
- use shared bins by default, this saves a few KBs.

--HG--
extra : convert_revision : 3c2adcee730822e2b88f08089a96e44769369b9b
This commit is contained in:
Juan RP 2009-12-20 21:18:10 +01:00
parent 03f32c3408
commit 24988196aa
6 changed files with 5 additions and 35 deletions

View file

@ -19,14 +19,6 @@
MODULES=most MODULES=most
#
# BUSYBOX: [ y | n ]
#
# Use busybox if available.
#
BUSYBOX=y
# #
# KEYMAP: [ y | n ] # KEYMAP: [ y | n ]
# #

View file

@ -18,6 +18,6 @@ esac
. /usr/share/initramfs-tools/hook-functions . /usr/share/initramfs-tools/hook-functions
# from libblkid # from libblkid
copy_exec /sbin/blkid.static /sbin/blkid copy_exec /sbin/blkid /sbin
exit 0 exit 0

View file

@ -1,5 +1,6 @@
#!/bin/sh #!/bin/sh
BUSYBOXDIR="/usr/lib/busybox-initramfs/bin"
PREREQ="" PREREQ=""
prereqs() prereqs()
@ -15,21 +16,7 @@ prereqs)
;; ;;
esac esac
# Busybox . /usr/share/initramfs-tools/hook-functions
. /etc/initramfs-tools/initramfs.conf copy_exec ${BUSYBOXDIR}/busybox /bin/busybox
if [ "${BUSYBOX}" = "n" ] || [ ! -e ${BUSYBOXDIR}/busybox ]; then
# those root need busybox
eval "$(mount | awk '/ \/ / {print "r_dev=" $1; exit}')"
if [ "${r_dev#/dev/mapper/}" != "${r_dev}" ]; then
echo "Warning: Busybox is required for successful boot!"
fi
else
. /usr/share/initramfs-tools/hook-functions
rm -f ${DESTDIR}/bin/sh
rm -f ${DESTDIR}/bin/busybox
copy_exec ${BUSYBOXDIR}/busybox /bin/busybox
ln -s ${BUSYBOXDIR}/busybox ${DESTDIR}/bin/sh
fi
exit 0 exit 0

View file

@ -33,14 +33,6 @@ The default setting is \fImost\fP.
\fIlist\fP includes only modules from the additional modules list to load them \fIlist\fP includes only modules from the additional modules list to load them
early. early.
.TP
\fB BUSYBOX
Include busybox utilities for the boot scripts.
If set to 'n'
.B mkinitramfs
will build an initramfs without busybox.
Beware that many boot scripts need busybox utilities.
.TP .TP
\fB KEYMAP \fB KEYMAP
If set to 'y', the console keymap will be loaded during the initramfs stage. If set to 'y', the console keymap will be loaded during the initramfs stage.

View file

@ -8,7 +8,6 @@ keep="n"
CONFDIR="/etc/initramfs-tools" CONFDIR="/etc/initramfs-tools"
verbose="n" verbose="n"
errors_to="2>/dev/null" errors_to="2>/dev/null"
export BUSYBOXDIR="/usr/lib/busybox-initramfs/bin"
OPTIONS=`getopt -o d:ko:r:v -n "$0" -- "$@"` OPTIONS=`getopt -o d:ko:r:v -n "$0" -- "$@"`

View file

@ -1,6 +1,6 @@
# Template file for 'initramfs-tools' # Template file for 'initramfs-tools'
pkgname=initramfs-tools pkgname=initramfs-tools
version=0.94 version=0.95
build_style=custom-install build_style=custom-install
short_desc="Tools for generating an initramfs" short_desc="Tools for generating an initramfs"
maintainer="Juan RP <xtraeme@gmail.com>" maintainer="Juan RP <xtraeme@gmail.com>"