Skip to content

chroot.md: Update mount syntax for /dev, /proc, /sys#413

Closed
ahesford wants to merge 1 commit into
void-linux:masterfrom
ahesford:master
Closed

chroot.md: Update mount syntax for /dev, /proc, /sys#413
ahesford wants to merge 1 commit into
void-linux:masterfrom
ahesford:master

Conversation

@ahesford

Copy link
Copy Markdown
Member

Apparently mount accepts --rbind and --make-rslave in the same
invocation, so we can merge the two commands per mount into one.

@ericonr

ericonr commented Jul 22, 2020

Copy link
Copy Markdown
Member

I could swear I read something about --make-rslave being run in a separate invocation for a reason.

@ahesford

Copy link
Copy Markdown
Member Author

Apparently this requires some further investigation.

@ericonr

ericonr commented Jul 22, 2020

Copy link
Copy Markdown
Member

@ahesford

Copy link
Copy Markdown
Member Author

The StackExchange answer and subsequent comments are not consistent with my experience. The first comment says it's OK to combine, but the second comment suggests that combining the two will make it non-recursive. However, if I do

mount --make-rslave --rbind /dev /mnt

on my running system, I definitely have /mnt, /mnt/pts and /mnt/shm.

@ericonr

ericonr commented Jul 22, 2020

Copy link
Copy Markdown
Member

I have observed the same thing as you. Perhaps there are some edge cases?

@ericonr ericonr added the blocked Blocked by some external event, for now label Jul 27, 2020
@ahesford

ahesford commented Aug 5, 2020

Copy link
Copy Markdown
Member Author

Given the possibility that this does something unexpected, I don't see value in changing the docs to shave off a few keystrokes.

@ahesford ahesford closed this Aug 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

blocked Blocked by some external event, for now

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants