<feed xmlns='http://www.w3.org/2005/Atom'>
<title>initramfs-tools.git/hook-functions, branch 0.95.1</title>
<subtitle>Vyatta fork of initramfs-tools (mirror of https://github.com/vyos/initramfs-tools.git)
</subtitle>
<id>https://git.amelek.net/vyos/initramfs-tools.git/atom?h=0.95.1</id>
<link rel='self' href='https://git.amelek.net/vyos/initramfs-tools.git/atom?h=0.95.1'/>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/initramfs-tools.git/'/>
<updated>2010-05-29T00:15:59+00:00</updated>
<entry>
<title>hook-functions: Fix copy_modules_dir()</title>
<updated>2010-05-29T00:15:59+00:00</updated>
<author>
<name>maximilian attems</name>
<email>maks@debian.org</email>
</author>
<published>2010-05-29T00:15:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/initramfs-tools.git/commit/?id=81da804d1cd8deba5d2eb4d7180c060a01969368'/>
<id>urn:sha1:81da804d1cd8deba5d2eb4d7180c060a01969368</id>
<content type='text'>
overseen variable renaming.

Signed-off-by: maximilian attems &lt;maks@debian.org&gt;
</content>
</entry>
<entry>
<title>mkinitramfs: fix MODULES=dep on mylex raid devices (DAC960)</title>
<updated>2010-05-28T23:42:17+00:00</updated>
<author>
<name>Claus Herwig</name>
<email>c.herwig@checon.de</email>
</author>
<published>2010-04-30T00:27:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/initramfs-tools.git/commit/?id=81606da78671a6f2b4d54bb2b2e8dbd586ef9c61'/>
<id>urn:sha1:81606da78671a6f2b4d54bb2b2e8dbd586ef9c61</id>
<content type='text'>
mkinitramfs fails to generate a initrd file for root filesystems on an
old mylex raid controller (kernel module DAC960).

In my case this breaks installation for lenny (5.0.3) on a FJS Primergy
server - as this bug is not only in the mentioned version but also in
0.92 which ships on the lenny install cd: The installer can boot, as the
old kernel module is still present. But the base install step fails when
it tries to generate the initrd.

The error in detail, when invoking mkinitramfs manually with -x
-----------
(...)
+ manual_add_modules ext2
+ local mam_x firmwares firmware
++ modprobe --set-version=2.6.29.6-vs2.3.0.36.14-beng --ignore-install
--quiet --show-depends ext2
++ awk '/^insmod/ { print $2 }'
+ for mam_x in '$(modprobe --set-version="${version}" --ignore-install
--quiet
--show-depends "${1}" | awk '\''/^insmod/ { print $2 }'\'')'
+ '[' -e
/tmp/mkinitramfs_lNjzuV//lib/modules/2.6.29.6-vs2.3.0.36.14-beng/kernel/fs/mbcache.ko
']'
++ dirname /lib/modules/2.6.29.6-vs2.3.0.36.14-beng/kernel/fs/mbcache.ko
+ mkdir -p
/tmp/mkinitramfs_lNjzuV//lib/modules/2.6.29.6-vs2.3.0.36.14-beng/kernel/fs
++ dirname /lib/modules/2.6.29.6-vs2.3.0.36.14-beng/kernel/fs/mbcache.ko
+ ln -s /lib/modules/2.6.29.6-vs2.3.0.36.14-beng/kernel/fs/mbcache.ko
/tmp/mkinitramfs_lNjzuV//lib/modules/2.6.29.6-vs2.3.0.36.14-beng/kernel/fs
+ '[' n = y ']'
++ modinfo -F firmware
/lib/modules/2.6.29.6-vs2.3.0.36.14-beng/kernel/fs/mbcache.ko
+ firmwares=
+ '[' -z '' ']'
+ continue
+ for mam_x in '$(modprobe --set-version="${version}" --ignore-install
--quiet
--show-depends "${1}" | awk '\''/^insmod/ { print $2 }'\'')'
+ '[' -e
/tmp/mkinitramfs_lNjzuV//lib/modules/2.6.29.6-vs2.3.0.36.14-beng/kernel/fs/ext2/ext2.ko
']'
++ dirname /lib/modules/2.6.29.6-vs2.3.0.36.14-beng/kernel/fs/ext2/ext2.ko
+ mkdir -p
/tmp/mkinitramfs_lNjzuV//lib/modules/2.6.29.6-vs2.3.0.36.14-beng/kernel/fs/ext2
++ dirname /lib/modules/2.6.29.6-vs2.3.0.36.14-beng/kernel/fs/ext2/ext2.ko
+ ln -s /lib/modules/2.6.29.6-vs2.3.0.36.14-beng/kernel/fs/ext2/ext2.ko
/tmp/mkinitramfs_lNjzuV//lib/modules/2.6.29.6-vs2.3.0.36.14-beng/kernel/fs/ext2
+ '[' n = y ']'
++ modinfo -F firmware
/lib/modules/2.6.29.6-vs2.3.0.36.14-beng/kernel/fs/ext2/ext2.ko
+ firmwares=
+ '[' -z '' ']'
+ continue
+ '[' /dev/rd/c0d0p1 '!=' /dev/rd/c0d0p1 ']'
+ '[' /dev/rd/c0d0p1 '!=' /dev/rd/c0d0p1 ']'
+ '[' /dev/rd/c0d0p1 '!=' /dev/rd/c0d0p1 ']'
+ '[' /dev/rd/c0d0p1 '!=' /dev/rd/c0d0p1 ']'
+ '[' /dev/rd/c0d0p1 '!=' /dev/rd/c0d0p1 ']'
+ '[' /dev/rd/c0d0p1 '!=' /dev/rd/c0d0p1 ']'
+ '[' /dev/rd/c0d0p1 '!=' /dev/rd/c0d0p1 ']'
+ '[' /dev/rd/c0d0p1 '!=' /dev/rd/c0d0p1 ']'
+ '[' /dev/rd/c0d0p1 '!=' /dev/rd/c0d0p1 ']'
+ block=rd/c0d0p1
+ block=rd/c
+ '[' -z rd/c ']'
+ '[' '!' -e /sys/block/rd/c ']'
+ echo 'mkinitramfs: for root /dev/rd/c0d0p1 missing rd/c /sys/block/ entry'
mkinitramfs: for root /dev/rd/c0d0p1 missing rd/c /sys/block/ entry
+ echo 'mkinitramfs: workaround is MODULES=most'
mkinitramfs: workaround is MODULES=most
+ echo 'mkinitramfs: Error please report the bug'
mkinitramfs: Error please report the bug
+ exit 1
-------------

