| # Copyright 2016 The Chromium OS Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| description "Mount /media/removable for ARC." |
| author "chromium-os-dev@chromium.org" |
| |
| # This job is started via arc-network.conf. |
| # This job is stopped via arc-lifetime.conf. |
| |
| env LOGFILE=/var/log/arc-removable-media.log |
| env CONTAINER_ROOT=\ |
| /opt/google/containers/arc-removable-media/mountpoints/container-root |
| env SOURCE=/media/removable |
| env DEST=/run/arc/media/removable |
| |
| script |
| exec > $LOGFILE 2>&1 |
| echo "$(date --rfc-3339=ns): Starting arc-removable-media" |
| set -x |
| exec mount-passthrough-jailed $SOURCE $DEST $CONTAINER_ROOT 007 |
| end script |
| |
| post-stop script |
| exec >> $LOGFILE 2>&1 |
| echo "$(date --rfc-3339=ns): Post-stop arc-removable-media" |
| end script |