Merge pull request #1226 from a-wai/fix-unpackfs-for-rootfs

[unpackfs] Enable to use "/" as a source
This commit is contained in:
Adriaan de Groot 2019-08-29 10:25:32 -04:00 committed by GitHub
commit b685583060
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -208,7 +208,7 @@ class UnpackOperation:
imgbasename = os.path.splitext( imgbasename = os.path.splitext(
os.path.basename(entry.source))[0] os.path.basename(entry.source))[0]
imgmountdir = os.path.join(source_mount_path, imgbasename) imgmountdir = os.path.join(source_mount_path, imgbasename)
os.mkdir(imgmountdir) os.makedirs(imgmountdir, exist_ok=True)
self.mount_image(entry, imgmountdir) self.mount_image(entry, imgmountdir)