So the reason is that mkinitramfs fails to derive the correct block
device notation from the root device as the DAC960 driver uses a strange
format for it.

Once figured out, this is easily corrected. Please find a short patch
for /usr/share/initramfs-tools/hook-functions attached.

Thank you,
  Claus Herwig

--
CHECON   EDV-Consulting und Redaktion
         Claus Herwig * Barer Straße 70 * 80799 München
         +49 89 27826981 * Fax 27826982 * c.herwig@checon.de

Closes: #579702

[ whitespace cleanups -maks ]
Signed-off-by: maximilian attems &lt;maks@debian.org&gt;
</content>
</entry>
<entry>
<title>hook-functions: re-add hid-microsoft</title>
<updated>2010-05-28T23:34:51+00:00</updated>
<author>
<name>maximilian attems</name>
<email>maks@debian.org</email>
</author>
<published>2010-05-28T23:34:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/initramfs-tools.git/commit/?id=9e7cebc5bc94634987b35bf08e150c179bd927c4'/>
<id>urn:sha1:9e7cebc5bc94634987b35bf08e150c179bd927c4</id>
<content type='text'>
people use it and thus complain..

Closes: 577253

Signed-off-by: maximilian attems &lt;maks@debian.org&gt;
</content>
</entry>
<entry>
<title>Support booting from USB 3 xHCI-based controllers</title>
<updated>2010-05-19T15:11:27+00:00</updated>
<author>
<name>Michael Prokop</name>
<email>mika@debian.org</email>
</author>
<published>2010-05-19T14:59:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/initramfs-tools.git/commit/?id=6ac7ec30d81bee53674c3bf6a19750126bac4554'/>
<id>urn:sha1:6ac7ec30d81bee53674c3bf6a19750126bac4554</id>
<content type='text'>
using kernel driver xhci.

