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:
parent
03f32c3408
commit
24988196aa
6 changed files with 5 additions and 35 deletions
|
@ -19,14 +19,6 @@
|
|||
|
||||
MODULES=most
|
||||
|
||||
#
|
||||
# BUSYBOX: [ y | n ]
|
||||
#
|
||||
# Use busybox if available.
|
||||
#
|
||||
|
||||
BUSYBOX=y
|
||||
|
||||
#
|
||||
# KEYMAP: [ y | n ]
|
||||
#
|
||||
|
|
|
@ -18,6 +18,6 @@ esac
|
|||
. /usr/share/initramfs-tools/hook-functions
|
||||
|
||||
# from libblkid
|
||||
copy_exec /sbin/blkid.static /sbin/blkid
|
||||
copy_exec /sbin/blkid /sbin
|
||||
|
||||
exit 0
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
BUSYBOXDIR="/usr/lib/busybox-initramfs/bin"
|
||||
PREREQ=""
|
||||
|
||||
prereqs()
|
||||
|
@ -15,21 +16,7 @@ prereqs)
|
|||
;;
|
||||
esac
|
||||
|
||||
# Busybox
|
||||
. /etc/initramfs-tools/initramfs.conf
|
||||
|
||||
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
|
||||
. /usr/share/initramfs-tools/hook-functions
|
||||
copy_exec ${BUSYBOXDIR}/busybox /bin/busybox
|
||||
|
||||
exit 0
|
||||
|
|
|
@ -33,14 +33,6 @@ The default setting is \fImost\fP.
|
|||
\fIlist\fP includes only modules from the additional modules list to load them
|
||||
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
|
||||
\fB KEYMAP
|
||||
If set to 'y', the console keymap will be loaded during the initramfs stage.
|
||||
|
|
|
@ -8,7 +8,6 @@ keep="n"
|
|||
CONFDIR="/etc/initramfs-tools"
|
||||
verbose="n"
|
||||
errors_to="2>/dev/null"
|
||||
export BUSYBOXDIR="/usr/lib/busybox-initramfs/bin"
|
||||
|
||||
OPTIONS=`getopt -o d:ko:r:v -n "$0" -- "$@"`
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# Template file for 'initramfs-tools'
|
||||
pkgname=initramfs-tools
|
||||
version=0.94
|
||||
version=0.95
|
||||
build_style=custom-install
|
||||
short_desc="Tools for generating an initramfs"
|
||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||
|
|
Loading…
Reference in a new issue