This changes does mkdir -p /etc/tgt/conf.d to avoid the following
error, when nova volume is enabled (perhaps limited to xenapi)
tee: /etc/tgt/conf.d/nova.conf: No such file or directory
Change-Id: Ia5804c7ff50fbf1bc41e14ad13923c9261b000e0
... | ... |
@@ -1746,6 +1746,7 @@ elif is_service_enabled n-vol; then |
1746 | 1746 |
|
1747 | 1747 |
# Setup the tgt configuration file |
1748 | 1748 |
if [[ ! -f /etc/tgt/conf.d/nova.conf ]]; then |
1749 |
+ sudo mkdir -p /etc/tgt/conf.d |
|
1749 | 1750 |
echo "include $NOVA_DIR/volumes/*" | sudo tee /etc/tgt/conf.d/nova.conf |
1750 | 1751 |
fi |
1751 | 1752 |
|