Signed-off-by: maximilian attems &lt;maks@debian.org&gt;
</content>
</entry>
<entry>
<title>hook-functions: add hid-apple</title>
<updated>2010-04-11T04:56:53+00:00</updated>
<author>
<name>maximilian attems</name>
<email>maks@debian.org</email>
</author>
<published>2010-04-11T04:56:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/initramfs-tools.git/commit/?id=b4305bf8d52ee8498262d256993a7c5e9941ba50'/>
<id>urn:sha1:b4305bf8d52ee8498262d256993a7c5e9941ba50</id>
<content type='text'>
got axed while reverting the include any hid commit.

Closes: #577253

Signed-off-by: maximilian attems &lt;maks@debian.org&gt;
</content>
</entry>
<entry>
<title>hook-functions: copy_modules_dir() small simplifications</title>
<updated>2010-04-08T06:53:50+00:00</updated>
<author>
<name>maximilian attems</name>
<email>maks@debian.org</email>
</author>
<published>2010-04-08T06:53:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/initramfs-tools.git/commit/?id=ad301da1f90013d372772f9de0a3f518b9b24717'/>
<id>urn:sha1:ad301da1f90013d372772f9de0a3f518b9b24717</id>
<content type='text'>
use meaningful variable name.

Signed-off-by: maximilian attems &lt;maks@debian.org&gt;
</content>
</entry>
<entry>
<title>hook-functions: manual_add_modules simplify</title>
<updated>2010-04-08T06:49:58+00:00</updated>
<author>
<name>maximilian attems</name>
<email>maks@debian.org</email>
</author>
<published>2010-04-08T06:47:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/initramfs-tools.git/commit/?id=7a26a4d17fe230055966ab8e1e5476e35fe9791a'/>
<id>urn:sha1:7a26a4d17fe230055966ab8e1e5476e35fe9791a</id>
<content type='text'>
use meaningful variable s/mam_x/kmod/

loop directly on the modinfo output.

Signed-off-by: maximilian attems &lt;maks@debian.org&gt;
</content>
</entry>
<entry>
<title>mkinitramfs: Fix several unbound variables</title>
<updated>2010-04-07T05:25:06+00:00</updated>
<author>
<name>maximilian attems</name>
<email>maks@debian.org</email>
</author>
<published>2010-04-07T05:24:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/initramfs-tools.git/commit/?id=f9db3f7bcbad79bdb1817aa53eb27a46b5951381'/>
<id>urn:sha1:f9db3f7bcbad79bdb1817aa53eb27a46b5951381</id>
<content type='text'>
might not be all, but a first go in stricter mkinitramfs.
as bonus remove old amusing unused varialbe from day 2..

Signed-off-by: maximilian attems &lt;maks@debian.org&gt;
</content>
</entry>
<entry>
<title>mkinitramfs: check only once for existing ldd</title>
<updated>2010-04-06T06:55:15+00:00</updated>
<author>
<name>maximilian attems</name>
<email>maks@debian.org</email>
</author>
<published>2010-04-06T06:55:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/initramfs-tools.git/commit/?id=a2a786f8bad3e1e3ed089c3c68addd9619c4c1ca'/>
<id>urn:sha1:a2a786f8bad3e1e3ed089c3c68addd9619c4c1ca</id>
<content type='text'>
no point to recheck on every copy_exec.

now copy_exec starts to get redable..

Signed-off-by: maximilian attems &lt;maks@debian.org&gt;
</content>
</entry>
<entry>
<title>hook-functions: refactor copy_exec</title>
<updated>2010-04-06T06:50:12+00:00</updated>
<author>
<name>maximilian attems</name>
<email>maks@debian.org</email>
</author>
<published>2010-04-06T06:46:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/initramfs-tools.git/commit/?id=5de4f2d88e47343f080884213919ddadb0efc7a7'/>
<id>urn:sha1:5de4f2d88e47343f080884213919ddadb0efc7a7</id>
<content type='text'>
try to have an easier logic flow, also:
* fail if wanted source does not exist
* do not overwrite, no point in warning this

add FIXME's to point missing /lib64 symlink parts.

Signed-off-by: maximilian attems &lt;maks@debian.org&gt;
</content>
</entry>
</feed>
