hadoop element assumes ubuntu user exists

Bug #1188438 reported by Robert Collins
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Sahara
Fix Released
Medium
Ivan Berezovskiy

Bug Description

Current ubuntu cloud images create the ubuntu user at first boot, so any environment tweaks for it need to be done at boot time - e.g. via idempotent os-refresh-config scripts.

Revision history for this message
Robert Collins (lifeless) wrote :

specifically this code:
mv $TARGET_ROOT/home/ubuntu/$filename $TARGET_ROOT/$javaPath
cat $TARGET_ROOT/root/.bashrc >> $TARGET_ROOT/home/ubuntu/.bashrc
echo -e "export JAVA_HOME=$javaPath$filename\nexport PATH=\$PATH:$javaPath$filename/bin" >> $TARGET_ROOT/home/ubuntu/.bashrc
echo -e "export JAVA_HOME=$javaPath$filename\nexport PATH=\$PATH:$javaPath$filename/bin" >> $TARGET_ROOT/root/.bashrc
source $TARGET_ROOT/home/ubuntu/.bashrc

will die badly.

Changed in savanna:
assignee: nobody → IvanBerezovskiy (iberezovskiy)
tags: added: extra.elements
Changed in savanna:
status: New → In Progress
Changed in savanna:
milestone: none → 0.2a1
importance: Undecided → Medium
Changed in savanna:
status: In Progress → Fix Committed
Changed in savanna:
status: Fix Committed → Fix Released
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.