partname: Introduce fstools_partname_fallback_scan option
authorChristian Marangi <ansuelsmth@gmail.com>
Sun, 22 Jan 2023 15:43:35 +0000 (16:43 +0100)
committerChristian Marangi <ansuelsmth@gmail.com>
Sun, 22 Jan 2023 16:24:05 +0000 (17:24 +0100)
commit1ea5855e980cd88766dd9f615e78e7dd6edfbb74
tree26bc98ce8adec426856e5d66c8a7b0c9975e3efe
parente9b59f063bb333df6d58bf434554753d123a713f
partname: Introduce fstools_partname_fallback_scan option

Some device may contains a GPT partition named rootfs_data that may
not be suitable.
To save from regression with old implementation that doesn't use
fstools_ignore_partname to explicitly say that that parname scan
should be ignored, make explicit that scanning each partition should
be done by providing fstools_partname_fallback_scan=1 and skip partname
scan in every other case.

Fixes: e9b59f063bb3 ("partname: Ignore root=PARTUUID...")
Tested-by: Dirk Buchwalder <buchwalder@posteo.de>
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
libfstools/partname.c