[2.4] Ephemeral environment $HOME is /

Bug #1761640 reported by Andres Rodriguez on 2018-04-06
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
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
Lee Trager (ltrager) wrote :

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.

Changed in maas:
status: New → Triaged
importance: Undecided → Medium
milestone: none → 2.4.0beta2
assignee: nobody → Lee Trager (ltrager)
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.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers