From a9f7e5cfa5bd2ce692178c3784cc08271276dcac Mon Sep 17 00:00:00 2001 From: Ben Howard Date: Wed, 2 Jul 2014 11:20:54 -0600 Subject: Fix for cc_grub_dpkg ignoring /dev/xvda devices as candidates (LP: 1336855). --- cloudinit/config/cc_grub_dpkg.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cloudinit/config/cc_grub_dpkg.py') diff --git a/cloudinit/config/cc_grub_dpkg.py b/cloudinit/config/cc_grub_dpkg.py index b3ce6fb6..d96e85cf 100644 --- a/cloudinit/config/cc_grub_dpkg.py +++ b/cloudinit/config/cc_grub_dpkg.py @@ -46,7 +46,8 @@ def handle(_name, cfg, _cloud, log, _args): idevs_empty = "false" if idevs is None: idevs = "/dev/sda" - for dev in ("/dev/sda", "/dev/vda", "/dev/sda1", "/dev/vda1"): + for dev in ("/dev/sda", "/dev/vda", "/dev/xvda", + "/dev/sda1", "/dev/vda1", "/dev/xvda1"): if os.path.exists(dev): idevs = dev break -- cgit v1.2.3