Skip to content
This repository was archived by the owner on Jan 22, 2026. It is now read-only.

Commit c7a4f10

Browse files
committed
Order of parsing fix for nfs installs.
1 parent c0304d5 commit c7a4f10

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

virtinst/ImageFetcher.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,9 @@ def prepareLocation(self, progresscb):
151151
cmd = None
152152
self.srcdir = tempfile.mkdtemp(prefix="virtinstmnt.", dir=self.scratchdir)
153153
logging.debug("Preparing mount at " + self.srcdir)
154-
if self.location.startswith("nfs:"):
154+
if self.location.startswith("nfs://"):
155155
cmd = ["mount", "-o", "ro", self.location[4:], self.srcdir]
156-
elif self.location.startswith("nfs://"):
156+
elif self.location.startswith("nfs:"):
157157
cmd = ["mount", "-o", "ro", self.location[6:], self.srcdir]
158158
else:
159159
if stat.S_ISBLK(os.stat(self.location)[stat.ST_MODE]):

0 commit comments

Comments
 (0)