I have follow the instructions and build it on a ubuntu core in classic mode.
Then I have build an image with --extra-snaps core.snap, after the build on boot it failures on two services:
Failed to Start LSB: AppArmor Initilization and
Faild to Start Automatically Repair incorrect Owner/Permission on core devices
After then it stucks on
Reached target cloud-init and Started update UTMP run level services
@tokurz Looks like some of those options are unconventional. For example, are you trying to run an Ubuntu Core device, or a classic Ubuntu device? Why are you trying to load the core snap by hand?
Iād recommend to actually not do it in the classic chroot on a core device but instead install qemu-user-static on your host, create a chroot using qemu-debootstrap and run the build in there ā¦
the snapcore/core-build code is the source for packages in the snappy PPA that the core build uses, you do not need to touch it.
Also, when Iāve needed to test changing things in the core snap, I have built the core snap natively on an Ubuntu 16.04 machine. I tried using a docker container and an lxd container, but ran into issues I donāt remember related to executing mounts. Perhaps @ograās advice is better here, I wasnāt able to get that setupā¦
Hey @ogra , I have now successfully build the core snap, but wenn I try to boot it stucks in AppArmor initilization and by Automatically repair user permission service and hangs on UTMP Boot Service.
snapcraft fetches the build-packages from whatever is defined in the sources.list of the building host/environment, so it is essential that the build host or container has the right entries for the PPA.
it report below when used snapcraft to build, any suggestion? thanks!
liao@Android:~/workspace/core$ sudo snapcraft
DEPRECATED: The ābuildā keyword has been replaced by āoverride-buildā
See http://snapcraft.io/docs/deprecation-notices/dn8 for more information.
DEPRECATED: The ābuildā keyword has been replaced by āoverride-buildā
See http://snapcraft.io/docs/deprecation-notices/dn8 for more information.
Pulling check
The ppa:snappy-dev/image PPA is missing.
This probably means that the build was triggered incorrectly.
ubuntu-core-config:
Installed: (none)
Candidate: 0.6.40
Version table:
0.6.40 500
500 http://cn.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
500 http://cn.archive.ubuntu.com/ubuntu xenial/main i386 Packages
Failed to run āoverride-pullā: Exit code was 1.
liao@Android:~/workspace/core$