OnionIoT / Onion-Docs

Documentation for all things Onion
https://docs.onion.io
GNU General Public License v3.0
113 stars 65 forks source link

Incorrect command for copying overlay to external storage in Omega2/Documentation/Doing-Stuff/Boot-from-External-Storage.md #29

Closed dlparker closed 7 years ago

dlparker commented 7 years ago

Says:

mount /dev/ /mnt ; tar -C /overlay -cvf - . | tar -C /mnt -xf - ; umount /mnt

Should say

mount /dev/ /mnt/ ; tar -C /overlay -cvf - . | tar -C /mnt/ -xf - ; umount /mnt/

It should do that because the instructions just before have you creating the mount point using that naming scheme. If you follow the instructions exactly, then the "/mnt" path is a regular directory, and the mount fails and the tar copies the files to that directory.

After moving the copied files to the /mnt/ directory, I continued with the instructions and it worked as described.

root-goblin commented 7 years ago

Damn, good catch. Expect a fix soon (tm).