Comments (14)
Thank you I'll give that a try
from build.
Also check how we make images via extensions - we do it for HA, OpenHab, for demo https://github.com/armbian/os/tree/main/userpatches/extensions and we can also make and distribute them automatically:
from build.
It's fixed @theCalcaholic
from build.
Jira ticket: AR-2115
from build.
EDIT: RELEASE is bullseye
, not bullseye-security
from build.
Try to use branch v24.02 as there upstream sources should be frozen. Upstream sources are changing daily so its a lot of maintainainace. Tags doesn't have frozen sources and you will need to deal with this on your own. Alternatively is using main branch, which is fixed, v24.02 should probably also works.
from build.
That looks very interesting... Right now, I have the issue that Armbian builds tend to break basically for every release, which requires hours of testing and troubleshooting from my side. That's why I was trying to work with fixed versions in the first place. Unfortunately, branch v24.0.2 doesn't build for me for other reasons (that I've yet to troubleshoot).
However, at the moment, I'm considering moving to a immutable distro anyways (since NextcloudPi is a great fit for a immutable system as it's not really meant to be interacted with by users outside of the admin interface). Therefore, I'm not sure if it would make sense to provide a userpatch extension.
But I'll definitely keep it in mind in case I change my mind!
from build.
Right now, I have the issue that Armbian builds tend to break basically for every release,
This has to work well, but perhaps not the way you are doing right now. If we help you prepare this?
In past 2 years we reworked build framework and our 24.02 is the first semi "immutable" on source level. I think we forgot to freeze one or two sources, but otherwise its there. Troubles are in some legacy functions ... But on the other hand, it is significantly easier for you to build application images for various arhitectures with single extension https://github.com/armbian/os/blob/main/userpatches/extensions/ha.sh and single YAML file:
https://github.com/armbian/os/blob/main/userpatches/targets-release-apps.yaml
and leave the nasty work to us.
If you have NCPI as a docker instance, its almost the same as HA.
from build.
git clone --depth 1 --branch ${BRANCH} https://github.com/armbian/build armbian
# NCP userpatch
mkdir -p armbian/userpatches armbian/userpatches/overlay
cp build/armbian/armbian.sh armbian/userpatches/customize-image.sh
rsync -Aax --delete --exclude-from .gitignore --exclude *.img --exclude *.bz2 . armbian/userpatches/overlay/
# Armbian build config
cat > "armbian/userpatches/config-ncp.conf" <<EOF
BOARD="$BOARD"
BRANCH=current
RELEASE=bullseye
KERNEL_CONFIGURE=prebuilt
BUILD_DESKTOP=no
BUILD_MINIMAL=yes
USE_CCACHE=yes
INCLUDE_HOME_DIR=yes
EOF
export INCLUDE_HOME_DIR=yes
armbian/compile.sh ncp
This is basically how I've been building images ever since moving to armbian next (with BOARD
being e.g. "rock64" and BRANCH
being tags or main
- I even tried checking out individual commits to find working versions since main
tended to break so often). The script that gets actually executed (copied to armbian/userpatches/customize-image.sh
is this one).
NCP does not come as a docker container. It is, as of today, a quite complex installation script that installs many services into the debian host system.
After installation, we perform a number of integration tests on the built images to ensure successful installation.
from build.
NCP does not come as a docker container. It is, as of today, a quite complex installation script that installs many services into the debian host system.
I understand the complexity ...
I tried ... problem seems to be related to Bullseye packages / Qemu. When Debian make a new stable release (Bookworm is out for some time), old stable starts to detiriorate. For us, it is mission impossible to deal with increasing number of problems that are not sorted out upstream anymore. I tried to build bookworm, but your script says "unsupported". How far away you are from bookworm? That would just work. And can you build natively on aarch64 machine without qemu? That might work for bullseye too.
from build.
@igorpecovnik Funnily enough, building with the main branch works, but with 24.02 it fails in group prepare_partitions
with:
Error: Partition(s) 1 on /dev/loop3 have been written, but we have been unable to inform the kernel of the change, probably because it/they are in use. As a result, the old partition(s) will remain in use. You should reboot now before making further changes.
I'm currently working on bookworm support and it should hopefully land in 1-2 weeks.
Anyways, I'll use the main branch for the upcoming release and hope it won't break too soon :D
Thank you for your help and sorry for my frustration previously.
from build.
Anyways, I'll use the main branch for the upcoming release and hope it won't break too soon :D
IMO you should be fine. Also our next "stable" branch will be more stable in the future. An improved version of sources freezing is in the PR.
You can achieve additional hardening by applying BSPFREEZE="yes" where kernel/firmware/uboot packages won't upgrade on apt upgrade. It will apply apt-mark hold
on them.
I'm currently working on bookworm support and it should hopefully land in 1-2 weeks.
That would help here too. All the best in adjusting.
and sorry for my frustration previously.
Oh, its software development. We have plenty of that around ;)
from build.
Hello!
Same problem here
https://paste.armbian.com/aretubesey.sql
Will test the v24.02 branch
from build.
FYI: The main branch was working for the last release and the next release will be based on bookworm, so this shouldn't be an issue anymore for NCP.
Thank you for the support!
I'll leave the issue open for @hqnicolas, feel free to close it if it is solved for them as well or not relevant anymore
from build.
Related Issues (20)
- GH Actions: "Kernel hardening analysis (pull request)" kconfig-hardened-check: No such file or directory HOT 1
- config-default.conf no longer read by default? HOT 6
- Rockchip bootscripts: `Failed to load '...-fixup.scr'` and `Unknown command 'kaslrseed'` HOT 1
- SND_ALOOP module is not avaialble for rk35xx HOT 4
- latest rolling release missing Wdk2023 images HOT 5
- Build error: Unable to find free loop device HOT 16
- Scripts are still trying to fetch SHA1 online even if `OFFLINE_WORK=yes` is set HOT 6
- Image build warning from kernel make: `Makefile:235: target 'install' given more than once in the same rule` HOT 1
- Problem found ... HOT 2
- Build broken when script try copy the ssh key to absent dir dropbear-initramfs HOT 1
- I think the v24.2.1 tag was created in the wrong location. HOT 2
- Redmin K30Pro/XiaoMi10的机器如何编译armbian?以及如何刷机? HOT 3
- menuconfig not working HOT 7
- How can I build a image file and flashing it to SG865 Machines? HOT 6
- Deboostrap trixie fails at stage 2 HOT 2
- Ubuntu 24.04 as host is unsupported HOT 4
- orangepizero2w board, ethernet PHY likely not powered HOT 25
- Building ubuntu 24.04 image is slow HOT 18
- Problem found in the kernel-debs.sh with applying preempt_rt patch HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from build.