# HG changeset patch # User ernia # Date 1361564940 0 # Node ID a54958a0ecb32fafa90a27ccfbbb84ccd72dc638 # Parent df1ef8b7ecf0cc985a53534bca7245a57254fe16 udisks: add a polkit rule to make disk group use udisks without password, udisks should work now diff -r df1ef8b7ecf0 -r a54958a0ecb3 udisks/receipt --- a/udisks/receipt Fri Feb 22 17:25:25 2013 +0000 +++ b/udisks/receipt Fri Feb 22 20:29:00 2013 +0000 @@ -31,7 +31,8 @@ # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - mkdir -p $fs/etc $fs/usr/lib $fs/usr/share + mkdir -p $fs/etc/polkit-1/localauthority/90-mandatory.d \ + $fs/usr/lib $fs/usr/share cp -a $install/etc/dbus-1 $fs/etc cp -a $install/lib/udev $fs/etc cp -a $install/usr/bin $fs/usr @@ -40,4 +41,9 @@ cp -a $install/usr/lib/*.so* $fs/usr/lib cp -a $install/usr/share/*-1 $fs/usr/share cp -a $install/var $fs + #we don't have consolekit and don't want systemd so we need + #a rule to give disk group complete access to udisks2 + #methods without password. + cp $stuff/org.freedesktop.udisks2.pkla \ + $fs/etc/polkit-1/localauthority/90-mandatory.d } diff -r df1ef8b7ecf0 -r a54958a0ecb3 udisks/stuff/org.freedesktop.udisks2.pkla --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/udisks/stuff/org.freedesktop.udisks2.pkla Fri Feb 22 20:29:00 2013 +0000 @@ -0,0 +1,4 @@ +[No password required for disk group] +Identity=unix-group:disk +Action=org.freedesktop.udisks2.* +ResultAny=yes