Public bug reported:
I'm running vmbuilder on the latest EC2 Karmic AMI. When I Ctrl-C
interrupt the run, it deletes almost all of the devices in /dev making
the system somewhat unusable.
Here's a log demonstrating this. I have reproduced the problem on a
fresh AMI by interrupting it in about the same place. Before vmbuilder
was run, there were the usual hundreds of entries in /dev
[...vmbuilder running...]
2009-11-30 01:11:02,430 DEBUG : Setting up linux-image-2.6.31-14-virtual
(2.6.31-14.48) ...
2009-11-30 01:11:03,442 INFO: Running depmod.
2009-11-30 01:11:03,442 INFO: update-initramfs: Generating
/boot/initrd.img-2.6.31-14-server
2009-11-30 01:11:05,466 INFO: cp: cannot stat `/etc/lvm/lvm.conf': No such
file or directory
2009-11-30 01:11:06,471 DEBUG :
2009-11-30 01:11:07,290 DEBUG : Setting up linux-image-2.6.31-15-virtual
(2.6.31-15.50) ...
2009-11-30 01:11:08,302 INFO: Running depmod.
2009-11-30 01:11:08,302 INFO: update-initramfs: Generating
/boot/initrd.img-2.6.31-15-server
2009-11-30 01:11:10,322 INFO: cp: cannot stat `/etc/lvm/lvm.conf': No such
file or directory
2009-11-30 01:11:10,940 INFO: Running depmod.
2009-11-30 01:11:11,220 INFO: update-initramfs: Generating
/boot/initrd.img-2.6.31-302-ec2
2009-11-30 01:11:12,232 DEBUG :
2009-11-30 01:11:12,233 DEBUG : Setting up linux-image-2.6.31-302-ec2
(2.6.31-302.7) ...
2009-11-30 01:11:16,904 INFO: cp: cannot stat `/etc/lvm/lvm.conf': No such
file or directory
^C
ubu...@domu-12-31-39-00-8d-61:~$ ls /dev
pts shm
Here is the command I was running:
sudo vmbuilder/vmbuilder xen ubuntu \
--suite=$codename\
--arch=$arch2\
--dest=$dest \
--tmp=/mnt \
--ec2\
--ec2-version=$description \
--manifest=/mnt/$prefix \
--lock-user \
--components=main,restricted,universe,multiverse \
--part=part-${arch}.txt \
--ec2-bundle \
--ec2-upload \
--ec2-register \
--ec2-bucket=$bucket \
--ec2-prefix=$prefix \
--ec2-user=$AWS_USER_ID \
--ec2-cert=$cert \
--ec2-key=$pk\
--ec2-access-key=$AWS_ACCESS_KEY_ID \
--ec2-secret-key=$AWS_SECRET_ACCESS_KEY \
--ec2-kernel=aki-5f15f636 \
--ec2-ramdisk=ari-0915f660 \
--install-mirror=http://ec2-us-east-mirror.rightscale.com/ubuntu \
--ppa=alestic/ppa\
--addpkg=runurl \
--addpkg=ncurses-dev \
--addpkg=vim \
--addpkg=zip \
--addpkg=unzip \
--addpkg=libgnutls-dev \
--addpkg=sox \
--addpkg=libsox-fmt-all \
--addpkg=cracklib-runtime\
--addpkg=wamerican \
--addpkg=wbritish\
--addpkg=libstdc++6 \
--addpkg=libcurl3\
--addpkg=libxml2 \
--addpkg=collectd\
--execscript=$execscript\
--debug
I verified that /dev was full right before I pushed Ctrl-C and that it
was cleared out right after vmbuilder exited on the interrupt.
Let me know if you are unable to reproduce this problem or need further
information.
ProblemType: Bug
Architecture: i386
Date: Sun Dec 6 00:16:48 2009
DistroRelease: Ubuntu 9.10
Ec2AMI: ami-1515f67c
Ec2AMIManifest:
ubuntu-images-us/ubuntu-karmic-9.10-i386-server-20091027.1.manifest.xml
Ec2AvailabilityZone: us-east-1a
Ec2InstanceType: m1.small
Ec2Kernel: aki-5f15f636
Ec2Ramdisk: ari-0915f660
Package: python-vm-builder 0.11.3-0ubuntu1