5 # initramfs-tools header
21 # live-initramfs header
23 . /scripts/live-functions
25 log_begin_msg "Grant administrative PolicyKit pivilieges to default user..."
27 # live-initramfs script
29 # configure PolicyKit in live session
30 cat << EOF > /root/etc/PolicyKit/PolicyKit.conf
32 <?xml version="1.0" encoding="UTF-8"?> <!-- -*- XML -*- -->
34 <!DOCTYPE pkconfig PUBLIC "-//freedesktop//DTD PolicyKit Configuration 1.0//EN"
35 "http://hal.freedesktop.org/releases/PolicyKit/1.0/config.dtd">
37 <!-- See the manual page PolicyKit.conf(5) for file format -->
39 <config version="0.1">
41 <return result="yes"/>
43 <!-- don't ask password for user in live session -->
44 <match user="$USERNAME">
45 <return result="yes"/>
47 <define_admin_auth group="admin"/>