  	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
+index a512868..7839081 100755
 --- a/modules.d/99base/module-setup.sh
 +++ b/modules.d/99base/module-setup.sh
-@@ -40,6 +40,10 @@ install() {
+@@ -41,6 +41,10 @@ install() {
      mkdir -p ${initdir}/tmp
  
      dracut_install switch_root || dfatal "Failed to install switch_root"

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

 
     if ! getargbool 0 rd.skipfsck; then
diff --git a/modules.d/99base/init.sh b/modules.d/99base/init.sh
index 16c8958..1212b23 100755
--- a/modules.d/99base/init.sh
+++ b/modules.d/99base/init.sh
@@ -200,6 +200,14 @@ unset queuetriggered
