diff options
Diffstat (limited to 'scripts/lib/wic/plugins/imager/direct.py')
-rw-r--r-- | scripts/lib/wic/plugins/imager/direct.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/lib/wic/plugins/imager/direct.py b/scripts/lib/wic/plugins/imager/direct.py index 592412a634..4637fbf302 100644 --- a/scripts/lib/wic/plugins/imager/direct.py +++ b/scripts/lib/wic/plugins/imager/direct.py | |||
@@ -29,7 +29,6 @@ import uuid | |||
29 | import tempfile | 29 | import tempfile |
30 | 30 | ||
31 | from time import strftime | 31 | from time import strftime |
32 | from os.path import basename, splitext | ||
33 | 32 | ||
34 | from wic import msger | 33 | from wic import msger |
35 | from wic.ksparser import KickStart, KickStartError | 34 | from wic.ksparser import KickStart, KickStartError |
@@ -65,7 +64,7 @@ class DirectPlugin(ImagerPlugin): | |||
65 | except KickStartError as err: | 64 | except KickStartError as err: |
66 | msger.error(str(err)) | 65 | msger.error(str(err)) |
67 | 66 | ||
68 | name = "%s-%s" % (splitext(basename(ksconf))[0], | 67 | name = "%s-%s" % (os.path.splitext(os.path.basename(ksconf))[0], |
69 | strftime("%Y%m%d%H%M")) | 68 | strftime("%Y%m%d%H%M")) |
70 | 69 | ||
71 | # parse possible 'rootfs=name' items | 70 | # parse possible 'rootfs=name' items |