Mounting sys directory to allow building of arm64 images#238
Conversation
|
Did you test it? |
|
I have yea, I have a successful build working by updating my docker compose to services:
custompios:
# image: guysoft/custompios:devel
build:
context: ../../CustomPiOS/src
dockerfile: Dockerfile
pull_policy: always
container_name: piimage-build
platform: linux/arm64
tty: true
restart: always
privileged: true
environment:
- USER=root
- BASE_BOARD=raspberrypiarm64
volumes:
- ./src:/distro
- ../../CustomPiOS/src:/CustomPiOS
devices:
- /dev/loop-controland running |
|
Before I merge this I want to test if it might cause issues. Since sysfs gives access to the hosts hardware. If that is the case we can always add a variable in the base module to enable/disable the mount. Just updating why I am not merging this right away. Also - you guys are using CustomPiOS at LEGO Group? If so cool! |
|
I had this issue as well and this fixes it. The In fact, the script probably could/should for that for |
|
Merging, it looks like its needed. |
When attempting to update in the
basemodule the update ofinitramfs-toolsfails due to the lack of asysmount. Added mounts tocommon.shto allow the update to continue successfully