summaryrefslogtreecommitdiff
path: root/systemd
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2016-12-08 13:27:53 +0100
committerScott Moser <smoser@brickies.net>2017-07-25 15:41:23 -0400
commit1f5489c258a26f4e26261c40786537951d67df1e (patch)
tree891a5a329375dfa920b000a7e33d242d4edeb637 /systemd
parentebdbf30c0274f078f7a66f6dc9efc8a22a220757 (diff)
downloadvyos-cloud-init-1f5489c258a26f4e26261c40786537951d67df1e.tar.gz
vyos-cloud-init-1f5489c258a26f4e26261c40786537951d67df1e.zip
systemd: make systemd-fsck run after cloud-init.service
cloud-init.service may write filesystems (fs_setup) or re-partition (disk_setup) disks. If systemd-fsck is running on a device while that is occuring then the partitioning or mkfs might fail due to the device being busy. Alternatively, the fsck might fail and cause subsequent mount to fail. LP: #1691489
Diffstat (limited to 'systemd')
-rw-r--r--systemd/systemd-fsck@.service.d/cloud-init.conf2
1 files changed, 2 insertions, 0 deletions
diff --git a/systemd/systemd-fsck@.service.d/cloud-init.conf b/systemd/systemd-fsck@.service.d/cloud-init.conf
new file mode 100644
index 00000000..0bfa465b
--- /dev/null
+++ b/systemd/systemd-fsck@.service.d/cloud-init.conf
@@ -0,0 +1,2 @@
+[Unit]
+After=cloud-init.service