Commit Graph

210 Commits

Author SHA1 Message Date
tabrisnet e4c5ae4f1a
framework mmdebstrap, fetch_distro_keyring - use cached keyring pkgs from armbian.github.io (#8881)
followup to #8785, armbian/armbian.github.io#82 & armbian/armbian.github.io#85
Pull the latest keyring pkgs from armbian's github mirror
2025-11-06 12:18:10 -05:00
tabris cfed1b4357 framework mmdebstrap fetch_distro_keyring - ignore dpkg-deb/tar non-essential errors 2025-11-05 21:57:19 +01:00
tabris 69caf3ba22 build framework mmdebstrap - use MANAGE_ACNG for downloading the keyring pkgs 2025-11-03 18:12:03 +01:00
tabris 373ec28e79 build framework mmdebstrap - fetch the newest keyring pkgs 2025-11-03 18:12:03 +01:00
tabris 77ee624aad build framework mmdebstrap - fix hashing of LEGACY_DEBOOTSTRAP 2025-11-03 18:12:03 +01:00
tabris fef862f774 build framework mmdebstrap - LEGACY_DEBOOTSTRAP
allow old debootstrap to be used instead.
2025-11-03 18:12:03 +01:00
tabris 94866e81a3 build framework - mmdebstrap minimal conversion 2025-11-03 18:12:03 +01:00
Tim Surber bf79329821 add Debian Forky as target 2025-10-27 11:33:08 +01:00
tabris 42c52e34f4 build framework - MANAGE_ACNG - allow switch to be empty 2025-10-24 07:55:58 +02:00
tabris 9d57032b89 build framework - MANAGE_ACNG, allow to specify your own mirror/URL 2025-10-23 22:07:04 +02:00
Werner 851683566d
don't fail distro agnostic sshd adjustments when config is not found (#8729)
* don't fail ssh distro agnostic when openssh is not used

* addressing rabbit nit-pick

reasonable

* fix wording

Co-authored-by: tabrisnet <96966042+tabrisnet@users.noreply.github.com>

---------

Co-authored-by: tabrisnet <96966042+tabrisnet@users.noreply.github.com>
2025-10-09 14:45:44 +02:00
Jianfeng Liu 0439d3ed70 install pahole before linux-headers for better dkms 2025-08-04 17:34:24 +08:00
Jianfeng Liu fb363e8829 add initial loong64 support 2025-08-04 17:34:24 +08:00
Igor Pecovnik 4ae394cc4d Debian oldstable: drop security and backport repository from packages lists
It does not exists for Bullseye nor Buster, which are both anyway deprecated, but we have a user reqests.
2025-07-30 15:49:42 +02:00
Igor Pecovnik cbeb0992b4 Bullseye: drop backport repository as it doesn't exists anymore 2025-07-28 17:17:58 +02:00
Jianfeng Liu 3a9babee14 deploy missing qemu binary when adding repo key 2025-07-11 16:59:45 +02:00
Rolf Leggewie 9144aaf91b lib / distro-specific.sh: add --batch and --yes switches to gpg call
suggestion from coderabbit and indeed it sounds like a good, robust idea
2025-07-10 20:40:37 +08:00
Rolf Leggewie 9fe445b44d Revert "rootfs: allow APA to handle GPG keys when it is active during the build"
This reverts commit 034e9253cd.
2025-07-10 20:40:37 +08:00
Rolf Leggewie 034e9253cd rootfs: allow APA to handle GPG keys when it is active during the build
this is a small first step to mainlining APA into core and let it handle
some packaging and distribution logic
2025-06-23 20:36:23 +02:00
Werner 15407330c6
Preparation for http proxy caching (#8281)
* always use http for apt repos

* pass possible proxy arguments to docker

* populate lower-case env variables with upper-case ones if not set otherwise
2025-06-13 10:31:24 +02:00
Igor Pecovnik aa5526a918 Signing key: keep a link to previous location
armbian-config still uses old location and as we don't control keys via package, we need to apply this workaround for newly created images
2025-06-09 09:33:46 +02:00
Rolf Leggewie 81d65b09b9 lib distro-specific.sh: move armbian GPG to more common location 2025-05-30 04:06:39 +08:00
Igor Velkov 5815951516 Work if no customize-image.sh file present 2025-05-27 15:43:00 +02:00
Igor Pecovnik 3199178c70 Multiple sources fix: after changing to deb822 we forgot on leftovers
- deboostrap still uses old ways and we need to remove this file
- when displaying the content of sources, we need to look correct file
2025-03-05 10:40:48 +01:00
Igor Pecovnik b47d408ff7 After changing apt lists methodology, we need to rebuild rootfs cache 2025-02-24 12:43:04 +01:00
Blieque Mariguan 8e75c8ebd1 feat: Use deb822 APT sources
- Replace `armbian.list` with `armbian.sources`. This holds the same
  information in a newer format, deb822.
- Replace HTTP with HTTPS for Armbian repositories.
2025-02-24 09:23:11 +01:00
Blieque Mariguan 3743daffa2 feat: Use deb822 APT source for armbian-config
- Replace creation of `armbian-config.list` with
  `armbian-config.sources`. This holds the same information in a newer
  format, deb822. This does not affect `armbian.list`.

See also: https://github.com/armbian/configng/pull/407
2025-02-04 18:49:52 +01:00
Igor Pecovnik 1477b478c5 Add upstream release as csc target: Ubuntu plucky 25.04 2025-01-23 18:30:49 +01:00
Igor 4e33412ec2
Refactor armbian-config into install as external package (#7716)
* Refactor armbian-config into install as external package

- https://github.armbian.com/configng repository is always present
- package can still be removed from the install list

Since this tool will have deeper integration with Armbian, we should probably drop possibility to remove the tool from the list.

* Enable armbian-config as extension
2025-01-20 14:23:28 +01:00
Ricardo Pardini c469eeba7a hooks: introduce `post_armbian_repo_customize_image` and `post_repo_customize_image`
- `post_repo_customize_image`: runs after repos have been enabled
- `post_armbian_repo_customize_image`: same, but only if Armbian repo is enabled
- both run after apt update, so packages can be directly installed from repos
2025-01-19 20:21:11 +01:00
marcone 5ccc94dd56 fix typo 2025-01-04 15:36:06 +01:00
Ricardo Pardini b0303e5edc rootfs: fix: don't try to use chroot binaries after qemu was undeployed
- `"${cache_fname}.list"` and `"${cache_fname}.hash_text"` were very old and unused anyway
2025-01-02 13:46:03 +01:00
Ricardo Pardini 6755e9190a don't ship qemu binary in rootfs cache + armhf image/rootfs building on non-armhf-capable-arm64 hosts (Apple M1+)
- refactor `prepare_host_binfmt_qemu()` out of `prepare_host_noninteractive()` and into `rootfs/qemu-static.sh`
  - further split into more functions and return early to avoid deep nesting
  - implement force import and load of qemu-arm for non-armhf capable arm64 hosts (incl magic numbers)
- enhance `deploy_qemu_binary_to_chroot()` & `undeploy_qemu_binary_from_chroot()`;
  - add 2nd param "caller" for better logging/tracking
  - does sanity-check and preserve existing binary if it exists
- explicitly deploy/undeploy for the 3 cases:
  - image: moved undeploy from `post_debootstrap_tweaks()` into image build proper for consistency
  - rootfs: was leaving trash behind (since post_debootstrap_tweaks never ran for rootfs), now properly undeploys
  - initrd: was already fine, just added caller info
- added `arch-test` host dependency
  - ensure `arch-test ${ARCH}` works during prepare-host
- > tl,dr: "can build 32-bit armv7 armhf using Apple silicon; can use rootfs cache cross-arch reliably"
2024-12-31 11:52:12 +01:00
M.Schmidt 6607728e24 improve(lvm,cryptroot): export private key with a structurally equal naming scheme; cleanup 2024-12-13 10:01:19 +01:00
M.Schmidt 590b75fd6f improve(lvm+cryptroot extensions): enable possibility for LVM on LUKS 2024-12-13 10:01:19 +01:00
Igor Pecovnik 4187ab3c51 Adjust deprecated key management support
Workaround for older builds were tied to version of apt, but this doesn't work anymore.
2024-12-13 09:40:56 +01:00
Ricardo Pardini 6d9a06bf72 shellfmt: lib/functions; no changes 2024-11-25 11:32:28 +01:00
Igor 6148907595
Improvements and bug fixes to Armbian user-space services (#6840)
* Add a list of BASH shell aliases and merge them with ohmyZSH aliases
* Add command armbian-upgrade to the BSP which executes update + upgrade
* Display armbian-upgrade only if there are upgrades
* Generate empty folder where will store data. This doesn't exists at early start
* Move armbian-install to /usr/bin and autoexecute sudo
2024-11-18 19:12:52 +01:00
Werner 0afd94a84b
Deprecated `WIREGUARD` once and for all (#7452)
* remove wireguard

* remove wireguard

* remove wireguard

* Update armsom-sige1.csc

* Update hinlink-hnas.csc

* Update hinlink-h28k.csc

* Update hinlink-h66k.csc

* Update mangopi-m28k.csc

* Update hinlink-h68k.csc
2024-11-09 21:02:50 +01:00
Igor Pecovnik 48228f1e49 `Userspace`: Switch armbian-config to new generation. It has very small footprint, thus it will be installed by default 2024-11-05 16:35:36 +01:00
user 502e139598 New option: CRYPTROOT_MAPPER. Make ROOT_MAPPER name for CRYPTROOT changable. 2024-11-05 16:35:02 +01:00
Ricardo Pardini 55b87180b5 rootfs: don't use the Armbian repo when building rootfs from both GHA pipelines and CLI; fixes #7123
- Fixes: 71296430fa -- which only set `SKIP_ARMBIAN_REPO=yes` when `rootfs` cli shortcut used
  - GHA artifact pipelines are generic across all artifacts, and don't use the cli shortcuts
    - instead, they use the `artifact` shortcut, with the `WHAT=rootfs` parameter
    - so in GHA pipelines `SKIP_ARMBIAN_REPO=yes` was not taking effect
- rootfs artifact itself now enforces `SKIP_ARMBIAN_REPO` to be `yes` and makes it readonly
- also add `SKIP_ARMBIAN_REPO` to the general change-tracking for more clarity about configs and hooks etc
- add change tracking calls before/after generic artifact config adapter for even more clarity
2024-09-30 16:15:36 +02:00
Igor Pecovnik 6a03d070d7 MD5 sum: changing default checking as it will fail on base-files
Base files are changed during the process.

FORCE_CHECK_MD5_PACKAGES=yes turns checking back on.
2024-09-29 09:55:15 +02:00
David Andreoletti f145fc2af2 armbian-firstrun: Optionally skip OpenSSH host key regeneration 2024-09-15 11:42:29 +02:00
Igor Pecovnik 8050897d07 rootfs cache: after updating github cli key, we need to rebuild rootfs cache 2024-09-12 07:33:07 +02:00
Ricardo Pardini a1b1d61834 distro-specific: systemd-resolved: don't impose 1.0.0.1 DNS server on users
- See https://github.com/armbian/build/pull/6756/files#r1731373505

Fixes: b6f018a2b1
2024-09-10 21:59:14 +02:00
Igor Pecovnik 7aa89f350f Store VENDORPRETTYNAME to the image instead to the BSP. This is image property. 2024-09-08 16:22:02 +02:00
Igor Pecovnik 05ae71d8f2 Store EXTENSION list to the image instead to the BSP 2024-09-08 16:22:02 +02:00
Igor Pecovnik a26eb472f0 Framework: bump tmpfs size as we are going over
Suppress this warning: "Rootfs post-tweaks size is larger than estimated tmpfs size"
2024-08-23 11:43:03 +02:00
Igor Pecovnik 71f5662dac Force rootfs cache rebuild - once again. 2024-08-23 06:59:40 +02:00