Debian Codegraph @

src/boot/ostree-finalize-staged-hold.service

raw
1 # Copyright (C) 2018 Red Hat, Inc.
2 # Copyright (C) 2022 Endless OS Foundation LLC
3 #
4 # This library is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU Lesser General Public
6 # License as published by the Free Software Foundation; either
7 # version 2 of the License, or (at your option) any later version.
8 #
9 # This library is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 # Lesser General Public License for more details.
13 #
14 # You should have received a copy of the GNU Lesser General Public
15 # License along with this library. If not, see <https://www.gnu.org/licenses/>.
16
17 # See https://github.com/ostreedev/ostree/pull/2543 for background.
18 [Unit]
19 Description=Hold /boot Open for OSTree Finalize Staged Deployment
20 Documentation=man:ostree(1)
21 ConditionPathExists=/run/ostree-booted
22 DefaultDependencies=no
23
24 RequiresMountsFor=/sysroot /boot
25 After=local-fs.target
26 Before=basic.target final.target
27
28 [Service]
29 Type=exec
30
31 # This is explicitly run in the root namespace to ensure an automounted
32 # /boot doesn't time out since autofs doesn't handle mount namespaces.
33 #
34 # https://bugzilla.redhat.com/show_bug.cgi?id=2056090
35 ExecStart=+/usr/bin/ostree admin finalize-staged --hold