initramfs-tools: add hooks for klibc's resume and module-init-tools.

This commit is contained in:
Juan RP 2011-05-25 11:53:47 +02:00
parent 5a94f031e5
commit 94b8d8871c
4 changed files with 50 additions and 10 deletions

View file

@ -0,0 +1,23 @@
#!/bin/sh
PREREQ=""
prereqs()
{
echo "$PREREQ"
}
case $1 in
# get pre-requisites
prereqs)
prereqs
exit 0
;;
esac
. /usr/share/initramfs-tools/hook-functions
# resume from klibc.
copy_exec /bin/resume /bin
exit 0

View file

@ -0,0 +1,26 @@
#!/bin/sh
PREREQ=""
prereqs()
{
echo "$PREREQ"
}
case $1 in
# get pre-requisites
prereqs)
prereqs
exit 0
;;
esac
. /usr/share/initramfs-tools/hook-functions
# module-init-tools
copy_exec /sbin/modprobe /sbin
copy_exec /sbin/rmmod /sbin
mkdir -p "${DESTDIR}/etc/modprobe.d"
cp -a /etc/modprobe.d/* "${DESTDIR}/etc/modprobe.d/"
exit 0

View file

@ -272,15 +272,6 @@ if ! command -v ldd >/dev/null 2>&1 ; then
exit 1
fi
# module-init-tools
copy_exec /sbin/modprobe /sbin
copy_exec /sbin/rmmod /sbin
mkdir -p "${DESTDIR}/etc/modprobe.d"
cp -a /etc/modprobe.d/* "${DESTDIR}/etc/modprobe.d/"
# Copy resume from klibc
copy_exec /bin/resume /bin
run_scripts /usr/share/initramfs-tools/hooks
run_scripts "${CONFDIR}"/hooks

View file

@ -1,6 +1,6 @@
# Template file for 'initramfs-tools'
pkgname=initramfs-tools
_localver=0.99.13 # This is the XBPS version
_localver=0.99.15 # This is the XBPS version
_distver=0.98.8 # This should match debian version
version=${_localver}.${_distver}
build_style=custom-install