[build-openstack-debian-image] jessie image

asked 2015-01-19 11:31:10 -0500

olc gravatar image

Hi -

I trying to build a raw image for jessie using build-openstack-debian-image but it always fails because no /etc/inittab is found:

# build-openstack-debian-image -r jessie --image-size 8
...
+ sed -i s#1:2345:respawn:/sbin/getty 38400 tty1#1:2345:respawn:/sbin/getty --noclear 38400 tty1# /tmp/build-debimg.HGHrge/etc/inittab
sed: can't read /tmp/build-debimg.HGHrge/etc/inittab: No such file or directory

In fact, inittab is probably gone since Debian switched to systemd.

I've tried installing sysvinit-core in order to switch back to sysvinit but build-openstack-debian-image then reports a different problem:

# build-openstack-debian-image -r jessie --image-size 8 -e sysvinit-core
...
+ chroot /tmp/build-debimg.85BBVR update-initramfs -u
update-initramfs: Generating /boot/initrd.img-3.16.0-4-amd64
+ rm /tmp/build-debimg.85BBVR/var/cache/apt/archives/acl_2.2.52-2_amd64.deb [...]
+ chroot /tmp/build-debimg.85BBVR find boot -name vmlinuz-*
+ KERNEL=boot/vmlinuz-3.16.0-4-amd64
+ chroot /tmp/build-debimg.85BBVR find boot -name initrd.img-*
+ RAMDISK=boot/initrd.img-3.16.0-4-amd64
+ blkid -o value -s UUID /dev/mapper/loop0p1
+ UUID=a41e4464-41fd-42e8-a012-c1c348b2e9d1
/usr/sbin/build-openstack-debian-image: 357: /usr/sbin/build-openstack-debian-image: cannot create /tmp/build-debimg.85BBVR/boot/extlinux/extlinux.conf: Directory nonexistent
+ echo default linux
timeout 1
label linux
kernel boot/vmlinuz-3.16.0-4-amd64
append initrd=boot/initrd.img-3.16.0-4-amd64 root=/dev/vda1 console=tty0 console=ttyS0,115200 ro quiet
+ cleanup
+ [ ! -d /tmp/build-debimg.85BBVR ]
+ echo

+ echo error, umounting /tmp/build-debimg.85BBVR
error, umounting /tmp/build-debimg.85BBVR
+ chroot /tmp/build-debimg.85BBVR umount /proc
+ chroot /tmp/build-debimg.85BBVR umount /sys
umount: /sys: not mounted
+ true
+ umount /tmp/build-debimg.85BBVR
+ rmdir /tmp/build-debimg.85BBVR
+ kpartx -d debian-jessie-7.0.0-3-amd64.raw
loop deleted : /dev/loop0

Did someone build an image for jessie successfully using build-openstack-debian-image?

Thanks in anticipation.

edit retag flag offensive close merge delete

Comments

I just bumped into the exact same issue :/ Did you ever manage to solve/work around this?

tpmfee gravatar imagetpmfee ( 2015-04-30 05:53:05 -0500 )edit