[2.4] Ephemeral environment $HOME is /
Bug #1761640 reported by
Andres Rodriguez
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Invalid
|
Medium
|
Lee Trager |
Bug Description
The ephemeral environment $HOME variable is /
I had a firmware upgrade script using $HOME, expecting it would be /root/, but it was actually /.
no longer affects: | maas-images |
Changed in maas: | |
milestone: | 2.4.0beta2 → 2.4.0beta3 |
Changed in maas: | |
milestone: | 2.4.0beta3 → 2.4.0beta4 |
Changed in maas: | |
milestone: | 2.4.0beta4 → 2.4.x |
To post a comment you must log in.
maas-run- remote- scripts is executed by cloud-init, which is executed by systemd. Your shell normally sets $HOME as well as other environment variables. Since no process is started by a shell $HOME is never defined. We could either set $HOME manually in maas-run- remote- scripts or execute all scripts through bash.