From: Colin Walters Date: Fri, 12 May 2017 19:55:12 +0000 (-0400) Subject: switchroot/remount: Trim set of remounted filesystems X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~4^2~37^2~9 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=f21f500e40ba0d2c0881ecdaf876f8510e8c64ba;p=ostree.git switchroot/remount: Trim set of remounted filesystems I really have no idea what I was thinking with that list of mount points. It seems arbitrary. Sadly `git log` doesn't help, and there's no comments. Basically, the only mounts we should care about are those that libostree creates. Which are just `/sysroot` and `/var`. Systemd will handle the other things like `/tmp`, it's not our job, and we shouldn't touch them. Closes: #859 Approved by: jlebon --- diff --git a/src/switchroot/ostree-remount.c b/src/switchroot/ostree-remount.c index bd4d1253..e19de183 100644 --- a/src/switchroot/ostree-remount.c +++ b/src/switchroot/ostree-remount.c @@ -41,7 +41,7 @@ int main(int argc, char *argv[]) { - const char *remounts[] = { "/sysroot", "/etc", "/home", "/root", "/tmp", "/var", NULL }; + const char *remounts[] = { "/sysroot", "/var", NULL }; struct stat stbuf; int i;