From c6feedf9230730ce62d80677fe89ff898495f977 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20PORTAY?= Date: Sat, 31 Oct 2020 07:18:30 -0400 Subject: [PATCH] [mount] Ignore empty mountpoints --- src/modules/mount/main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/modules/mount/main.py b/src/modules/mount/main.py index 5ef7a2734..2e4de44fa 100644 --- a/src/modules/mount/main.py +++ b/src/modules/mount/main.py @@ -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