Skip to contentSkip to conversation

Patch lvmcreate_initrd

linux-lvm Stefan Helfert 2 participants 2 messages Jun 25, 2000

lore
Share & tools
lore
#0 lore raw

Dear all,

sorry if this is old stuff but I did not find any reference in the archive.

When trying to install a root partition with lvm and reiserfs on a notebook, I found that the lvmcreate_initrd script is building a unusable initrd:
[initrd]./linuxrc needs /bin/mount and /bin/umount, but those won't be copied.

System: SuSE 6.4, but I rechecked this against the lvm_0.8final.tgz.

With this patch, everything is working fine:
(since my kernel as the SuSE standard kernel does have lvm included in the kernel, not as module, the script complains about the missing lvm.o. This could be detected, also...)

Stefan

lvmcreate_initrd.new Sun Jun 25 10:56:44 2000 renamed from lvmcreate_initrd Tue Feb 22 03:09:33 2000 +0 -1
@@ -37,7 +37,7 @@
 DEVRAM=/dev/ram1
 INITRD=/boot/initrd.gz
 INITRDSIZE=8192
-INITRDFILES="/sbin/modprobe /sbin/vgchange /sbin/vgscan /bin/bash

/bin/sh /bin/rm /sbin/insmod /sbin/modprobe /dev/* /lib/modules/${VERSION}/modules.dep /lib/modules/${VERSION}/block/lvm.o" +INITRDFILES="/sbin/modprobe /sbin/vgchange /sbin/vgscan /bin/bash /bin/sh /bin/rm /bin/mount /bin/umount /sbin/insmod /sbin/modprobe /dev/* /lib/modules/${VERSION}/modules.dep /lib/modules/${VERSION}/block/lvm.o"
TMP=/tmp/mnt.$$

trap "

Signature · 3 lines
I wish there was a knob on the TV to turn up the intelligence. 
There's a knob called brightness, but it doesn't seem to work. 
                                                     Gallagher
#1 lore raw
Quoted 10 lines · Stefan Helfert

Dear all,

sorry if this is old stuff but I did not find any reference in the archive.

When trying to install a root partition with lvm and reiserfs on a notebook, I found that the lvmcreate_initrd script is building a unusable initrd:
[initrd]./linuxrc needs /bin/mount and /bin/umount, but those won't be copied.

Yes, this is a known bug which is already fixed in my development tree.

Quoted 31 lines

System: SuSE 6.4, but I rechecked this against the lvm_0.8final.tgz.

With this patch, everything is working fine:
(since my kernel as the SuSE standard kernel does have lvm included in the kernel, not as module, the script complains about the missing lvm.o. This could be detected, also...)

Stefan

lvmcreate_initrd.new Sun Jun 25 10:56:44 2000 renamed from lvmcreate_initrd Tue Feb 22 03:09:33 2000 +0 -1
@@ -37,7 +37,7 @@
 DEVRAM=/dev/ram1
 INITRD=/boot/initrd.gz
 INITRDSIZE=8192
-INITRDFILES="/sbin/modprobe /sbin/vgchange /sbin/vgscan /bin/bash

/bin/sh /bin/rm /sbin/insmod /sbin/modprobe /dev/* /lib/modules/${VERSION}/modules.dep /lib/modules/${VERSION}/block/lvm.o" +INITRDFILES="/sbin/modprobe /sbin/vgchange /sbin/vgscan /bin/bash /bin/sh /bin/rm /bin/mount /bin/umount /sbin/insmod /sbin/modprobe /dev/* /lib/modules/${VERSION}/modules.dep /lib/modules/${VERSION}/block/lvm.o"
TMP=/tmp/mnt.$$

trap "

Signature · 3 lines
I wish there was a knob on the TV to turn up the intelligence. 
There's a knob called brightness, but it doesn't seem to work. 
                                                     Gallagher
Signature · 12 lines
Regards,
Heinz      -- The LVM guy --

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Heinz Mauelshagen                                 Sistina Software Inc.
Senior Consultant/Developer                       Bartningstr. 12
                                                  64289 Darmstadt
                                                  Germany
[email protected]                           +49 6151 7103 86
                                                       FAX 7103 96
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-