Build fails in Laniakea's containers
Hi! When trying to build this on Laniakea workers, I first noticed that the imx8 build is broken due to a missing kernel. So I tried building for imx6 with this result:
./build-image -b imx6
Building imx6.img (board_type: nitrogen6, arch: armhf, build_type: unstable)
Installing extra packages
ca-certificates
cloud-initramfs-growroot
dosfstools
firmware-ti-connectivity
flatpak
libnss-systemd
locales
lvm2
usbutils
libgl1-mesa-dri
libpam-systemd
libhandy-0.0-0
librem5-theme-default
libwlroots-examples
phosh
weston
calls
epiphany-browser
evince
gnome-calendar
gnome-chess
gnome-contacts
gnome-control-center
gnome-maps
gnome-online-accounts
gnome-session
gnome-settings-daemon
gnome-terminal
gnome-tweaks
network-manager-gnome
xdg-desktop-portal-gtk
alsa-utils
bash-completion
dconf-editor
device-tree-compiler
edid-decode
evtest
gdb
git
i2c-tools
kbd
lsof
net-tools
openssh-client
openssh-server
read-edid
screen
strace
systemd-coredump
u-boot-tools
unzip
vim-gtk3
wireless-tools
build-essential
libcap-dev
libdrm-dev
libegl1-mesa-dev
libgbm-dev
libgles2-mesa-dev
libinput-dev
libsystemd-dev
libwayland-dev
libxcb1-dev
libxcb-composite0-dev
libxcb-icccm4-dev
libxcb-image0-dev
libxcb-render0-dev
libxcb-xfixes0-dev
libxkbcommon-dev
meson
libgnome-desktop-3-dev
libgtk-3-dev
libpixman-1-dev
libqmi-utils
modemmanager
libmbim-utils
usb-modeswitch
--2018-09-08 17:12:37-- https://storage.puri.sm/librem5/binaries/unstable/latest/files//linux-image-4.15.0-g837bff1_4.15.0-g837bff1-1_armhf.deb
Resolving storage.puri.sm (storage.puri.sm)... 138.201.228.46
Connecting to storage.puri.sm (storage.puri.sm)|138.201.228.46|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 8831918 (8.4M) [application/x-debian-package]
Saving to: 'files/linux-image-4.15.0-g837bff1_4.15.0-g837bff1-1_armhf.deb'
linux-image-4.15.0-g837bff1_4.15 100%[=========================================================>] 8.42M 3.21MB/s in 2.6s
2018-09-08 17:12:40 (3.21 MB/s) - 'files/linux-image-4.15.0-g837bff1_4.15.0-g837bff1-1_armhf.deb' saved [8831918/8831918]
Fetching uboot upgrade...done.
++ whoami
+ sudo pureos_board=imx6 distro=buster 'packages=
ca-certificates
cloud-initramfs-growroot
dosfstools
firmware-ti-connectivity
flatpak
libnss-systemd
locales
lvm2
usbutils
libgl1-mesa-dri
libpam-systemd
libhandy-0.0-0
librem5-theme-default
libwlroots-examples
phosh
weston
calls
epiphany-browser
evince
gnome-calendar
gnome-chess
gnome-contacts
gnome-control-center
gnome-maps
gnome-online-accounts
gnome-session
gnome-settings-daemon
gnome-terminal
gnome-tweaks
network-manager-gnome
xdg-desktop-portal-gtk
alsa-utils
bash-completion
dconf-editor
device-tree-compiler
edid-decode
evtest
gdb
git
i2c-tools
kbd
lsof
net-tools
openssh-client
openssh-server
read-edid
screen
strace
systemd-coredump
u-boot-tools
unzip
vim-gtk3
wireless-tools
build-essential
libcap-dev
libdrm-dev
libegl1-mesa-dev
libgbm-dev
libgles2-mesa-dev
libinput-dev
libsystemd-dev
libwayland-dev
libxcb1-dev
libxcb-composite0-dev
libxcb-icccm4-dev
libxcb-image0-dev
libxcb-render0-dev
libxcb-xfixes0-dev
libxkbcommon-dev
meson
libgnome-desktop-3-dev
libgtk-3-dev
libpixman-1-dev
libqmi-utils
modemmanager
libmbim-utils
usb-modeswitch
' http_proxy= https_proxy= qemu=/usr/bin/qemu-arm-static fdt_file=imx6qp-nitrogen6_max_purism.dtb build_tarball= vmdebootstrap --enable-dhcp --verbose --image imx6.img --log tmp/imx6.img.log --size 3600M --mirror http://deb.debian.org/debian --configure-apt --distribution buster --serial-console-command '/sbin/getty -L ttymxc0 115200 vt100' --root-password=root --hostname=pureos --user=purism/123456 --sudo --customize /srv/image-builder/root.sh --owner root --foreign=/usr/bin/qemu-arm-static --bootsize 200M --boottype ext2 --bootoffset 1M --custom-package files/linux-image-4.15.0-g837bff1_4.15.0-g837bff1-1_armhf.deb --no-kernel --no-update-initramfs --arch=armhf --no-extlinux
sudo: unable to resolve host sirius-green-amd64-vepl
Creating disk image
Creating partitions
Using bootsize 191mib: 200000000 bytes
EEEK! Something bad happened...
command failed: ['kpartx', '-avs', 'imx6.img']
/dev/mapper/control: mknod failed: Operation not permitted
Failure to communicate with kernel device-mapper driver.
Check that device-mapper is available in the kernel.
Incompatible libdevmapper 1.02.145 (2017-11-03) and kernel driver (unknown version).
device mapper prerequisites not met
Cleaning up
ERROR: command failed: ['kpartx', '-avs', 'imx6.img']
/dev/mapper/control: mknod failed: Operation not permitted
Failure to communicate with kernel device-mapper driver.
Check that device-mapper is available in the kernel.
Incompatible libdevmapper 1.02.145 (2017-11-03) and kernel driver (unknown version).
device mapper prerequisites not met
I doubt we can get rid of this requirement, so I will try to give the container more permissions and see if we can get it to work that way. I'll use this issue to track progress on that problem. Cheers, Matthias