Install snaps in armhf chroot

Simon Stürz timonmailinglist at gmail.com
Tue Mar 28 09:35:31 UTC 2017


Hi everyone!

I'm currently building an armhf system using live-build and running
snapd on it. I wanted to pre-install snaps during the image build
process and run into several problems.
Using qemu-arm-static in the chroot I get following error:

$ snap install core
fatal error: rt_sigaction failure

runtime stack:
runtime.throw(0xf6d56af9, 0x14)
        /usr/lib/go-1.7/src/runtime/panic.go:566 +0x80
runtime.setsigstack(0x21)
        /usr/lib/go-1.7/src/runtime/os_linux.go:426 +0xf4
runtime.initsig(0xf6febc00)
        /usr/lib/go-1.7/src/runtime/signal1_unix.go:78 +0x1b8
runtime.mstart1()
        /usr/lib/go-1.7/src/runtime/proc.go:1122 +0xf0
runtime.mstart()
        /usr/lib/go-1.7/src/runtime/proc.go:1096 +0x84

goroutine 1 [runnable]:
runtime.main()
        /usr/lib/go-1.7/src/runtime/proc.go:106
runtime.goexit()
        /usr/lib/go-1.7/src/runtime/asm_arm.s:998 +0x4

goroutine 17 [syscall, locked to thread]:
runtime.goexit()
        /usr/lib/go-1.7/src/runtime/asm_arm.s:998 +0x4


Looks like this is go / qemu-arm bug and I have found several bug
reports on this issue without any helping information:

https://bugs.launchpad.net/ubuntu/+source/golang/+bug/1501651
https://bugs.launchpad.net/ubuntu/+source/golang-1.6/+bug/1603846

Then I checked how the ubuntu-image tool works and pre-install snaps
(but I didn't get the trick):

https://git.launchpad.net/ubuntu-image/tree/ubuntu_image/builder.py?h=xenial#n117
https://git.launchpad.net/ubuntu-image/tree/ubuntu_image/helpers.py?h=xenial#n102

Is there any other possibility to install snaps in a armhf chroot?

Thanks in advance,
Simon





More information about the Snapcraft mailing list