You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datalab.apache.org by lf...@apache.org on 2021/10/07 10:29:52 UTC
[incubator-datalab] 03/06: [DATALAB-2409]: fixed sed for managing
/opt mount on azure
This is an automated email from the ASF dual-hosted git repository.
lfrolov pushed a commit to branch DATALAB-2409
in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git
commit 2f278fb9803a35b2a1d5d4be5b562e35196d9da9
Author: leonidfrolov <fr...@gmail.com>
AuthorDate: Wed Oct 6 14:36:24 2021 +0300
[DATALAB-2409]: fixed sed for managing /opt mount on azure
---
infrastructure-provisioning/src/general/lib/azure/actions_lib.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/infrastructure-provisioning/src/general/lib/azure/actions_lib.py b/infrastructure-provisioning/src/general/lib/azure/actions_lib.py
index b83aba7..756dd27 100644
--- a/infrastructure-provisioning/src/general/lib/azure/actions_lib.py
+++ b/infrastructure-provisioning/src/general/lib/azure/actions_lib.py
@@ -1240,7 +1240,7 @@ def ensure_right_mount_paths():
if disk != '' and disk not in datalab.fab.conn.sudo('lsblk | grep -E "(mnt|media)"').stdout and disk not in datalab.fab.conn.sudo("fdisk -l | grep 'BIOS boot'").stdout:
datalab.fab.conn.sudo("umount -l /opt")
datalab.fab.conn.sudo("mount /dev/{}1 /opt".format(disk))
- datalab.fab.conn.sudo('sed -i "/opt/ s|/dev/{}|/dev/{}1|g" /etc/fstab'.format(opt_disk, disk))
+ datalab.fab.conn.sudo('sed -i "/opt/ s|/dev/{}1|/dev/{}1|g" /etc/fstab'.format(opt_disk, disk))
def prepare_vm_for_image(creds=False, os_user='', hostname='', keyfile=''):
if creds:
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datalab.apache.org
For additional commands, e-mail: commits-help@datalab.apache.org