diff --git a/dracut-module-setup.sh b/dracut-module-setup.sh index 6af8f3b..99685fe 100755 --- a/dracut-module-setup.sh +++ b/dracut-module-setup.sh @@ -1088,6 +1088,9 @@ install() { # Also redirect dracut-emergency to kdump error handler ln_r "$systemdsystemunitdir/emergency.service" "$systemdsystemunitdir/dracut-emergency.service" + # Disable ostree as we only need the physical root + systemctl -q --root "$initdir" mask ostree-prepare-root.service + # Check for all the devices and if any device is iscsi, bring up iscsi # target. Ideally all this should be pushed into dracut iscsi module # at some point of time.