Merge pull request #1078 from a-wai/rawfs-allow-use-of-symlinks

[rawfs] Allow use of symlinks in configuration
This commit is contained in:
Adriaan de Groot 2019-02-06 03:48:19 -05:00 committed by GitHub
commit dc03ced4bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -131,7 +131,7 @@ class RawFSItem:
def __init__(self, config, device, fs):
libcalamares.utils.debug("Adding an entry for raw copy of {} to {}".format(
config["source"], device))
self.source = config["source"]
self.source = os.path.realpath(config["source"])
# If source is a mount point, look for the actual device mounted on it
if os.path.ismount(self.source):
procmounts = open("/proc/mounts", "r")