]> git.ipfire.org Git - thirdparty/systemd.git/commit
gpt-auto: propagate gpt partition ro/rw flag into root mount
authorLennart Poettering <lennart@poettering.net>
Fri, 23 Nov 2018 21:16:57 +0000 (22:16 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 18 Dec 2018 13:47:46 +0000 (14:47 +0100)
commitfd89051ec3d2555c19d71d5fc6d76809ca3bb79c
tree3a39651fa4d04ae5cdf9030fe08196e491ddf809
parentc94b2417770625d78705e5f55725f04c26398fce
gpt-auto: propagate gpt partition ro/rw flag into root mount

This ensures that the read/write state of the root mount matches the
read/write flag in the GPT partition table entry.

This is only used as fallback in case no ro/rw flag is specified on the
kernel cmdline, and there's no entry for the root partition in
/etc/fstab.

This is missing functionality of the GPT auto logic, as without this the
root partition was always mounted read-only — when booting with zero
configuration in /etc/fstab and /proc/cmdline —, as we defaulted to
read-only behaviour for all mounts. Moreover we honoured the r/o flag in
the partition table for all other partition types, except for the root
partition.
src/gpt-auto-generator/gpt-auto-generator.c