units: add service file that remounts the root file system
This commit is contained in:
parent
1afbdcb06b
commit
90685f7d12
|
@ -161,6 +161,7 @@ dist_systemunit_DATA = \
|
||||||
units/hwclock-load.service \
|
units/hwclock-load.service \
|
||||||
units/hwclock-save.service \
|
units/hwclock-save.service \
|
||||||
units/sysctl.service \
|
units/sysctl.service \
|
||||||
|
units/remount-rootfs.service \
|
||||||
units/printer.target \
|
units/printer.target \
|
||||||
units/bluetooth.target \
|
units/bluetooth.target \
|
||||||
units/smartcard.target
|
units/smartcard.target
|
||||||
|
|
20
units/remount-rootfs.service
Normal file
20
units/remount-rootfs.service
Normal 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
|
Loading…
Reference in a new issue