blob: 02e87c753d7071e097e97a1aae59d7624cbc325b [file] [log] [blame]
# Copyright 2020 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 "Factory shim hacked pre-start"
# author "chromium-os-dev@googlegroups.com"
#
# /tmp and /run are mounted as tmpfs by upstart, but we want to preserve
# them after switch_root. Hack this upstart job to unmount /tmp and /run.
start on startup
task
script
umount /tmp || true
umount /run || true
end script