Skip to content
This repository has been archived by the owner on Jan 1, 2021. It is now read-only.

Improvements in the FAQ (persistence partitions and bootlocal.sh) #746

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Vrakfall
Copy link

Adds some lines to the doc/FAQ.md

-Adds that a default persistence partition is made by the b2d ISO image
-Adds that 2 persistence partitions can't have the same name but
different labels

-Adds that /var/lib/boot2docker/bootlocal.sh script mus be in /bin/sh

I find that it was needed to explain this to the new users. I took many hours to figure it out that /var/lib/boot2docker/bootlocal.sh cannot be writen in bash.

Excuse me for my typos, and please double check the spelling because I'm not a native English speaker.

-Adds that a default persistence partition is made by the b2d ISO image
-Adds that 2 persistence partitions can't have the same name but
different labels

-Adds that /var/lib/boot2docker/bootlocal.sh script mus be in /bin/sh
Keep in mind that if you have 2 partitions with the same names but different labels,
boot2docker will only see one of them. So, if you add a ``boot2docker-data`` partition, boot2docker will mount that one and forget ``boot2docker-vm``.
However, if you name them differently, boot2docker will see all of them.
E.g.: ``boot2docker-vm`` and ``partition2`` will both be mounted.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

@Vrakfall
Copy link
Author

Hi, any update ?

@matthughes
Copy link

I like what you added, but think we could have more docs here.

  1. I get that bootlocal.sh/bootsync.sh live in /var/lib/boot2docker/ but how do I get the files there? Is the only way to ssh and manually edit them? I'd love to put those files in ~/.boot2docker on my host and have them auto-sync when I init boot2docker.

  2. Still confused about when each of these scripts run. Does bootlocal.sh run before or after bootsync.sh?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants