blob: 930aa26edd449edf3312568aeabf5fb8d88dc2c9 [file] [log] [blame]
# Copyright 2017 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.
EAPI="5"
inherit systemd user
DESCRIPTION="Dev image init scripts for Lakitu"
HOMEPAGE=""
SRC_URI=""
LICENSE="BSD-Google"
SLOT="0"
KEYWORDS="*"
IUSE="+serial-getty"
RDEPEND="${DEPEND}
sys-apps/systemd
"
S="${WORKDIR}"
src_install() {
systemd_dounit "${FILESDIR}"/usr-local.mount
systemd_enable_service local-fs.target usr-local.mount
systemd_dounit "${FILESDIR}"/usr-local-remount.service
systemd_newtmpfilesd "${FILESDIR}"/dev-image.tmpfiles dev-image.conf
use serial-getty && systemd_enable_service getty.target serial-getty@ttyS1.service
}