 +ostree=$(getarg ostree=)
 +if test -n $ostree; then
 +    NEWROOT_MOUNTPOINT=${NEWROOT}
-+    NEWROOT=${NEWROOT}/ostree/$ostree
++    NEWROOT=${NEWROOT}/ostree/deploy/$ostree
 +else
 +    NEWROOT_MOUNTPOINT=$NEWROOT
 +fi

 	warn "file a bug against dracut."
 	emergency_shell
diff --git a/modules.d/99base/module-setup.sh b/modules.d/99base/module-setup.sh
index 2bcb6a1..fec8605 100755
--- a/modules.d/99base/module-setup.sh
+++ b/modules.d/99base/module-setup.sh
@@ -40,6 +40,10 @@ install() {
     mkdir -p ${initdir}/tmp
 
     dracut_install switch_root || dfatal "Failed to install switch_root"

From 38d464be708874ce722d0c2e9808224ad9221030 Mon Sep 17 00:00:00 2001
From: Colin Walters <walters@verbum.org>
Date: Sun, 16 Dec 2012 15:43:29 -0500
Subject: [PATCH] Support OSTree

If the kernel command line includes an "ostree=foo" argument, assume
