Merge lp:~smoser/maas/fix-ephem-doc into lp:~maas-committers/maas/trunk

Proposed by Scott Moser
Status: Merged
Approved by: Julian Edwards
Approved revision: no longer in the source branch.
Merged at revision: 1923
Proposed branch: lp:~smoser/maas/fix-ephem-doc
Merge into: lp:~maas-committers/maas/trunk
Diff against target: 23 lines (+4/-3)
1 file modified
docs/troubleshooting.rst (+4/-3)
To merge this branch: bzr merge lp:~smoser/maas/fix-ephem-doc
Reviewer Review Type Date Requested Status
Julian Edwards (community) Approve
Review via email: mp+205675@code.launchpad.net

Commit message

docs/troubleshooting.rst: fix bad syntax in ephemeral image debugging

Description of the change

docs/troubleshooting.rst: fix bad syntax in ephemeral image debugging

To post a comment you must log in.
Revision history for this message
Julian Edwards (julian-edwards) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'docs/troubleshooting.rst'
--- docs/troubleshooting.rst 2014-01-18 16:17:28 +0000
+++ docs/troubleshooting.rst 2014-02-11 00:39:22 +0000
@@ -124,15 +124,16 @@
124user and password into an image. Here's how to add a 'backdoor' user with a124user and password into an image. Here's how to add a 'backdoor' user with a
125password to your images::125password to your images::
126126
127 bzr branch lp:~maas-maintainers/maas/backdoor-image127 sudo apt-get install --assume-yes bzr
128 bzr branch lp:~maas-maintainers/maas/backdoor-image backdoor-image
128129
129 imgs=$(echo var/lib/maas/ephemeral/*/*/*/*/*.img)130 imgs=$(echo /var/lib/maas/ephemeral/*/*/*/*/*.img)
130 for img in $imgs; do131 for img in $imgs; do
131 [ -f "$img.dist" ] || cp -a --sparse=always $img $img.dist132 [ -f "$img.dist" ] || cp -a --sparse=always $img $img.dist
132 done133 done
133134
134 for img in $imgs; do135 for img in $imgs; do
135 sudo ./backdoor-image -v --user=backdoor --password-auth --password=ubuntu136 sudo ./backdoor-image -v --user=backdoor --password-auth --password=ubuntu $img
136 done137 done
137138
138Inside the ephemeral image139Inside the ephemeral image