lima-vm / lima-vm/lima

LIMA_CIDATA_* variables are not set in boot provisioning script

Open
#1,685 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
21.9k
Forks
957
Avg merge
2d 6h
Merged PRs (30d)
53

Description

I tried:
```
- mode: boot
script: |
#!/bin/bash
set -eux
usermod -aG systemd-journal $LIMA_CIDATA_USER
```

This is the result:
```
/run/cloud-init/tmp/tmprbrvm5x4.sh: 4: LIMA_CIDATA_USER: parameter not set
2023-07-26 18:15:03,094 - util.py[WARNING]: Failed to run bootcmd module bootcmd
2023-07-26 18:15:03,095 - util.py[WARNING]: Running module bootcmd () failed
```

I also had to remove the `-o pipefail` option from the `set -eux -o pipefail` line that I had copied to g

_Originally posted by @msgilligan in https://github.com/lima-vm/lima/discussions/691#discussioncomment-6554640_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.