[Mageia-dev] New Dracut: Please test

Colin Guthrie mageia at colin.guthr.ie
Tue Feb 21 10:36:27 CET 2012


'Twas brillig, and Johnny A. Solbu at 20/02/12 23:24 did gyre and gimble:
> On Monday 20 February 2012 22:45, Colin Guthrie wrote:
>> Can you reliably reproduce this broken initrd (i.e. get the same results
>> from your lsinitrd-broken.txt?
> 
> And just how do I do that?
> I got this problem simply by running "urpmi --auto-update" and rebooted.
> 
>> I've had several reports about this (nothing in bin/ except two plymout
>> binaries), but I've not been able to get anyone who can then
>> subsequently recreate the problem running dracut manually...
>>
>> If you can, please do get in touch.
> 
> I'm willing to try. :-)=
> I just don't know what to do.

Basically boot into a working kernel+ramdisk. Then, as root:


dracut -f foo.img 3.2.6-desktop-3.mga2
lsinitrd foo.img | grep " bin/"

Then secondly:

mkinitrd -f foo.img 3.2.6-desktop-3.mga2
lsinitrd foo.img | grep " bin/"


Note that if things are working OK, both these commands should do
exactly the same thing. If the output looks different, then something is
wrong.



In a working system the output should look something like:

