Revision 979096dd image_creator/os_type/linux.py
b/image_creator/os_type/linux.py | ||
---|---|---|
32 | 32 |
# or implied, of GRNET S.A. |
33 | 33 |
|
34 | 34 |
from image_creator.os_type.unix import Unix |
35 |
from image_creator.util import warn |
|
36 |
|
|
37 |
from clint.textui import puts, indent |
|
35 |
from image_creator.util import warn, output |
|
38 | 36 |
|
39 | 37 |
import re |
40 | 38 |
import time |
... | ... | |
64 | 62 |
""" |
65 | 63 |
|
66 | 64 |
if print_header: |
67 |
print 'Fixing acpid powerdown action'
|
|
65 |
output('Fixing acpid powerdown action')
|
|
68 | 66 |
|
69 | 67 |
powerbtn_action = '#!/bin/sh\n\nPATH=/sbin:/bin:/usr/bin\n' \ |
70 | 68 |
'shutdown -h now \"Power button pressed\"\n' |
... | ... | |
119 | 117 |
""" |
120 | 118 |
|
121 | 119 |
if print_header: |
122 |
puts('Removing persistent network interface names')
|
|
120 |
output('Removing persistent network interface names')
|
|
123 | 121 |
|
124 | 122 |
rule_file = '/etc/udev/rules.d/70-persistent-net.rules' |
125 | 123 |
if self.g.is_file(rule_file): |
... | ... | |
131 | 129 |
""" |
132 | 130 |
|
133 | 131 |
if print_header: |
134 |
puts('Replacing fstab & grub non-persistent device appearences')
|
|
132 |
output('Replacing fstab & grub non-persistent device appearences')
|
|
135 | 133 |
|
136 | 134 |
# convert all devices in fstab to persistent |
137 | 135 |
persistent_root = self._persistent_fstab() |
Also available in: Unified diff