Skip to content

Add mkhomedir hook#5

Open
matteo-chesi wants to merge 3 commits intomainfrom
mkhomedir
Open

Add mkhomedir hook#5
matteo-chesi wants to merge 3 commits intomainfrom
mkhomedir

Conversation

@matteo-chesi
Copy link
Copy Markdown

In order to create user HOME directory if missing on the container.

Keep in mind, there is nothing that will make the user land in HOME.

Comment thread crates/mkhomedir/README.md Outdated
"when": {
"always": true
},
"stages": ["prestart"]
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have 2 comments about this:

  1. prestart is deprecated, the stage should be either createRuntime or createContainer
  2. According to the spec, prestart is equivalent to createRuntime. However, I can't understand how this hook can work in that case: createRuntime hooks execute in the runtime namespaces, therefore they should not be able to see the mountpoint with the container rootfs, unless they join the container mount namespace, an action which I can't seem to find in the current code. I'm clearly missing something here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants