diff --git a/utils/mkinitrd.nix b/utils/mkinitrd.nix
index f8c11ed..6cc08d9 100644
--- a/utils/mkinitrd.nix
+++ b/utils/mkinitrd.nix
@@ -137,6 +137,9 @@ pkgs.writeShellApplication {
     cp ${self.packages.${system}.dbus-broker.out}/usr/bin/* usr/bin
     cp ${self.packages.${system}.dbus-broker.out}/lib/systemd/system/* usr/lib/systemd/system
     cp -Pr ${pkgs.dbus.out}/share/* usr/share/
+    find usr/share/ -type d -exec chmod 755 {} \;
+    sed -i 's#/nix/store.*/share#/usr/share#' usr/share/xml/dbus-1/*
+    sed -i 's#/nix/store.*/libexec#/usr/bin#' usr/share/dbus-1/system.conf
 
     # enable dbus
     ln -sf ../dbus-broker.service usr/lib/systemd/system/basic.target.wants/dbus.service