fstab-generator-don-t-rely-on-usr-being-mounted-in-t.patch breaks boot
up on dracut.
As dracut supports usr-mount in initramfs, systemd should be free to
enable it.
So I have made this patch:

--- systemd-215/src/fstab-generator/fstab-generator.c	2014-11-16 18:20:59.566309234 +0100
+++ systemd-215-new/src/fstab-generator/fstab-generator.c	2014-11-16 18:20:06.606835850 +0100
@@ -159,10 +159,18 @@ static bool mount_is_network(struct mnte
 
 static bool mount_in_initrd(struct mntent *me) {
         assert(me);
+        bool dracut = false;
+        _cleanup_free_ char *name= NULL;
 
+        if (parse_env_file("/etc/initrd-release", NEWLINE, "NAME", &name, NULL) == -ENOENT)
+                parse_env_file("/usr/lib/initrd-release", NEWLINE, "NAME", &name, NULL);
+
+        if (name && strcmp(name, "dracut") == 0)
+                dracut = true;
+        
         return
                 hasmntopt(me, "x-initrd.mount") ||
-                streq(me->mnt_dir, "/usr");
+                (streq(me->mnt_dir, "/usr") && dracut);
 }
 
 static int add_mount(
-- 
X was an interactive protocol: 
alpha blending a full-screen image looked like slugs racing down the monitor. 
http://www.keithp.com/~keithp/talks/usenix2000/render.html
_______________________________________________
Pkg-systemd-maintainers mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-systemd-maintainers

Reply via email to