]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
base/module-setup.sh: do not include systemd-timestamp
authorHarald Hoyer <harald@redhat.com>
Fri, 12 Jul 2013 08:13:49 +0000 (10:13 +0200)
committerHarald Hoyer <harald@redhat.com>
Fri, 12 Jul 2013 08:14:15 +0000 (10:14 +0200)
when using systemd in the initramfs

modules.d/99base/module-setup.sh

index f3caf289627812edfed1700fc7a36f505c2e9708..d35cba50af2f7fc9de8abfa8bfcfb64751dbb0fe 100755 (executable)
@@ -60,7 +60,11 @@ install() {
     fi
 
     mkdir -p "${initdir}/var"
-    dracut_install -o $systemdutildir/systemd-timestamp
+
+    if ! dracut_module_included "systemd"; then
+        dracut_install -o $systemdutildir/systemd-timestamp
+    fi
+
     if [[ $realinitpath ]]; then
         for i in $realinitpath; do
             echo "rd.distroinit=$i"