[mount] Ignore empty mountpoints

This commit is contained in:
Gaël PORTAY 2020-10-31 07:18:30 -04:00
parent 54fd1f4b26
commit c6feedf923

View File

@ -39,6 +39,9 @@ def mount_partition(root_mount_point, partition, partitions):
# Create mount point with `+` rather than `os.path.join()` because
# `partition["mountPoint"]` starts with a '/'.
raw_mount_point = partition["mountPoint"]
if not raw_mount_point:
return
mount_point = root_mount_point + raw_mount_point
# Ensure that the created directory has the correct SELinux context on