mirror of
https://salsa.debian.org/kernel-team/initramfs-tools.git
synced 2026-01-27 09:54:35 +00:00
mkinitramfs: No need to warn about md-root busybox dep.
don't warn about md-root need busybox: it doesn't anymore. We believed mdadm needs busybox in initramfs, but it has been fixed long ago. Signed-off-by: Michael Tokarev <mjt@tls.msk.ru> Signed-off-by: maximilian attems <max@stro.at> Reviewed-by: Michael Prokop <mika@debian.org>
This commit is contained in:
parent
20c43ceb10
commit
ec83abdfdc
@ -16,13 +16,7 @@ prereqs)
|
||||
esac
|
||||
|
||||
# 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 "W: Busybox is required for successful boot!"
|
||||
fi
|
||||
else
|
||||
if [ "${BUSYBOX}" != "n" ] && [ -e ${BUSYBOXDIR}/busybox ]; then
|
||||
. /usr/share/initramfs-tools/hook-functions
|
||||
rm -f ${DESTDIR}/bin/sh
|
||||
rm -f ${DESTDIR}/bin/busybox
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user