core: change mount options settings so that last defined wins
Currently mount options are handled in such a way that the first definition for a given partition wins, and documented as such. Change them so that they behave like other options, and the last specified wins. Applies to RootImageOptions=, MountImages= and ExtensionImages=. Switch from a linked list to an array indexed by the partition specifier to store them.
This commit is contained in:
+1
-1
@@ -183,7 +183,7 @@ typedef struct ExecContext {
|
||||
struct rlimit *rlimit[_RLIMIT_MAX];
|
||||
char *working_directory, *root_directory, *root_image, *root_verity, *root_hash_path, *root_hash_sig_path;
|
||||
struct iovec root_hash, root_hash_sig;
|
||||
LIST_HEAD(MountOptions, root_image_options);
|
||||
MountOptions *root_image_options;
|
||||
bool root_ephemeral;
|
||||
bool working_directory_missing_ok:1;
|
||||
bool working_directory_home:1;
|
||||
|
||||
Reference in New Issue
Block a user