Merge pull request #1570 from gportay/mount-skip-if-filesystem-is-unformatted

[mount] Ignore unformatted filesystems only
main
Adriaan de Groot 5 years ago committed by GitHub
commit 009b3b460b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -56,7 +56,7 @@ def mount_partition(root_mount_point, partition, partitions):
raise raise
fstype = partition.get("fs", "").lower() fstype = partition.get("fs", "").lower()
if not fstype or fstype == "unformatted": if fstype == "unformatted":
return return
if fstype == "fat16" or fstype == "fat32": if fstype == "fat16" or fstype == "fat32":

@ -12,10 +12,13 @@
# Extra filesystems to mount. The key's value is a list of entries; each # Extra filesystems to mount. The key's value is a list of entries; each
# entry has four keys: # entry has four keys:
# - device The device node to mount # - device The device node to mount
# - fs The filesystem type to use # - fs (optional) The filesystem type to use
# - mountPoint Where to mount the filesystem # - mountPoint Where to mount the filesystem
# - options (optional) Extra options to pass to mount(8) # - options (optional) Extra options to pass to mount(8)
# #
# The device is not mounted if the mountPoint is unset or if the fs is
# set to unformatted.
#
extraMounts: extraMounts:
- device: proc - device: proc
fs: proc fs: proc

Loading…
Cancel
Save