initrd manipulieren

Stefan Welte <[email protected]>
Newsgroups spline.eisxen
Organization spline
Message-ID <[email protected]>
Hallo,

das entpacken und packen der 2.6.24-28-xen-initrd führt zu einem kernel-panic, wenn man mit
dieser neuen initrd eine domu bootet.
Warum?
Der Zweck: Ich möchte später in der initrd Dinge ändern/hinzufügen.

Meine Vorgehensweise:

mkdir 24-28
cd 24-28
cp -a /boot/initrd-2.6.24-28-xen.gz .
gzip -d initrd-2.6.24-28-xen.gz
cpio -i initrd-2.6.24-28-xen
cpio: lib/modules/2.6.24-28-xen/kernel/drivers/block/loop.ko not created: newer or same age
version exists
24945 blocks
rm initrd-2.6.24-28-xen
find . | cpio -oc /tmp/initrd-2.6.24-28-xen
gzip /tmp/initrd-2.6.24-28-xen
mv /boot/initrd-2.6.24-28-xen.gz /boot/backup-initrd-2.6.24-28-xen.gz
mv /tmp/initrd-2.6.24-28-xen.gz /boot/

boot einer domu:
...
[    0.254274] XENBUS: Device with no driver: device/console/0
[    0.254295]   Magic number: 1:252:3141
[    0.254499] RAMDISK: Couldn't find valid RAM disk image starting at 0.
[    0.269201] List of all partitions:
[    0.269216] 0301     524288 hda1 driver: vbd
[    0.269223] 0302     131072 hda2 driver: vbd
[    0.269231] No filesystem could mount root, tried:  cramfs
[    0.269241] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(3,1)
Press ENTER to continue

Ist das loop.ko -Modul schuld, da dies anscheinend zwei mal in der initrd drin ist (siehe
Meldung oberhalb)?

Danke im Voraus,
Stefan
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.