Related to partition flags, do they have an effect on the partitions when set OR they are just as information, like a comment: "this partition is used for lvm/swap/boot/root" ?
//from the man 8 parted
Supported flags are: "boot", "root", "swap", "hidden", "raid", "lvm", "lba", "legacy_boot" and "palo". state should be either "on" or "off".
A little more information about flags can be found in the documentation pages of the GNU project, for example: https://www.gnu.org/software/parted/manual/html_node/set.html
I hope those info help you to undestend propose of flags.
@Alexandre Thank you for link. But it does not tell if do they have an effect on the partitions when set OR they are just as information, like a comment: "this partition is used for lvm/swap/boot/root" .
In this case " ‘LVM’ (MS-DOS) - this flag can be enabled to tell linux the partition is a physical volume", it is said "this flag can be enabled". So "can", it does not say "should" like in the next example: ‘root’ (Mac) - this flag should be enabled if the partition is the root device to be used by Linux.
So my understanding is that for a partition on a disk with MS-DOS disk label for which we want to configure it with LVM, it is not mandatory to set the LVM flag on this partition. And in case that we set it, it will work as an information/comment.
Any other sources, comments are welcomed? Thank you.