]> git.pld-linux.org Git - projects/geninitrd.git/blame - lvm.todo
- added initramfs support
[projects/geninitrd.git] / lvm.todo
CommitLineData
41b2b327
AF
1Thing 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)
e53a328e 6-- run pvscan to find physical volumens (pv) belong to determined vg
41b2b327
AF
7 (better write help application to parse /etc/lvmtab.d/[vgname] or
8 /etc/lvmconf/[vgname].conf - ask malekith for help)
e53a328e 9- for all found pvs find needed modules (support all devices that are
41b2b327
AF
10 supported for rootfs device)
11- add to startup:
12mount /proc
13mount /tmp
14mkdir /tmp/lvmtab.d
15mkdir /tmp/lvmconf
16lvm-initrd vgscan
17lvm-initrd vgchange -a y
18umount /tmp
19umount /proc
20
e53a328e
ER
21NOTE: vgscan need writable /etc/lvmtab and /etc/lvmtab.d/. Distrib kernels are
22built only with romfs, so mount tmpfs on /tmp and symlink writable files from
23original location to /tmp.
41b2b327 24But tmpfs are only in kernel series 2.4.x or later.
6f4f4332
AM
25
26There is also problematic case with LVM on top of for example SOFTRAID. You would
27need to find all pvdevices and set them up in initrd so there would be multiple
28rootdevs with multiple dev_lists.
This page took 0.044756 seconds and 4 git commands to generate.