Revision 25609,
618 bytes
checked in by jdreed, 12 years ago
(diff) |
In reactivate:
* Avoid race conditions by inhibiting dbus-daemon-launch-helper during a
chroot shutdown (Trac: #1052, probably)
|
-
Property svn:executable set to
*
|
Rev | Line | |
---|
[25401] | 1 | #!/bin/sh |
---|
| 2 | |
---|
| 3 | set -e |
---|
| 4 | |
---|
| 5 | . "$SETUP_DATA_DIR/common-data" |
---|
| 6 | . "$SETUP_DATA_DIR/common-functions" |
---|
| 7 | |
---|
| 8 | if [ -f "$CHROOT_SCRIPT_CONFIG" ]; then |
---|
| 9 | . "$CHROOT_SCRIPT_CONFIG" |
---|
| 10 | elif [ "$STATUS" = "ok" ]; then |
---|
| 11 | fatal "script-config file '$CHROOT_SCRIPT_CONFIG' does not exist" |
---|
| 12 | fi |
---|
| 13 | |
---|
| 14 | if [ $STAGE = "setup-start" ]; then |
---|
[25536] | 15 | info "Adding messagebus to access list for session ${SESSION_ID}" |
---|
| 16 | sed -i "/^root-users/s/$/,messagebus/" /var/lib/schroot/session/"${SESSION_ID}" |
---|
[25401] | 17 | fi |
---|
| 18 | |
---|
[25609] | 19 | if [ $STAGE = "setup-stop" ]; then |
---|
| 20 | info "Inhibiting dbus-daemon-launch-helper during chroot shutdown" |
---|
| 21 | touch /var/run/debathena-inhibit-dbus-helper |
---|
| 22 | fi |
---|
| 23 | |
---|
Note: See
TracBrowser
for help on using the repository browser.