File: depthchargectl-bless.service

package info (click to toggle)
depthcharge-tools 0.6.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 732 kB
  • sloc: python: 6,280; sh: 650; makefile: 12
file content (31 lines) | stat: -rw-r--r-- 1,029 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# SPDX-License-Identifier: LGPL-2.1+

# depthcharge-tools depthchargectl-bless systemd service
# Copyright (C) 2019-2021 Alper Nebi Yasak <alpernebiyasak@gmail.com>
# See COPYRIGHT and LICENSE files for full copyright information.

# This is a modified copy of systemd-bless-boot.service from systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.

[Unit]
Description=Mark the current depthcharge partition as successful
Documentation=man:depthchargectl(8)
DefaultDependencies=no
Requires=boot-complete.target
After=local-fs.target boot-complete.target
Conflicts=shutdown.target
Before=shutdown.target
ConditionKernelCommandLine=cros_secure

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=depthchargectl bless

# systemd-bless-boot-generator symlinks its file to basic.target.wants.
[Install]
WantedBy=basic.target