923a60
From 38815fb30199a76684d4153a0a2dcd6abd3a2dda Mon Sep 17 00:00:00 2001
923a60
From: nmartensen <nis.martensen@web.de>
923a60
Date: Fri, 15 Jan 2016 07:55:25 +0100
923a60
Subject: [PATCH] fstab-generator: remove bogus condition
923a60
923a60
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:
923a60
923a60
initrd-root-fs.target.requires
923a60
`-- usr.mount -> /run/systemd/generator/usr.mount
923a60
923a60
in the main system (i.e., not in the initramfs). In the initramfs, the previous condition already kicks in.
923a60
Cherry-picked from: ce3f6d82b003f365f718f24e48f55b8a0372b924
923a60
Resolves: #1446171
923a60
---
923a60
 src/fstab-generator/fstab-generator.c | 2 --
923a60
 1 file changed, 2 deletions(-)
923a60
923a60
diff --git a/src/fstab-generator/fstab-generator.c b/src/fstab-generator/fstab-generator.c
923a60
index 32aca22444..23b5457e43 100644
923a60
--- a/src/fstab-generator/fstab-generator.c
923a60
+++ b/src/fstab-generator/fstab-generator.c
923a60
@@ -476,8 +476,6 @@ static int parse_fstab(bool initrd) {
923a60
                                                       "x-systemd.automount\0");
923a60
                         if (initrd)
923a60
                                 post = SPECIAL_INITRD_FS_TARGET;
923a60
-                        else if (mount_in_initrd(me))
923a60
-                                post = SPECIAL_INITRD_ROOT_FS_TARGET;
923a60
                         else if (mount_is_network(me))
923a60
                                 post = SPECIAL_REMOTE_FS_TARGET;
923a60
                         else