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 f3caf28..d35cba5 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"