uvol: improve autopart and lvm scripts, fix F2FS volumes
authorDaniel Golle <redacted>
Wed, 21 Apr 2021 16:08:17 +0000 (17:08 +0100)
committerDaniel Golle <redacted>
Wed, 21 Apr 2021 16:32:14 +0000 (17:32 +0100)
commit1b570f7aad1bb160aa86d9d45b578551b93d49eb
treea04de79cfdeea5de24eef6dab6026321bcde1930
parentf6feb1508c8b2b3d89d50a03b6acbb2cc7218fed
uvol: improve autopart and lvm scripts, fix F2FS volumes

Use sfdisk to get GPT partition by name as partition names are not
known by the kernel if added via partx.
Make sure physical volume names are unique, if possible correlate
with the disks serial number and/or card's cid.
mkf2fs apparently returns 134 even in case format succeeded, so don't
fail in that case (this fixes rw volumes large enough for F2FS to be
selected by the lvm scripts of uvol).

Signed-off-by: Daniel Golle <redacted>
utils/uvol/files/autopart.defaults
utils/uvol/files/lvm.sh
git clone https://git.99rst.org/PROJECT