]> git.proxmox.com Git - systemd.git/commitdiff
fstab-generator: don’t rely on /usr being mounted in the initrd
authorMichael Stapelberg <stapelberg@debian.org>
Tue, 29 Oct 2013 21:29:22 +0000 (22:29 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Tue, 29 Oct 2013 21:29:59 +0000 (22:29 +0100)
Debian is not there yet. Let’s revert this upstream change for now.

Closes: #724797
src/fstab-generator/fstab-generator.c

index a5db5fde0802237d603184516f455688922320f7..ceab9e74509b06f36752fcc2e0340da3419e3827 100644 (file)
@@ -194,9 +194,7 @@ static bool mount_is_network(struct mntent *me) {
 static bool mount_in_initrd(struct mntent *me) {
         assert(me);
 
-        return
-                hasmntopt(me, "x-initrd.mount") ||
-                streq(me->mnt_dir, "/usr");
+        return hasmntopt(me, "x-initrd.mount");
 }
 
 static int add_mount(