From 2b93b027d3a68b5d7ae26d0c2cd487eb5019d2a9 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 24 Apr 2012 16:42:42 +0200 Subject: remount: consolidate remount-api-vfs and remount-rootfs into one This has the advantage of removing a confusing warning by mount if the root directory is not listed in fstab. --- units/.gitignore | 2 +- units/quotacheck.service.in | 2 +- units/remount-rootfs.service | 20 -------------------- units/systemd-remount-api-vfs.service.in | 20 -------------------- units/systemd-remount-fs.service.in | 20 ++++++++++++++++++++ 5 files changed, 22 insertions(+), 42 deletions(-) delete mode 100644 units/remount-rootfs.service delete mode 100644 units/systemd-remount-api-vfs.service.in create mode 100644 units/systemd-remount-fs.service.in (limited to 'units') diff --git a/units/.gitignore b/units/.gitignore index 16cbf2df2b..68c174f1f5 100644 --- a/units/.gitignore +++ b/units/.gitignore @@ -28,7 +28,7 @@ systemd-readahead-replay.service serial-getty@.service systemd-kmsg-syslogd.service systemd-modules-load.service -systemd-remount-api-vfs.service +/systemd-remount-fs.service systemd-vconsole-setup.service systemd-auto-serial-getty.service systemd-shutdownd.service diff --git a/units/quotacheck.service.in b/units/quotacheck.service.in index d28b533f9c..d3343df264 100644 --- a/units/quotacheck.service.in +++ b/units/quotacheck.service.in @@ -8,7 +8,7 @@ [Unit] Description=File System Quota Check DefaultDependencies=no -After=systemd-readahead-collect.service systemd-readahead-replay.service remount-rootfs.service +After=systemd-readahead-collect.service systemd-readahead-replay.service systemd-remount-fs.service Before=local-fs.target shutdown.target ConditionPathExists=/sbin/quotacheck diff --git a/units/remount-rootfs.service b/units/remount-rootfs.service deleted file mode 100644 index 52a70743bc..0000000000 --- a/units/remount-rootfs.service +++ /dev/null @@ -1,20 +0,0 @@ -# This file is part of systemd. -# -# systemd is free software; you can redistribute it and/or modify it -# under the terms of the GNU Lesser General Public License as published by -# the Free Software Foundation; either version 2.1 of the License, or -# (at your option) any later version. - -[Unit] -Description=Remount Root FS -DefaultDependencies=no -Conflicts=shutdown.target -After=systemd-readahead-collect.service systemd-readahead-replay.service fsck-root.service -Before=local-fs-pre.target local-fs.target shutdown.target -Wants=local-fs-pre.target -ConditionPathExists=/etc/fstab - -[Service] -Type=oneshot -RemainAfterExit=yes -ExecStart=/bin/mount / -o remount diff --git a/units/systemd-remount-api-vfs.service.in b/units/systemd-remount-api-vfs.service.in deleted file mode 100644 index 60ff9c3f42..0000000000 --- a/units/systemd-remount-api-vfs.service.in +++ /dev/null @@ -1,20 +0,0 @@ -# This file is part of systemd. -# -# systemd is free software; you can redistribute it and/or modify it -# under the terms of the GNU Lesser General Public License as published by -# the Free Software Foundation; either version 2.1 of the License, or -# (at your option) any later version. - -[Unit] -Description=Remount API VFS -DefaultDependencies=no -Conflicts=shutdown.target -After=systemd-readahead-collect.service systemd-readahead-replay.service -Before=local-fs-pre.target local-fs.target shutdown.target -Wants=local-fs-pre.target -ConditionPathExists=/etc/fstab - -[Service] -Type=oneshot -RemainAfterExit=yes -ExecStart=@rootlibexecdir@/systemd-remount-api-vfs diff --git a/units/systemd-remount-fs.service.in b/units/systemd-remount-fs.service.in new file mode 100644 index 0000000000..5074ab5ddc --- /dev/null +++ b/units/systemd-remount-fs.service.in @@ -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 Lesser General Public License as published by +# the Free Software Foundation; either version 2.1 of the License, or +# (at your option) any later version. + +[Unit] +Description=Remount Root and Kernel File Systems +DefaultDependencies=no +Conflicts=shutdown.target +After=systemd-readahead-collect.service systemd-readahead-replay.service fsck-root.service +Before=local-fs-pre.target local-fs.target shutdown.target +Wants=local-fs-pre.target +ConditionPathExists=/etc/fstab + +[Service] +Type=oneshot +RemainAfterExit=yes +ExecStart=@rootlibexecdir@/systemd-remount-fs -- cgit v1.2.3-54-g00ecf