lxc

Merge lp:~darkmuggle-deactivatedaccount/lxc/ubuntu-cloud-template_lp977376 into lp:ubuntu/precise/lxc

Proposed by Ben Howard
Status: Superseded
Proposed branch: lp:~darkmuggle-deactivatedaccount/lxc/ubuntu-cloud-template_lp977376
Merge into: lp:ubuntu/precise/lxc
Diff against target: 44 lines (+9/-4)
1 file modified
templates/lxc-ubuntu-cloud.in (+9/-4)
To merge this branch: bzr merge lp:~darkmuggle-deactivatedaccount/lxc/ubuntu-cloud-template_lp977376
Reviewer Review Type Date Requested Status
Ubuntu branches Pending
Review via email: mp+101261@code.launchpad.net

Description of the change

Fixes userdata handling of ubuntu-cloud tempate LP: 977376

To post a comment you must log in.
92. By Ben Howard

Fixed ubuntu-cloud template user-data handling (LP: 977376)

Unmerged revisions

92. By Ben Howard

Fixed ubuntu-cloud template user-data handling (LP: 977376)

91. By Stéphane Graber

Add missing space after lxc.network.hwaddr

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'templates/lxc-ubuntu-cloud.in'
--- templates/lxc-ubuntu-cloud.in 2012-04-03 02:22:04 +0000
+++ templates/lxc-ubuntu-cloud.in 2012-04-09 17:43:33 +0000
@@ -119,7 +119,7 @@
119 return 0119 return 0
120}120}
121121
122options=$(getopt -o a:hp:r:n:Fi:CLS:T:ds: -l arch:,help,path:,release:,name:,flush-cache,hostid:,auth-key:,cloud,no_locales,tarball:,debug,stream: -- "$@")122options=$(getopt -o a:hp:r:n:Fi:CLS:T:ds: -l arch:,help,path:,release:,name:,flush-cache,hostid:,auth-key:,cloud,no_locales,tarball:,debug,stream:,userdata: -- "$@")
123if [ $? -ne 0 ]; then123if [ $? -ne 0 ]; then
124 usage $(basename $0)124 usage $(basename $0)
125 exit 1125 exit 1
@@ -209,6 +209,11 @@
209 exit 1209 exit 1
210fi210fi
211211
212if [ -n "$userdata" -a ! -f "$userdata" ]; then
213 echo "Userdata does not exist"
214 exit 1
215fi
216
212if [ -z "$path" ]; then217if [ -z "$path" ]; then
213 echo "'path' parameter is required"218 echo "'path' parameter is required"
214 exit 1219 exit 1
@@ -324,8 +329,9 @@
324 echo "Inserted SSH public key from $auth_key into /home/ubuntu/.ssh/authorized_keys"329 echo "Inserted SSH public key from $auth_key into /home/ubuntu/.ssh/authorized_keys"
325 fi330 fi
326331
327 if [ ! -f $userdata ]; then332 if [ -f "$userdata" ]; then
328 cp $userdata $data_d/user-data333 echo "Using custom user-data"
334 cp $userdata $seed_d/user-data
329 else335 else
330336
331 if [ -z "$MIRROR" ]; then337 if [ -z "$MIRROR" ]; then
@@ -339,7 +345,6 @@
339manage_etc_hosts: localhost345manage_etc_hosts: localhost
340locale: $(/usr/bin/locale | awk -F= '/LANG=/ {print$NF}')346locale: $(/usr/bin/locale | awk -F= '/LANG=/ {print$NF}')
341EOF347EOF
342
343 fi348 fi
344349
345 chroot $rootfs /usr/sbin/usermod -U ubuntu350 chroot $rootfs /usr/sbin/usermod -U ubuntu

Subscribers

People subscribed via source and target branches

to all changes: