commit:     20f2105ed09fb8e29fb3a015b901d4011bbb4292
Author:     Ben Kohler <bkohler <AT> gentoo <DOT> org>
AuthorDate: Tue Mar  1 16:06:13 2022 +0000
Commit:     Ben Kohler <bkohler <AT> gentoo <DOT> org>
CommitDate: Tue Mar  1 16:06:13 2022 +0000
URL:        https://gitweb.gentoo.org/proj/releng.git/commit/?id=20f2105e

specs/amd64/livegui: allow root for mounts

Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org>

 releases/specs/amd64/livegui/files/fsscript-stage2.sh | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/releases/specs/amd64/livegui/files/fsscript-stage2.sh 
b/releases/specs/amd64/livegui/files/fsscript-stage2.sh
index 32931eb6..7c11b074 100755
--- a/releases/specs/amd64/livegui/files/fsscript-stage2.sh
+++ b/releases/specs/amd64/livegui/files/fsscript-stage2.sh
@@ -60,4 +60,10 @@ polkit.addRule(function(action, subject) {
     if (action.id == "org.kde.kpmcore.externalcommand.init") {
         return polkit.Result.YES;
     }
+});
+
+polkit.addRule(function(action, subject) {
+    if (action.id == "org.freedesktop.udisks2.filesystem-mount-system") {
+        return polkit.Result.YES;
+    }
 });" > /etc/polkit-1/rules.d/livegui-root-tools.rules

Reply via email to