valeriyvdovin / rpms / systemd

Forked from rpms/systemd 4 years ago
Clone
803fb7
From 38815fb30199a76684d4153a0a2dcd6abd3a2dda Mon Sep 17 00:00:00 2001
803fb7
From: nmartensen <nis.martensen@web.de>
803fb7
Date: Fri, 15 Jan 2016 07:55:25 +0100
803fb7
Subject: [PATCH] fstab-generator: remove bogus condition
803fb7
803fb7
The sysroot mount is already taken care of by the add_sysroot_mount function. With this condition left in, we can get something like this:
803fb7
803fb7
initrd-root-fs.target.requires
803fb7
`-- usr.mount -> /run/systemd/generator/usr.mount
803fb7
803fb7
in the main system (i.e., not in the initramfs). In the initramfs, the previous condition already kicks in.
803fb7
Cherry-picked from: ce3f6d82b003f365f718f24e48f55b8a0372b924
803fb7
Resolves: #1446171
803fb7
---
803fb7
 src/fstab-generator/fstab-generator.c | 2 --
803fb7
 1 file changed, 2 deletions(-)
803fb7
803fb7
diff --git a/src/fstab-generator/fstab-generator.c b/src/fstab-generator/fstab-generator.c
803fb7
index 32aca2244..23b5457e4 100644
803fb7
--- a/src/fstab-generator/fstab-generator.c
803fb7
+++ b/src/fstab-generator/fstab-generator.c
803fb7
@@ -476,8 +476,6 @@ static int parse_fstab(bool initrd) {
803fb7
                                                       "x-systemd.automount\0");
803fb7
                         if (initrd)
803fb7
                                 post = SPECIAL_INITRD_FS_TARGET;
803fb7
-                        else if (mount_in_initrd(me))
803fb7
-                                post = SPECIAL_INITRD_ROOT_FS_TARGET;
803fb7
                         else if (mount_is_network(me))
803fb7
                                 post = SPECIAL_REMOTE_FS_TARGET;
803fb7
                         else