diff options
-rw-r--r-- | cloudinit/CloudConfig/cc_mounts.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cloudinit/CloudConfig/cc_mounts.py b/cloudinit/CloudConfig/cc_mounts.py index 32cfe02e..8177d305 100644 --- a/cloudinit/CloudConfig/cc_mounts.py +++ b/cloudinit/CloudConfig/cc_mounts.py @@ -24,8 +24,12 @@ def is_mdname(name): # return true if this is a metadata service name if name in [ "ami", "root", "swap" ]: return True + # names 'ephemeral0' or 'ephemeral1' + # 'ebs[0-9]' appears when '--block-device-mapping sdf=snap-d4d90bbc' + for enumname in ( "ephemeral", "ebs" ): + if name.startswith(enumname) and name.find(":") == -1: + return True if name.startswith("ephemeral") and name.find(":") == -1: - return True return False def handle(name,cfg,cloud,log,args): |