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:
a83f518
)
Add remove_persistent_net method in linux.
author
Nikos Skalkotos
<skalkoto@grnet.gr>
Tue, 13 Mar 2012 10:17:46 +0000
(12:17 +0200)
committer
Nikos Skalkotos
<skalkoto@grnet.gr>
Tue, 13 Mar 2012 10:17:46 +0000
(12:17 +0200)
This will remove the persitent net udev rule.
image_creator/os_type/linux.py
patch
|
blob
|
history
diff --git
a/image_creator/os_type/linux.py
b/image_creator/os_type/linux.py
index
b13bcf1
..
b6f8c8d
100644
(file)
--- a/
image_creator/os_type/linux.py
+++ b/
image_creator/os_type/linux.py
@@
-20,6
+20,11
@@
class Linux(Unix):
self._uuid[dev] = attr[1]
return attr[1]
+ def remove_persistent_net(self):
+ persistent_net_rule = '/etc/udev/rules.d/70-persistent-net.rules'
+ if self.g.is_file(persistent_net_rule):
+ self.g.rm(persistent_net_rule)
+
def convert_to_persistent_dev(self):
# convert all devices in fstab to persistent
persistent_root = self._persistent_fstab()