[2.4] Ephemeral environment $HOME is /

Bug #1761640 reported by Andres Rodriguez
6
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
Revision history for this message
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
Revision history for this message
Adam Collard (adam-collard) wrote :

This bug has not seen any activity in the last 6 months, so it is being automatically closed.

If you are still experiencing this issue, please feel free to re-open.

MAAS Team

Changed in maas:
status: Triaged → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.