projects
/
snf-image-creator
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
3f97df3
)
Ignore the absence pagefile.sys in windows
author
Nikos Skalkotos
<skalkoto@grnet.gr>
Tue, 30 Jul 2013 14:40:20 +0000
(17:40 +0300)
committer
Nikos Skalkotos
<skalkoto@grnet.gr>
Tue, 30 Jul 2013 14:40:20 +0000
(17:40 +0300)
image_creator/os_type/windows.py
patch
|
blob
|
history
diff --git
a/image_creator/os_type/windows.py
b/image_creator/os_type/windows.py
index
6998d49
..
a2a41f2
100644
(file)
--- a/
image_creator/os_type/windows.py
+++ b/
image_creator/os_type/windows.py
@@
-292,8
+292,11
@@
class Windows(OSBase):
# Delete the pagefile. It will be recreated when the system boots
systemroot = self.g.inspect_get_windows_systemroot(self.root)
- pagefile = "%s/pagefile.sys" % systemroot
- self.g.rm_rf(self.g.case_sensitive_path(pagefile))
+ try:
+ pagefile = "%s/pagefile.sys" % systemroot
+ self.g.rm_rf(self.g.case_sensitive_path(pagefile))
+ except RuntimeError:
+ pass
finally:
self.umount()