From e8fb96d1ff021c9a94b594bdd6b067a20e5f4c63 Mon Sep 17 00:00:00 2001 From: "Carl D. Roth" Date: Fri, 2 Feb 2018 19:28:34 -0800 Subject: [PATCH] Support local file paths with colons --- packages/base/all/initrds/loader-initrd-files/src/bin/swiget | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/base/all/initrds/loader-initrd-files/src/bin/swiget b/packages/base/all/initrds/loader-initrd-files/src/bin/swiget index 333674a9..841ea130 100755 --- a/packages/base/all/initrds/loader-initrd-files/src/bin/swiget +++ b/packages/base/all/initrds/loader-initrd-files/src/bin/swiget @@ -221,7 +221,7 @@ class Runner(onl.install.InstallUtils.SubprocessMixin): blkid = BlkidParser(log=self.log) - if ':' in SWI: + if not SWI.startswith('/') and ':' in SWI: devspec, sep, r = SWI.partition(':') p = "/dev/%s" % devspec