-
Notifications
You must be signed in to change notification settings - Fork 661
Add variable for the guest home directory #1736
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: Anders F Björklund <[email protected]>
473c6a2
to
b9e5e65
Compare
@@ -151,6 +151,7 @@ The volume label is "cidata", as defined by [cloud-init NoCloud](https://cloudin | |||
- `LIMA_CIDATA_MNT`: the mount point of the disk. `/mnt/lima-cidata`. | |||
- `LIMA_CIDATA_USER`: the user name string | |||
- `LIMA_CIDATA_UID`: the numeric UID | |||
- `LIMA_CIDATA_HOME`: the guest home directory |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe:
- `LIMA_CIDATA_HOME`: the guest home directory | |
- `LIMA_CIDATA_USER_HOME`: the guest home directory (`/home/foo.linux`) |
Because we may potentially use LIMA_CIDATA_HOME
for something like LIMA_HOME
which is not a user home directory?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was supposed to be simple wrappers for $USER and $HOME, we can give them long and strange names like USER_NAME and USER_HOME but I'm not sure it will help? Better do something like LIMA_CIDATA_HOSTHOME (or LIMA_CIDATA_HOST_LIMA_HOME, or whatever it would end up looking like) when needed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not visible to end users anyway, so I don't have a strong opinion
It still duplicates the
Maybe it should even set Homedir in the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
Just a refactoring, to avoid hardcoding
/home
andlinux
everywhere in cidata.