rpathsync / grubtobootman
Utility for converting GRUB configuration files to bootman.
Clone this repository (size: 25.3 KB): HTTPS / SSH
$ hg clone http://bitbucket.org/rpathsync/grubtobootman/
| commit 27: | 566bbf2ff39e |
| parent 26: | 6934446cc30e |
| branch: | default |
| tags: | 0.20091110.0 |
Quote passwords (RPL-3140)
4 months ago
Changed (Δ18 bytes):
raw changeset »
grubtobootman (2 lines added, 2 lines removed)
Up to file-list grubtobootman:
| … | … | @@ -192,7 +192,7 @@ def emit_kernel_params(kparam, where): |
192 |
192 |
|
193 |
193 |
if newpass != kparam[4]: |
194 |
194 |
kparam[4] = newpass |
195 |
newpass = |
|
195 |
newpass = "'%s'" % mangle_password(newpass) |
|
196 |
196 |
print "password", newpass |
197 |
197 |
|
198 |
198 |
# Return new values |
| … | … | @@ -436,7 +436,7 @@ try: |
436 |
436 |
password = mangle_password(parameters['password']) |
437 |
437 |
if not bootloader_d.has_key('master_password') or \ |
438 |
438 |
int(bootloader_d['master_password']) != password: |
439 |
print "master_password", |
|
439 |
print "master_password", "'%s'" % password |
|
440 |
440 |
except KeyError: |
441 |
441 |
pass |
442 |
442 |
