dissect: ext4 and loopback files are unimpressed by read-only access
authorLennart Poettering <lennart@poettering.net>
Mon, 19 Apr 2021 20:47:33 +0000 (22:47 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 19 Apr 2021 21:16:02 +0000 (23:16 +0200)
commitb620bf332f575ba9b8e4cd60c93446a0c35c23e8
treedd91870ff3ad5d27678eaa180f5cbca88ec8e696
parente73309c532999cb15490a78575dd882b24bbe96f
dissect: ext4 and loopback files are unimpressed by read-only access

Even if we set up a loopback device read-only and mount it read-only
this means nothing, ext4 will still write through to the backing storage
file.

Yes, I lost 6h debugging time on this.

Apparently, we have to specify "norecovery" when mounting such file
systems, to force them into truly read-only mode. Let's do so.
src/shared/dissect-image.c