| 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 Remount OS/ Bind Mounts |
| 18 |
Documentation=man:ostree(1) |
| 19 |
DefaultDependencies=no |
| 20 |
ConditionKernelCommandLine=ostree |
| 21 |
OnFailure=emergency.target |
| 22 |
Conflicts=umount.target |
| 23 |
# Run after core mounts |
| 24 |
After=-.mount var.mount |
| 25 |
After=systemd-remount-fs.service |
| 26 |
# But we run *before* most other core bootup services that need write access to /etc and /var |
| 27 |
Before=local-fs.target umount.target |
| 28 |
Before=systemd-random-seed.service plymouth-read-write.service systemd-journal-flush.service |
| 29 |
Before=systemd-tmpfiles-setup.service systemd-rfkill.service systemd-rfkill.socket |
| 30 |
|
| 31 |
[Service] |
| 32 |
Type=oneshot |
| 33 |
RemainAfterExit=yes |
| 34 |
ExecStart=/usr/lib/ostree/ostree-remount |
| 35 |
StandardInput=null |
| 36 |
StandardOutput=journal |
| 37 |
StandardError=journal+console |
| 38 |
|
| 39 |
[Install] |
| 40 |
WantedBy=local-fs.target |