forked from mirrored-repos/manjaro-tools
[util-iso] add polkit user rules
- see also: https://gitlab.manjaro.org/profiles-and-settings/iso-profiles/-/merge_requests/180
This commit is contained in:
parent
c579446076
commit
35f27fc4f3
2 changed files with 13 additions and 0 deletions
|
@ -248,6 +248,17 @@ style:
|
|||
sidebarTextHighlight: "\"${sidebartexthighlight}"\"" > $1/usr/share/calamares/branding/manjaro/branding.desc
|
||||
}
|
||||
|
||||
configure_polkit_user_rules(){
|
||||
msg2 "Configuring polkit user rules"
|
||||
echo "/* Stop asking the user for a password while they are in a live session
|
||||
*/
|
||||
polkit.addRule(function(action, subject) {
|
||||
if (subject.user == \"${username}\")
|
||||
{
|
||||
return polkit.Result.YES;
|
||||
}
|
||||
});" > $1/etc/polkit-1/rules.d/49-nopasswd-live.rules
|
||||
|
||||
configure_logind(){
|
||||
msg2 "Configuring logind ..."
|
||||
local conf=$1/etc/systemd/logind.conf
|
||||
|
|
|
@ -396,6 +396,8 @@ make_image_live() {
|
|||
configure_branding "${path}"
|
||||
msg "Done [Distribution: Release ${dist_release} Codename ${dist_codename}]"
|
||||
fi
|
||||
|
||||
configure_polkit_user_rules
|
||||
|
||||
reset_pac_conf "${path}"
|
||||
|
||||
|
|
Loading…
Reference in a new issue