[root at jimmy ~]# dracut -f foo.img 3.2.6-desktop-3.mga2
I: *** Including module: bootchart ***
I: *** Including module: dash ***
I: *** Including module: i18n ***
I: *** Including module: rpmversion ***
I: *** Including module: plymouth ***
I: *** Including module: dm ***
I: Skipping udev rule: 64-device-mapper.rules
I: *** Including module: kernel-modules ***
I: *** Including module: lvm ***
I: Skipping udev rule: 64-device-mapper.rules
I: *** Including module: resume ***
I: *** Including module: rootfs-block ***
I: *** Including module: terminfo ***
I: *** Including module: udev-rules ***
I: Skipping udev rule: 50-udev.rules
I: Skipping udev rule: 95-late.rules
I: Skipping udev rule: 50-firmware.rules
I: *** Including module: usrmount ***
I: *** Including module: base ***
I: *** Including module: fs-lib ***
I: *** Including module: shutdown ***
I: Skipping program kexec as it cannot be found and is flagged to be
optional
I: *** Including modules done ***
lsiniI: Wrote /root/foo.img:
I: -rw-r--r-- 1 root root 7154651 Feb 21 09:34 /root/foo.img
[root at jimmy ~]# lsinitrd foo.img | grep " bin/"
-rwxr-xr-x   1 root     root       126128 Aug 27 10:58 bin/cp
-rwxr-xr-x   1 root     root        13040 Jul 21  2011 bin/kbd_mode
-rwxr-xr-x   1 root     root        14136 Jan 25 07:56 bin/flock
-rwxr-xr-x   1 root     root       830760 May  9  2011 bin/bash
-rwxr-xr-x   1 root     root        67872 Aug 27 10:58 bin/stty
-rwxr-xr-x   1 root     root        58560 Aug 27 10:58 bin/rm
-rwxr-xr-x   1 root     root        96096 Sep  8 22:22 bin/dash
-rwxr-xr-x   1 root     root        50304 Aug 27 10:58 bin/mkdir
-rwxr-xr-x   1 root     root       137272 Nov 18 19:28 bin/grep
-rwxr-xr-x   1 root     root        29664 Aug 27 10:58 bin/sleep
-rwxr-xr-x   1 root     root        20160 Jan 14  2011 bin/pkill
-rwxr-xr-x   1 root     root        42376 Jul 21  2011 bin/setfont
-rwxr-xr-x   1 root     root       114064 Jul 21  2011 bin/loadkeys
-rwxr-xr-x   1 root     root        50344 Aug 27 10:58 bin/ln
-rwxr-xr-x   1 root     root        50400 Aug 27 10:58 bin/cat
lrwxrwxrwx   1 root     root            4 Feb 21 09:33 bin/sh -> dash
-rwxr-xr-x   1 root     root       116296 Aug 27 10:58 bin/mv
-rwxr-xr-x   1 root     root        22120 Jan 25 07:56 bin/dmesg
-rwxr-xr-x   1 root     root        39248 Dec 19 09:11 bin/plymouth
-rwxr-xr-x   1 root     root        29664 Aug 27 10:58 bin/uname
-rwxr-xr-x   1 root     root        37896 Aug 27 10:58 bin/[
-rwsr-xr-x   1 root     root        55216 Jan 25 07:56 bin/umount
-rwxr-xr-x   1 root     root       132280 Jan 12  2011 bin/sed
-rwxr-xr-x   1 root     root        29648 Aug 27 10:58 bin/basename
-rwxr-xr-x   1 root     root        33792 Aug 27 10:58 bin/mknod
-rwxr-xr-x   1 root     root       109960 Aug 27 10:58 bin/ls
-rwxr-xr-x   1 root     root        10328 Feb 16 14:10 bin/usleep
-rwsr-xr-x   1 root     root        72808 Jan 25 07:56 bin/mount
-rwxr-xr-x   1 root     root        83944 Dec 19 09:11 bin/plymouthd
-rwxr-xr-x   1 root     root        29648 Aug 27 10:58 bin/echo
[root at jimmy ~]# mkinitrd -f foo.img 3.2.6-desktop-3.mga2
I: *** Including module: bootchart ***
I: *** Including module: dash ***
I: *** Including module: i18n ***
I: *** Including module: rpmversion ***
I: *** Including module: plymouth ***
I: *** Including module: dm ***
I: Skipping udev rule: 64-device-mapper.rules
I: *** Including module: kernel-modules ***
I: *** Including module: lvm ***
I: Skipping udev rule: 64-device-mapper.rules
I: *** Including module: resume ***
I: *** Including module: rootfs-block ***
I: *** Including module: terminfo ***
I: *** Including module: udev-rules ***
I: Skipping udev rule: 50-udev.rules
I: Skipping udev rule: 95-late.rules
I: Skipping udev rule: 50-firmware.rules
I: *** Including module: usrmount ***
I: *** Including module: base ***
I: *** Including module: fs-lib ***
I: *** Including module: shutdown ***
I: Skipping program kexec as it cannot be found and is flagged to be
optional
I: *** Including modules done ***
I: Wrote /root/foo.img:
I: -rw-r--r-- 1 root root 7154561 Feb 21 09:35 /root/foo.img
[root at jimmy ~]# lsinitrd foo.img | grep " bin/"
-rwxr-xr-x   1 root     root       126128 Aug 27 10:58 bin/cp
-rwxr-xr-x   1 root     root        13040 Jul 21  2011 bin/kbd_mode
-rwxr-xr-x   1 root     root        14136 Jan 25 07:56 bin/flock
-rwxr-xr-x   1 root     root       830760 May  9  2011 bin/bash
-rwxr-xr-x   1 root     root        67872 Aug 27 10:58 bin/stty
-rwxr-xr-x   1 root     root        58560 Aug 27 10:58 bin/rm
-rwxr-xr-x   1 root     root        96096 Sep  8 22:22 bin/dash
-rwxr-xr-x   1 root     root        50304 Aug 27 10:58 bin/mkdir
-rwxr-xr-x   1 root     root       137272 Nov 18 19:28 bin/grep
-rwxr-xr-x   1 root     root        29664 Aug 27 10:58 bin/sleep
-rwxr-xr-x   1 root     root        20160 Jan 14  2011 bin/pkill
-rwxr-xr-x   1 root     root        42376 Jul 21  2011 bin/setfont
-rwxr-xr-x   1 root     root       114064 Jul 21  2011 bin/loadkeys
-rwxr-xr-x   1 root     root        50344 Aug 27 10:58 bin/ln
-rwxr-xr-x   1 root     root        50400 Aug 27 10:58 bin/cat
lrwxrwxrwx   1 root     root            4 Feb 21 09:35 bin/sh -> dash
-rwxr-xr-x   1 root     root       116296 Aug 27 10:58 bin/mv
-rwxr-xr-x   1 root     root        22120 Jan 25 07:56 bin/dmesg
-rwxr-xr-x   1 root     root        39248 Dec 19 09:11 bin/plymouth
-rwxr-xr-x   1 root     root        29664 Aug 27 10:58 bin/uname
-rwxr-xr-x   1 root     root        37896 Aug 27 10:58 bin/[
-rwsr-xr-x   1 root     root        55216 Jan 25 07:56 bin/umount
-rwxr-xr-x   1 root     root       132280 Jan 12  2011 bin/sed
-rwxr-xr-x   1 root     root        29648 Aug 27 10:58 bin/basename
-rwxr-xr-x   1 root     root        33792 Aug 27 10:58 bin/mknod
-rwxr-xr-x   1 root     root       109960 Aug 27 10:58 bin/ls
-rwxr-xr-x   1 root     root        10328 Feb 16 14:10 bin/usleep
-rwsr-xr-x   1 root     root        72808 Jan 25 07:56 bin/mount
-rwxr-xr-x   1 root     root        83944 Dec 19 09:11 bin/plymouthd
-rwxr-xr-x   1 root     root        29648 Aug 27 10:58 bin/echo



Some more details here:
https://bugs.mageia.org/show_bug.cgi?id=4541


-- 

Colin Guthrie
colin(at)mageia.org
http://colin.guthr.ie/

Day Job:
  Tribalogic Limited http://www.tribalogic.net/
Open Source:
  Mageia Contributor http://www.mageia.org/
  PulseAudio Hacker http://www.pulseaudio.org/
  Trac Hacker http://trac.edgewall.org/


More information about the Mageia-dev mailing list