projects
/
snf-image-creator
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c2113d7
)
Add new windows sysprep for disabling hibernation
author
Nikos Skalkotos
<skalkoto@grnet.gr>
Wed, 10 Jul 2013 07:27:25 +0000
(10:27 +0300)
committer
Nikos Skalkotos
<skalkoto@grnet.gr>
Tue, 30 Jul 2013 13:43:59 +0000
(16:43 +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
4d807ea
..
3e38aa3
100644
(file)
--- a/
image_creator/os_type/windows.py
+++ b/
image_creator/os_type/windows.py
@@
-89,6
+89,12
@@
class Windows(OSBase):
self._guest_exec('netsh firewall set icmpsetting 8')
+ @sysprep('Disabling hibernation support')
+ def disable_hibernation(self):
+ """Disable hibernation support and remove the hibernation file"""
+
+ self._guest_exec(r'powercfg.exe /hibernate off')
+
@sysprep('Setting the system clock to UTC')
def utc(self):
"""Set the hardware clock to UTC"""