]>
Commit | Line | Data |
---|---|---|
41b2b327 AF |
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 finded 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 kernel are | |
22 | builded 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. |