load-fragment: allow MountImages= with paths starting with /dev
authorTopi Miettinen <toiwoton@gmail.com>
Wed, 26 Jun 2024 19:06:41 +0000 (22:06 +0300)
committerTopi Miettinen <topimiettinen@users.noreply.github.com>
Thu, 4 Jul 2024 09:36:04 +0000 (09:36 +0000)
commite81025970fed5673c631976711d45c67b0443bb4
treed404f21b046af39007c90f96ab2ced534c901c37
parent92d9d5ca70b0a8b3aea12f24e9cd0f770c31a94c
load-fragment: allow MountImages= with paths starting with /dev

For MountImages=, if the source is a block device, it will most likely reside
in /dev. It should be also possible to mount a static device file system in
place of (or part of) /dev. So let's allow paths starting with /dev as an
exception for MountImages=.
src/core/load-fragment.c
src/shared/parse-helpers.c
src/shared/parse-helpers.h