Prepend ‘/dev/’ to ‘device’ entry of swap/ephemeral virtual type.
Matches device name and returns prefix, suffix.
get root device name from image meta data. If it isn’t specified, return None.
remove leading ‘/dev/’.
remove both leading /dev/ and xvd or sd or vd.