| 1 |
# Copyright (C) 2013 Colin Walters <[email protected]> |
| 2 |
# |
| 3 |
# This library is free software; you can redistribute it and/or |
| 4 |
# modify it under the terms of the GNU Lesser General Public |
| 5 |
# License as published by the Free Software Foundation; either |
| 6 |
# version 2 of the License, or (at your option) any later version. |
| 7 |
# |
| 8 |
# This library is distributed in the hope that it will be useful, |
| 9 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 11 |
# Lesser General Public License for more details. |
| 12 |
# |
| 13 |
# You should have received a copy of the GNU Lesser General Public |
| 14 |
# License along with this library. If not, see <https://www.gnu.org/licenses/>. |
| 15 |
|
| 16 |
[Unit] |
| 17 |
Description=OSTree Prepare OS/ |
| 18 |
Documentation=man:ostree(1) |
| 19 |
DefaultDependencies=no |
| 20 |
ConditionKernelCommandLine=ostree |
| 21 |
ConditionPathExists=/etc/initrd-release |
| 22 |
After=sysroot.mount |
| 23 |
Requires=sysroot.mount |
| 24 |
Before=initrd-root-fs.target |
| 25 |
|
| 26 |
OnFailure=emergency.target |
| 27 |
OnFailureJobMode=isolate |
| 28 |
|
| 29 |
[Service] |
| 30 |
Type=oneshot |
| 31 |
ExecStart=/usr/lib/ostree/ostree-prepare-root /sysroot |
| 32 |
StandardInput=null |
| 33 |
StandardOutput=journal |
| 34 |
StandardError=journal+console |
| 35 |
RemainAfterExit=yes |