units: add service file that remounts the root file system

This commit is contained in:
Lennart Poettering 2010-08-20 03:27:23 +02:00
parent 1afbdcb06b
commit 90685f7d12
2 changed files with 21 additions and 0 deletions

View File

@ -161,6 +161,7 @@ dist_systemunit_DATA = \
units/hwclock-load.service \
units/hwclock-save.service \
units/sysctl.service \
units/remount-rootfs.service \
units/printer.target \
units/bluetooth.target \
units/smartcard.target

View File

@ -0,0 +1,20 @@
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
[Unit]
Description=Remount Root FS
DefaultDependencies=no
Conflicts=shutdown.target
Before=shutdown.target local-fs.target
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/bin/mount / -o remount
[Install]
WantedBy=sysinit.target