]> git.pld-linux.org Git - projects/geninitrd.git/blob - lvm.todo
Properly echo firmware.sh to /proc/../hotplug.
[projects/geninitrd.git] / lvm.todo
1 Thing to implement for using LVM on rootfs:
2 - if rootfs device have unsupported name then check if this is block device
3   with major 58
4 - check PVDEVICES and if empty do:
5 -- run lvdisplay to determine volumen group (vg)
6 -- run pvscan to find physical volumens (pv) belong to determined vg
7    (better write help application to parse /etc/lvmtab.d/[vgname] or
8    /etc/lvmconf/[vgname].conf - ask malekith for help)
9 - for all found pvs find needed modules (support all devices that are
10   supported for rootfs device)
11 - add to startup:
12 mount /proc
13 mount /tmp
14 mkdir /tmp/lvmtab.d
15 mkdir /tmp/lvmconf
16 lvm-initrd vgscan
17 lvm-initrd vgchange -a y
18 umount /tmp
19 umount /proc
20
21 NOTE: vgscan need writable /etc/lvmtab and /etc/lvmtab.d/. Distrib kernels are
22 built only with romfs, so mount tmpfs on /tmp and symlink writable files from
23 original location to /tmp.
24 But tmpfs are only in kernel series 2.4.x or later.
25
26 There is also problematic case with LVM on top of for example SOFTRAID. You would
27 need to find all pvdevices and set them up in initrd so there would be multiple
28 rootdevs with multiple dev_lists.
This page took 0.028377 seconds and 3 git commands to generate.