lp:~soren/vmbuilder/smallest-patch-ever

Created by Soren Hansen and last modified
Get this branch:
bzr branch lp:~soren/vmbuilder/smallest-patch-ever
Only Soren Hansen can upload to this branch. If you are Soren Hansen please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Soren Hansen
Project:
VMBuilder
Status:
Merged

Recent revisions

341. By Soren Hansen

open /dev/null in read mode rather than write mode and pass that to
subprocess.Popen, when we want to actually close stdin.

340. By Soren Hansen

Python 2.5 requires keyword arguments to be passed first if you are also
using the *args notation for positional arguments.

339. By Scott Moser

add libc6-xen to package list (vm.addpkg) in karmic's apply_ec2_settings

338. By Scott Moser

correctly lock password on '--lock-user'

If the documentation for manpages of chpasswd [1] and usermod [2] is
correct then this change removes the need for jaunty and karmic suites to
override the update_passwords from dapper. The copied code had resulted
in jaunty and karmic suites not locking the user account if '--lock-user'
was passed.

I've tested building a jaunty image with
  ./vmbuilder xen ubuntu --suite jaunty --arch i386 \
      --dest xen-jaunty-i386 --part part --debug --lock-user
  ./vmbuilder kvm ubuntu --suite hardy --arch i386 -\
      --dest xen-hardy-i386 --part part --debug --lock-user

and verified that the user's account is password locked for password
login, but not expired (ie, has a '!' at the beginning of the encrypted
password entry, but no expiration value). Also, verified that after
removing the '!' at the beginning I was able to login.

example entry in /etc/shadow:
  jaunty: ubuntu:!$6$<trimmed>/:14497:0:99999:7:::
  hardy: ubuntu:$1$<trimmed>:14497:0:99999:7:::

log output shows use of 'usermod -L' for 'Locking' in both, and
'chpasswd --md5' in hardy and 'chpasswd' in jaunty.

To fix bug LP#420581, automated-ec2-builds/build-ec2-image must also be
changed to pass '--lock-user' to vmbuilder.

Signed-off-by: Scott Moser <email address hidden>

--
[1] http://manpages.ubuntu.com/cgi-bin/search.py?ie=UTF-8&q=chpasswd&titles=Title&lr=lang_en
[2] http://manpages.ubuntu.com/cgi-bin/search.py?ie=UTF-8&q=usermod&titles=Title&lr=lang_en

337. By Soren Hansen

Add an option to create a manifest, listing all the packages installed and their versions.

336. By Soren Hansen

kvm-img refuses to create 0-sized images at the moment. It's a stub anyway, so we just create a 1MB one.

334. By Soren Hansen

Merge lp:~chooper/vmbuilder/fixes

Branch metadata

Branch format:
Branch format 6
Repository format:
Bazaar pack repository format 1 (needs bzr 0.92)
This branch contains Public information 
Everyone can see this information.

Subscribers