Skip to contentSkip to conversation

UG: nsteps.rst: suggest "mkdir -p" instead of plain "mkdir"

PATCH In review Mario Domenech Goulart 2 participants 3 messages Sep 8, 2014 – Sep 11, 2014

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/2 UG: nsteps.rst: suggest "mkdir -p" instead of plain "mkdir"

Use

    $ mkdir -p ~/bin

instead of

    $ mkdir ~/bin

to avoid errors in case ~/bin already exists.

---
 user-guide/source/nsteps.rst |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
user-guide/source/nsteps.rst +1 -1
index 213665e..a5922c6 100644
@@ -5,7 +5,7 @@ Build and boot in *N*-steps
 
 2. Download the `repo`_ tool::
 
-    $ mkdir ~/bin
+    $ mkdir -p ~/bin
     $ PATH=~/bin:${PATH}
     $ curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo 
     $ chmod a+x ~/bin/repo
Signature · 1 line
1.7.10.4
#1 lore raw

PATCH v2 2/2 UG: nsteps.rst: add <selected machine> to the path to the .sdcard file

Also fix a small typo at the same line (s/select machine/selected machine/)

---
 user-guide/source/nsteps.rst |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
user-guide/source/nsteps.rst +2 -2
index a5922c6..faaa711 100644
@@ -35,10 +35,10 @@ Build and boot in *N*-steps
     # Type '$ dmesg | tail' to see the device node being used, e.g /dev/sdb
     # In case the SD to be flashed has already some partitions, the host system may have 
     # mounted these, so unmount them, e.g. '$ sudo umount /dev/sdb?'.
-    build $ ls -la 'tmp/deploy/images/*.sdcard'
+    build $ ls -la 'tmp/deploy/images/<selected machine>/*.sdcard'
 
     # Flash the soft link one
-    build $ sudo dd if=tmp/deploy/images/<selected image>-<select machine>.sdcard \
+    build $ sudo dd if=tmp/deploy/images/<selected machine>/<selected image>-<selected machine>.sdcard \
                     of=/dev/sdX \
                     bs=1M \
                     conf=fsync
Signature · 1 line
1.7.10.4