ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: "Dmitry V. Levin" <ldv@altlinux.org>
To: ALT Linux Sisyphus mailing list <sisyphus@lists.altlinux.org>
Subject: Re: [sisyphus] kernel-image и module-init-tools
Date: Tue, 11 Oct 2011 14:30:05 +0400
Message-ID: <20111011103005.GA11487@altlinux.org> (raw)
In-Reply-To: <4E941285.9030602@altlinux.ru>

[-- Attachment #1: Type: text/plain, Size: 2044 bytes --]

On Tue, Oct 11, 2011 at 01:55:17PM +0400, Alexey Gladkov wrote:
> 11.10.2011 13:37, Dmitry V. Levin wrote:
> > Грубо говоря, modprobe не работает до первого depmod'а.
> > 
> > В kernel-image запаковываются файлы /lib/modules/*/modules.*, благодаря
> > которым modprobe можно применять к ядрам, отличным от текущего.  Эти файлы
> > формируются во время сборки kernel-image, их формат зависит от версии
> > module-init-tools.  После недавнего обновления module-init-tools этот
> > формат изменился.  Соответственно, установка нового kernel-image в систему
> > со старым module-init-tools приводит к тому, что make-initrd/mkinitrd
> > создают неполноценный initrd до тех пор, пока файлы
> > /lib/modules/*/modules.* не будут приведены в соответствие с установленной
> > версией module-init-tools, т.е. до первого depmod'а.
> 
> Хм... make-initrd первым делом делает depmod -a для версии ядра для
> которого делается initrd ... и кажется mkinitrd тоже так поступает.

Выглядит это так (установка нового kernel-image при старом module-init-tools):

Running /usr/lib/rpm/posttrans-filetriggers
Config file: /etc/initrd.mk
FATAL: Module index corrupt: Bad magic number
Try re-running depmod
FATAL: Module index corrupt: Bad magic number
Try re-running depmod
FATAL: Module index corrupt: Bad magic number
Try re-running depmod
FATAL: Module index corrupt: Bad magic number
Try re-running depmod
FATAL: Module index corrupt: Bad magic number
Try re-running depmod
FATAL: Module index corrupt: Bad magic number
Try re-running depmod
FATAL: Module index corrupt: Bad magic number
Try re-running depmod
FATAL: Module index corrupt: Bad magic number
Try re-running depmod
FATAL: Module index corrupt: Bad magic number
Try re-running depmod
FATAL: Module index corrupt: Bad magic number
Try re-running depmod
Generating module dependencies on host ...
Guessed modules: ext3 raid1 

в то время как нормальным для этого хоста является
Guessed modules: aacraid crc-t10dif ext3 raid1 scsi_mod sd_mod 


-- 
ldv

[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

  reply	other threads:[~2011-10-11 10:30 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-30  5:14 [sisyphus] kernel-image-un-def-3.0.3-alt1 и Xeon Sergei Epiphanov
2011-08-30  6:50 ` astroiLL
2011-08-30 10:43   ` Sergei Epiphanov
2011-08-30 12:00 ` Anton Farygin
2011-08-31  5:28   ` astroiLL
2011-08-31  5:46   ` Sergei Epiphanov
2011-10-11  5:56   ` Sergei Epiphanov
2011-10-11  6:11     ` Anton Protopopov
2011-10-11  6:13       ` Sergei Epiphanov
2011-10-11  6:17       ` Sergei Epiphanov
2011-10-11  8:22         ` Aleksey Novodvorsky
2011-10-11  8:51       ` [sisyphus] kernel-image и module-init-tools Dmitry V. Levin
2011-10-11  9:25         ` Alexey Gladkov
2011-10-11  9:37           ` Dmitry V. Levin
2011-10-11  9:40             ` Paul Wolneykien
2011-10-11  9:44               ` Dmitry V. Levin
2011-10-11  9:55             ` Alexey Gladkov
2011-10-11 10:30               ` Dmitry V. Levin [this message]
2011-10-11 10:46                 ` Alexey Gladkov
2011-10-11 11:59                   ` Dmitry V. Levin
2011-10-11 12:12                     ` Alexey Gladkov
2011-10-11 12:36                       ` Dmitry V. Levin
2011-10-11 10:52                 ` Sergei Epiphanov
2011-10-11 17:24                 ` Sergey Vlasov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20111011103005.GA11487@altlinux.org \
    --to=ldv@altlinux.org \
    --cc=sisyphus@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git