[SCM] live-initramfs branch, debian-next, updated. debian/1.236.1-1-5-ged914ac

Daniel Baumann daniel at debian.org
Sun May 16 08:59:23 UTC 2010


The following commit has been merged in the debian-next branch:
commit ed914ac3e0df48be516a1392b0637bb568280def
Author: Daniel Baumann <daniel at debian.org>
Date:   Sun May 16 10:50:37 2010 +0200

    Moving 44pk_allow to live-sysinit.

diff --git a/scripts/live-bottom/44pk_allow b/scripts/live-bottom/44pk_allow
deleted file mode 100755
index a211880..0000000
--- a/scripts/live-bottom/44pk_allow
+++ /dev/null
@@ -1,71 +0,0 @@
-#!/bin/sh
-
-#set -e
-
-# initramfs-tools header
-
-PREREQ=""
-
-prereqs()
-{
-	echo "${PREREQ}"
-}
-
-case "${1}" in
-	prereqs)
-		prereqs
-		exit 0
-		;;
-esac
-
-# live-initramfs header
-
-. /scripts/live-functions
-
-log_begin_msg "Grant administrative PolicyKit pivilieges to default user"
-
-# live-initramfs script
-
-# configure PolicyKit in live session
-mkdir -p /root/etc/PolicyKit
-cat << EOF > /root/etc/PolicyKit/PolicyKit.conf
-<?xml version="1.0" encoding="UTF-8"?> <!-- -*- XML -*- -->
-
-<!DOCTYPE pkconfig PUBLIC "-//freedesktop//DTD PolicyKit Configuration 1.0//EN"
-"http://hal.freedesktop.org/releases/PolicyKit/1.0/config.dtd">
-
-<!-- See the manual page PolicyKit.conf(5) for file format -->
-
-<config version="0.1">
-	<match user="root">
-		<return result="yes"/>
-	</match>
-EOF
-
-if [ -n "${USERNAME}" ]
-then
-	cat << EOF >> /root/etc/PolicyKit/PolicyKit.conf
-	<!-- don't ask password for user in live session -->
-	<match user="$USERNAME">
-		<return result="yes"/>
-	</match>
-EOF
-fi
-
-cat << EOF >> /root/etc/PolicyKit/PolicyKit.conf
-	<define_admin_auth group="admin"/>
-</config>
-EOF
-
-mkdir -p /root/var/lib/polkit-1/localauthority/10-vendor.d
-cat << EOF > /root/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
-Action=*
-ResultAny=no
-ResultInactive=no
-ResultActive=yes
-EOF
-
-log_end_msg

-- 
live-initramfs



More information about the debian-live-changes mailing list