mirror of
https://salsa.debian.org/kernel-team/initramfs-tools.git
synced 2026-01-26 15:39:08 +00:00
initramfs-tools (0.21) breezy; urgency=low
"All that I desire to point out is the general principle that
life imitates art far more than art imitates life."
- Oscar Wilde
* mkinitramfs: Define MODULESDIR and use it.
* hook-functions: Use MODULESDIR
(add_modules_from_file): Do not add .ko extension to file lists.
Call force_load instead of twiddling conf/modules directly.
(Ubuntu #13372)
(force_load): New function.
(copy_exec): Attempt to use non-optimsed libraries if available.
(Ubuntu #13470)
(auto_add_modules) Include forcedeth (Ubuntu #13448)
* hooks/kernelextras: New file. (Ubuntu #13414)
* debian/initramfs-tools.postinst: Preserve /etc/mkinitrd/modules if
possible on new install. (Ubuntu #13372)
-- Jeff Bailey <jbailey@ubuntu.com> Tue, 16 Aug 2005 15:56:00 -0400
This commit is contained in:
parent
f903a759de
commit
9a9de97229
24
debian/changelog
vendored
24
debian/changelog
vendored
@ -1,3 +1,27 @@
|
||||
initramfs-tools (0.21) breezy; urgency=low
|
||||
|
||||
"All that I desire to point out is the general principle that
|
||||
life imitates art far more than art imitates life."
|
||||
- Oscar Wilde
|
||||
|
||||
* mkinitramfs: Define MODULESDIR and use it.
|
||||
|
||||
* hook-functions: Use MODULESDIR
|
||||
(add_modules_from_file): Do not add .ko extension to file lists.
|
||||
Call force_load instead of twiddling conf/modules directly.
|
||||
(Ubuntu #13372)
|
||||
(force_load): New function.
|
||||
(copy_exec): Attempt to use non-optimsed libraries if available.
|
||||
(Ubuntu #13470)
|
||||
(auto_add_modules) Include forcedeth (Ubuntu #13448)
|
||||
|
||||
* hooks/kernelextras: New file. (Ubuntu #13414)
|
||||
|
||||
* debian/initramfs-tools.postinst: Preserve /etc/mkinitrd/modules if
|
||||
possible on new install. (Ubuntu #13372)
|
||||
|
||||
-- Jeff Bailey <jbailey@ubuntu.com> Tue, 16 Aug 2005 15:56:00 -0400
|
||||
|
||||
initramfs-tools (0.20) breezy; urgency=low
|
||||
|
||||
* Depend on cpio.
|
||||
|
||||
4
debian/initramfs-tools.postinst
vendored
4
debian/initramfs-tools.postinst
vendored
@ -13,6 +13,10 @@ if [ "$1" = configure ]; then
|
||||
. /etc/mkinitrd/mkinitrd.conf
|
||||
fi
|
||||
|
||||
if [ -e /etc/mkinitrd/modules ]; then
|
||||
cp /etc/mkinitrd/modules /etc/mkinitramfs
|
||||
fi
|
||||
|
||||
if [ -e ${RESUME} ]; then
|
||||
sed -i -e "s@#RESUME=@RESUME=${RESUME}@" /etc/mkinitramfs/initramfs.conf
|
||||
fi
|
||||
|
||||
@ -4,6 +4,12 @@ catenate_cpiogz() {
|
||||
cat "$1" >>${__TMPCPIOGZ}
|
||||
}
|
||||
|
||||
force_load()
|
||||
{
|
||||
manual_add_modules ${module}
|
||||
echo ${@} >>${DESTDIR}/conf/modules
|
||||
}
|
||||
|
||||
add_modules_from_file()
|
||||
{
|
||||
# Sanity check
|
||||
@ -12,8 +18,7 @@ add_modules_from_file()
|
||||
fi
|
||||
|
||||
sed -e '/^#/d' ${1} | while read module rest; do
|
||||
manual_add_modules ${module}
|
||||
echo ${module}.ko "${rest}" >>${DESTDIR}/conf/modules
|
||||
force_load ${module} "${rest}"
|
||||
done
|
||||
}
|
||||
|
||||
@ -42,8 +47,18 @@ copy_exec() {
|
||||
/linux-gate/d;
|
||||
/=>/ {s/.*=>[[:blank:]]*\([^[:blank:]]*\).*/\1/};
|
||||
s/[[:blank:]]*\([^[:blank:]]*\) (.*)/\1/' 2>/dev/null); do
|
||||
|
||||
# Try to use non-optimised libraries where possible.
|
||||
# We assume that all HWCAP libraries will be in tls.
|
||||
nonoptlib=$(echo ${x} | sed -e 's#/lib/tls.*/\(lib.*\)#/lib/\1#')
|
||||
|
||||
if [ -e ${nonoptlib} ]; then
|
||||
x=${nonoptlib}
|
||||
fi
|
||||
|
||||
libname=$(basename ${x})
|
||||
dirname=$(dirname ${x})
|
||||
|
||||
mkdir -p ${DESTDIR}/${dirname}
|
||||
if [ ! -e ${DESTDIR}/${dirname}/${libname} ]; then
|
||||
ln -s ${x} ${DESTDIR}/${dirname}
|
||||
@ -56,7 +71,7 @@ copy_modules_dir()
|
||||
{
|
||||
tmpdir_modbase=${DESTDIR}/lib/modules/${version}
|
||||
mkdir -p $(dirname ${tmpdir_modbase}/${1})
|
||||
cp -a /lib/modules/${version}/${1} ${tmpdir_modbase}/${1}
|
||||
cp -a ${MODULESDIR}/${1} ${tmpdir_modbase}/${1}
|
||||
}
|
||||
|
||||
dep_add_modules()
|
||||
@ -103,7 +118,7 @@ auto_add_modules()
|
||||
done
|
||||
|
||||
# Ethernet
|
||||
for x in 3c59x 8139cp 8139too 8390 b44 bmac bnx2 defxx dl2k e1000 e100 epic100 eql fealnx famachi hp100 mace mv643xx_eth natsemi ne2k-pci netconsole ns83820 pcnet32 r8169 s2io sis900 skge slhc starfire sundance sungem sungem_phy sunhme tg3 tlan de2104x de4x5 dmfe tulip winbond-840 xircom_cb xircom_tulip_cb typhon via-rhine via-velocity yellowfin; do
|
||||
for x in 3c59x 8139cp 8139too 8390 b44 bmac bnx2 defxx dl2k e1000 e100 epic100 eql fealnx famachi forcedeth hp100 mace mv643xx_eth natsemi ne2k-pci netconsole ns83820 pcnet32 r8169 s2io sis900 skge slhc starfire sundance sungem sungem_phy sunhme tg3 tlan de2104x de4x5 dmfe tulip winbond-840 xircom_cb xircom_tulip_cb typhon via-rhine via-velocity yellowfin; do
|
||||
manual_add_modules ${x}
|
||||
done
|
||||
|
||||
|
||||
39
hooks/kernelextras
Normal file
39
hooks/kernelextras
Normal file
@ -0,0 +1,39 @@
|
||||
#!/bin/sh
|
||||
|
||||
PREREQ=""
|
||||
|
||||
prereqs()
|
||||
{
|
||||
echo "$PREREQ"
|
||||
}
|
||||
|
||||
case $1 in
|
||||
# get pre-requisites
|
||||
prereqs)
|
||||
prereqs
|
||||
exit 0
|
||||
;;
|
||||
esac
|
||||
|
||||
# Hooks for loading loading extra kernel bits into the initramfs
|
||||
|
||||
. /usr/share/initramfs-tools/hook-functions
|
||||
|
||||
fbcon=n
|
||||
|
||||
for x in ${MODULESDIR}/initrd/*; do
|
||||
x=${x##*/}
|
||||
x=${x%.*}
|
||||
case ${x} in
|
||||
*fb)
|
||||
fbcon=y
|
||||
;;
|
||||
esac
|
||||
|
||||
force_load ${x}
|
||||
done
|
||||
|
||||
if [ ${fbcon} = "y" ]; then
|
||||
force_load fbcon
|
||||
fi
|
||||
|
||||
@ -70,8 +70,10 @@ if [ -d ${outfile} ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ ! -e /lib/modules/${version} ]; then
|
||||
echo "Cannot find /lib/modules/${version}"
|
||||
MODULESDIR="/lib/modules/${version}"
|
||||
|
||||
if [ ! -e ${MODULESDIR} ]; then
|
||||
echo "Cannot find ${MODULESDIR}"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
@ -80,6 +82,7 @@ __TMPCPIOGZ=$(mktemp -t mkinitramfs-OL_XXXXXX) || exit 1
|
||||
|
||||
# Export environment for hook scripts.
|
||||
#
|
||||
export MODULESDIR
|
||||
export version
|
||||
export CONFDIR
|
||||
export DESTDIR
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user