[mount] Ignore empty mountpoints
This commit is contained in:
parent
54fd1f4b26
commit
c6feedf923
@ -39,6 +39,9 @@ def mount_partition(root_mount_point, partition, partitions):
|
|||||||
# Create mount point with `+` rather than `os.path.join()` because
|
# Create mount point with `+` rather than `os.path.join()` because
|
||||||
# `partition["mountPoint"]` starts with a '/'.
|
# `partition["mountPoint"]` starts with a '/'.
|
||||||
raw_mount_point = partition["mountPoint"]
|
raw_mount_point = partition["mountPoint"]
|
||||||
|
if not raw_mount_point:
|
||||||
|
return
|
||||||
|
|
||||||
mount_point = root_mount_point + raw_mount_point
|
mount_point = root_mount_point + raw_mount_point
|
||||||
|
|
||||||
# Ensure that the created directory has the correct SELinux context on
|
# Ensure that the created directory has the correct SELinux context on
|
||||||
|
Loading…
Reference in New Issue
Block a user