xbps-casper: fix perms on polkit dirs, renamed polkit script.

This commit is contained in:
Juan RP 2011-11-09 20:27:09 +01:00
parent 4bc2d4ee0a
commit 162bfe4697
2 changed files with 5 additions and 5 deletions

View File

@ -25,8 +25,8 @@ fi
log_begin_msg "$DESCRIPTION"
# configure PolicyKit in live session
mkdir -p ${rootmnt}/etc/PolicyKit
cat << EOF > /root/etc/PolicyKit/PolicyKit.conf
mkdir -m0755 -p ${rootmnt}/etc/PolicyKit
cat << EOF > ${rootmnt}/etc/PolicyKit/PolicyKit.conf
<?xml version="1.0" encoding="UTF-8"?> <!-- -*- XML -*- -->
<!DOCTYPE pkconfig PUBLIC "-//freedesktop//DTD PolicyKit Configuration 1.0//EN"
@ -46,8 +46,8 @@ cat << EOF > /root/etc/PolicyKit/PolicyKit.conf
</config>
EOF
mkdir -p ${rootmnt}/var/lib/polkit-1/localauthority/10-vendor.d
cat << EOF > /root/var/lib/polkit-1/localauthority/10-vendor.d/10-live-cd.pkla
mkdir -m0750 -p ${rootmnt}/var/lib/polkit-1/localauthority/10-vendor.d
cat << EOF > ${rootmnt}/var/lib/polkit-1/localauthority/10-vendor.d/10-live-cd.pkla
# Policy to allow the livecd user to bypass policykit
[Live CD user permissions]
Identity=unix-user:$USERNAME

View File

@ -1,6 +1,6 @@
# Template file for 'xbps-casper'
pkgname=xbps-casper
_localver=0.21 # XBPS package version
_localver=0.22 # XBPS package version
_distver=1.236 # This should match the upstream (Ubuntu) version
version=${_localver}.${_distver}
short_desc="Run a live preinstalled system from read-only media"