diff options
Diffstat (limited to 'initramfs/distro-specs/suse/functions-11.2')
-rw-r--r-- | initramfs/distro-specs/suse/functions-11.2 | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/initramfs/distro-specs/suse/functions-11.2 b/initramfs/distro-specs/suse/functions-11.2 index 62ef1142..ae8008b9 100644 --- a/initramfs/distro-specs/suse/functions-11.2 +++ b/initramfs/distro-specs/suse/functions-11.2 @@ -41,11 +41,13 @@ config_dreshal () { local start=1 local stop=10 if [ "x$start_dreshal" = "xyes" ]; then - testmkd /mnt/var/lib/misc - testmkd /mnt/var/run/PolicyKit polkituser:polkituser - testmkd /mnt/var/lib/PolicyKit polkituser:polkituser - testmkd /mnt/var/run/dbus/at_console/pool - + for dir in /var/lib/misc /var/run/ConsoleKit \ + "/var/run/PolicyKit polkituser:polkituser" \ + "/var/lib/PolicyKit polkituser:polkituser" \ + "/var/run/dbus/at_console/pool"; do + testmkd /mnt${dir} + done + # enable access to removable devices sed -i /mnt/etc/PolicyKit/PolicyKit.conf \ -e "s/\(<\/config>\)/ @@new@@\n\1/" \ -e "s/@@new@@/<match action=\"@@action@@\">\n@@return@@\n <\/match>/" \ @@ -61,6 +63,10 @@ if [ "x$start_dreshal" = "xyes" ]; then # create directories and set permissions with user and group id testmkd /mnt/var/run/dbus messagebus:messagebus testmkd /mnt/var/lib/dbus + # console-kit-daemon is often not started properly (why ever) + sed -i /mnt/etc/init.d/dbus \ + -e '/start_daemon -f $DBUS_D/a\ +\ \ \ \ \ \ \ \ start_daemon -f /usr/sbin/console-kit-daemon' rm -rf /mnt/etc/dbus-1/system.d/*etwork*anager.conf \ /mnt/etc/dbus-1/system.d/nm-* \ |