Files
void-packages/templates/initramfs-tools/files/hooks/busybox
Juan RP 81987c3df3 initramfs-tools: update to 0.93.3.
* Add radeon/i915 drivers if MODULES=most, for KMS.
* Remove blkid, busybox, klibc and module-init-tools stuff into
  its own hooks.
* Fix init-premount/blacklist script, all files in /etc/modprobe.d
  should have the .conf extension.

--HG--
extra : convert_revision : eb69e4c6e1097dfcc8ba937a96ec6e83fdb2f922
2009-10-18 07:12:56 +02:00

36 lines
650 B
Bash
Executable File

#!/bin/sh
PREREQ="klibc"
prereqs()
{
echo "$PREREQ"
}
case $1 in
# get pre-requisites
prereqs)
prereqs
exit 0
;;
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
exit 0