From 77320bfcdafa4ba63bb59be63d11c4d7414e5f92 Mon Sep 17 00:00:00 2001 From: dermotbradley Date: Sat, 8 May 2021 02:54:56 +0100 Subject: cc_disk_setup.py: remove UDEVADM_CMD definition as not used (#886) UDEVADM_CMD is defined but not actually used in cc_disk_setup.py so remove it. Also modify the comment at top of read_parttbl function to remove the reference to udevadm which implies it is used to scan the partition table. --- cloudinit/config/cc_disk_setup.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'cloudinit/config') diff --git a/cloudinit/config/cc_disk_setup.py b/cloudinit/config/cc_disk_setup.py index a582924b..22af3813 100644 --- a/cloudinit/config/cc_disk_setup.py +++ b/cloudinit/config/cc_disk_setup.py @@ -107,7 +107,6 @@ import shlex frequency = PER_INSTANCE # Define the commands to use -UDEVADM_CMD = subp.which('udevadm') SFDISK_CMD = subp.which("sfdisk") SGDISK_CMD = subp.which("sgdisk") LSBLK_CMD = subp.which("lsblk") @@ -686,9 +685,8 @@ def get_partition_layout(table_type, size, layout): def read_parttbl(device): """ - Use `partprobe` or `blkdev` instead of `udevadm`. `Partprobe` is - preferred over `blkdev` since it is more reliably able to probe - the partition table. + `Partprobe` is preferred over `blkdev` since it is more reliably + able to probe the partition table. """ if PARTPROBE_CMD is not None: probe_cmd = [PARTPROBE_CMD, device] -- cgit v1.2.3