summaryrefslogtreecommitdiffstats
path: root/src/initramfs/distro-specs
diff options
context:
space:
mode:
Diffstat (limited to 'src/initramfs/distro-specs')
-rw-r--r--src/initramfs/distro-specs/ubuntu/functions-11.0416
1 files changed, 14 insertions, 2 deletions
diff --git a/src/initramfs/distro-specs/ubuntu/functions-11.04 b/src/initramfs/distro-specs/ubuntu/functions-11.04
index b3ade327..7c4e4444 100644
--- a/src/initramfs/distro-specs/ubuntu/functions-11.04
+++ b/src/initramfs/distro-specs/ubuntu/functions-11.04
@@ -8,9 +8,21 @@
#
# General information about OpenSLX can be found under http://openslx.org
#
-# Configuration script for Ubuntu 10.10 configure OpenSLX Linux stateless
+# Configuration script for Ubuntu 11.04 configure OpenSLX Linux stateless
# clients (merged in stage2 with ubuntu/functions-default - and loaded within
# initial ramfs - stage3) It may overwrite settings from the default config
# file (/etc/functions)
-# no changes from default (as this is default at the moment)
+# configure hal, dbus, policykitd and services like that
+config_dreshal () {
+if [ "x$start_dreshal" = "xyes" ]; then
+ testmkd /mnt/var/lib/dbus
+ testmkd /mnt/var/lib/misc
+ rm -rf /mnt/etc/dbus-1/system.d/*etwork*anager.conf \
+ /mnt/etc/dbus-1/system.d/nm-* \
+ /mnt/etc/dbus-1/event.d/*NetworkManager*
+ for dir in 10-vendor.d 20-org.d 30-site.d 50-local.d 90-mandatory.d ; do
+ testmkd /mnt/var/lib/polkit-1/localauthority/${dir}
+ done
+fi
+}