void-packages/srcpkgs/initramfs-tools/files/hooks/busybox
Juan RP a7d67a2b5a initramfs-tools: update to 0.99.111.
- Removed NFS/network boot, it never worked anyway.
- Removed support for booting from UBIFS and exotic platforms.
- Create busybox links at initramfs creation time.
- Panic if mounting devtmpfs fails, udev requires this now.
- Mount devpts filesystem once udev has been started.
- Move all mounted filesystemd to the real root before switching root.
2012-01-13 15:10:43 +01:00

26 lines
368 B
Bash
Executable file

#!/bin/sh
PREREQ=""
prereqs()
{
echo "$PREREQ"
}
case $1 in
# get pre-requisites
prereqs)
prereqs
exit 0
;;
esac
. ${ROOTDIR}/usr/share/initramfs-tools/hook-functions
copy_exec ${ROOTDIR}/bin/busybox
# Create required busybox symlinks
for f in $(/bin/busybox --list); do
[ "$f" = "modprobe" ] && continue
ln -sf /bin/busybox ${DESTDIR}/bin/${f}
done
exit 0