openstack-ansible-lxc_hosts/templates/var-lib-machines.mount
Vadim Kuznetsov 0fffb61ab7 ensure the mount unit is started after reboot
/var/lib/machines was not mounted after reboot
because of missing install section

Change-Id: I10f3b83e63ccdf08f9f782dee7f5be1fd7bbe139
2018-11-13 13:31:01 -05:00

20 lines
663 B
SYSTEMD

# 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=Virtual Machine and Container Storage
ConditionPathExists=/var/lib/machines.raw
[Mount]
What=/var/lib/machines.raw
Where=/var/lib/machines
Type=btrfs
Options=loop,defaults,noatime,nodiratime,compress=lzo,commit=120,{{ (ansible_kernel is version_compare('4.5', '>=')) | ternary('space_cache=v2', 'space_cache') }}
[Install]
WantedBy=multi-user.target