initramfs-tools: add hooks for klibc's resume and module-init-tools.
This commit is contained in:
parent
5a94f031e5
commit
94b8d8871c
4 changed files with 50 additions and 10 deletions
23
srcpkgs/initramfs-tools/files/hooks/klibc-resume
Executable file
23
srcpkgs/initramfs-tools/files/hooks/klibc-resume
Executable 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
|
26
srcpkgs/initramfs-tools/files/hooks/module-init-tools
Executable file
26
srcpkgs/initramfs-tools/files/hooks/module-init-tools
Executable 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
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue