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
31 <?xml version="1.0" encoding="UTF-8"?> <!-- -*- XML -*- -->
33 <!DOCTYPE pkconfig PUBLIC "-//freedesktop//DTD PolicyKit Configuration 1.0//EN"
34 "http://hal.freedesktop.org/releases/PolicyKit/1.0/config.dtd">
36 <!-- See the manual page PolicyKit.conf(5) for file format -->
38 <config version="0.1">
40 <return result="yes"/>
42 <!-- don't ask password for user in live session -->
43 <match user="$USERNAME">
44 <return result="yes"/>
46 <define_admin_auth group="admin"/>