302 Commits

Author SHA1 Message Date
Achill Gilgenast
452208af83
scripts/bootstrap.sh: update llvm version for rust
switched to llvm 21 in 43d75aeb6210510c2a15c53d8d1ddd88d42e5dd4
2025-10-29 11:30:20 +01:00
Sertonix
fafef6d0af scripts/mkimg.base.sh: replace mk-s390-cdboot with mk-s390image 2025-10-17 06:06:33 +00:00
macmpi
78f9473ef0 scripts/mkimage.sh: update commented tools list
in sync with aports-build 1.6.4r1
2025-10-13 07:59:24 +00:00
macmpi
657b468231 scripts/mkimg.arm.sh: build Pi img as resizable FAT16 partition
Construct a partitioned disk, resizable with libparted-based tools (gparted and al.).
libparted has limitations to cross cluster size boundaries in resize operations [1].
Use the minimum image file size to ensure FAT16 partition crosses the 2K/4K cluster size boundary (128MB+)[2].
In MB alignment, this is a full image 130MB = 129MB + 1MB offset for partition table (sector 2048 =1MB).

[1] https://www.gnu.org/software/parted/manual/html_node/parted_58.html
[2] https://www.pctechguide.com/hard-disks/file-systems-fat-fat8-fat16-fat32-and-ntfs-explained
2025-10-13 07:59:24 +00:00
L. E. Segovia
dff344ca61 scripts/mkimg.*.sh: readd riscv64 to standard
It is already possible to install Alpine with EFI bootloader on riscv64,
but it needs to be done with the generic U-Boot tarball, booting with
which is not trivial.

There's a LTS kernel for the standard profile now, so it's possible to
return riscv64 to the list of platforms with ISO support. Just add the
relevant clauses to profile_standard and profile_standard; the list of
initfs_features was checked against the existing U-Boot profile.

This reverts commit 877e7b1b61aa6f873defb9c453b788cb9d126a21.

Fixes #17531
2025-09-24 10:13:00 +00:00
Sertonix
616d8e24ab scripts/mkimage.sh: fix error propagation in more places
`if func; then` and `func || return 1` was preventing error propagation
again. This change also made _fail unnecesarry
2025-09-24 10:00:05 +00:00
Sertonix
771501fca5 scripts/mkimage.sh: simplify set_source_date
ABUILD_LAST_COMMIT isn't used by mkimage.sh so we can skip generating it
2025-09-24 10:00:05 +00:00
Sertonix
aee0ace1c9 scripts/mkimage.sh: include _abuild_pubkey even with --hostkeys
Fixes failing to copy _abuild_pubkey when empty and fixes public key
not included in mkinitfs when not copied to /etc/apk/keys

Ref https://gitlab.alpinelinux.org/alpine/aports/-/issues/16712#note_540806
2025-09-24 10:00:05 +00:00
Sertonix
426fa34dde scripts/mkimage.sh: error out early if modloop signing key is missing
Avoids confusing error messages being thrown by update-kernel

Ref https://gitlab.alpinelinux.org/alpine/aports/-/issues/16712#note_463953
2025-09-24 10:00:05 +00:00
Pablo Correa Gómez
060ff2e94c scripts/bootstrap.sh: bootstrap /usr-merged
This has been considered preferred to using a subpackage. If we ever
want to drop compatibility with the old directories, new installs
could just remove these files.
2025-09-22 09:22:01 +02:00
Pablo Correa Gómez
5dc5df478f scripts/genrootfs.sh: bootstrap /usr-merged
This has been considered preferred to using a subpackage. If we ever
want to drop compatibility with the old directories, new installs
could just remove these files.
2025-09-22 09:22:01 +02:00
Naomi Rennie-Waldock
600848dcbb scripts/mkimg.uboot.sh: include virtio modules in initramfs
qemu currently only supports virtio disks on RISC-V
Adding these modules is only 1MB, so just enable for all uboot profiles
2025-09-02 10:18:08 +00:00
Sertonix
6cacefa5e5 scripts/bootstrap.sh: add lua-aports bootstrap 2025-08-18 12:00:28 +00:00
J. Neuschäfer
df1f7e6fa5 scripts/bootstrap.sh: move pax-utils to main list
scanelf (part of pax-utils) is a dependency of musl-utils, which is
installed in the "minirootfs" profile of mkimage.sh. So, it makes sense to
build pax-utils as part of a regular bootstrap.
2025-07-19 15:26:08 +02:00
Lauri Tirkkonen
9007229a9c scripts/mkimg.base.sh: pass --cache-dir to update-kernel
without this, cross-architecture image generation fails as unprivileged
user, because update-kernel ends up calling `apk add --cache-dir
/etc/apk/cache -p /tmp/update-kernel.VO4GcN/root ...` without privileges
to write to /etc/apk/cache. I'm assuming the reason it does not fail
when generating an image for the host architecture is that
/etc/apk/cache already contains the information apk would write there.
2025-07-14 15:38:39 +00:00
Sertonix
c5f5edc96c scripts/mkimage.sh: mention grub dependency for efi images 2025-07-11 14:11:27 +00:00
J. Neuschäfer
359c4f0584 scripts: enable minirootfs generation on any arch
The minirootfs profile doesn't contain anything hardware-specific, so it
should always be allowed.
2025-07-03 10:56:46 +00:00
Sertonix
6a6fa6a0d8 scripts/bootstrap.sh: update comment about new arch in apk-tools 2025-07-01 12:23:52 +00:00
Sertonix
e34ced6229 scripts/mkimage.sh: set --no-chown for apk 2025-06-09 08:53:11 +00:00
Sertonix
366fd42f9b scripts/genrootfs.sh: exclude apk3 logfile 2025-06-09 08:53:11 +00:00
Sertonix
9b6b83166b scripts/mkimg.*.sh: remove executable bit
They are can only be sourced by other scripts.
2025-05-13 11:10:00 +00:00
Sertonix
5a92c2629a scripts/mkimage.sh: honor ABUILD_SHAREDIR 2025-05-13 11:10:00 +00:00
Sertonix
3fa317c213 scripts/mkimage.sh: remove useless APORTS check 2025-05-13 11:10:00 +00:00
fossdd
dd550ee96f scripts/bootstrap.sh: update llvm version for rust
rust switched to LLVM 20 in the previous commit
2025-04-20 03:57:08 +00:00
fossdd
f7e014db0b scripts/bootstrap.sh: build readline for sqlite
readline got added to the host dependencies in e95458a620f12ce3634dd62e69b2df57395c60b1
2025-04-08 07:31:57 +00:00
Sertonix
684b78c9e6 scripts/genrootfs.sh: fix gid of /etc/shadow
Fixes https://gitlab.alpinelinux.org/alpine/aports/-/issues/16822
2025-02-10 23:13:57 +00:00
Sertonix
99fa2876f4 scripts/bootstrap.sh: remove unused dependencies
Ref 7befdd7374d main/openssh: refactor PAM support, add krb5
2025-01-29 14:55:57 +00:00
Natanael Copa
812f5b1f70 scripts/bootstrap.sh: add -k option for abuild
pass -k option so we can make the script skip already built packages.
2024-12-31 16:51:57 +01:00
Natanael Copa
b372c5b2b7 scripts/mkimg.uboot.sh: enable riscv64 uboot tarball
Disable the apkovl. Better use tiny-cloud to set up network.
2024-12-26 21:05:11 +00:00
Natanael Copa
8ebe0876ec scripts: move uboot image to separate file 2024-12-26 21:05:11 +00:00
Natanael Copa
b262bdb6d5 scripts/bootstrap.sh: allow override the packages to build
Add support for setting the list of packages to build as argument.
Useful for building a crosscompiler and then build kernel package for
example.
2024-12-26 20:49:33 +01:00
Sertonix
e597a92339 scripts/bootstrap.sh: fix bootstrap dependencies 2024-12-26 13:56:20 +01:00
Sertonix
d5e5c01050 scripts/bootstrap.sh: respect ABUILD_SHAREDIR 2024-12-26 13:55:50 +01:00
Natanael Copa
870e003198 scripts/mkimg.standard.sh: remove dhcp and dhcrelay
fixes commit 785e5584c498 (main/dhcp: remove, unmaintained upstream)
2024-12-04 21:28:56 +01:00
Natanael Copa
d5349b1800 scripts/mkimg.base.sh: fix volid in grub_gen_earlyconf
Generate the volume id from a function and use this everywhere.

fixes commit a486316db8d2 (scripts/mkimg.base.sh: truncate long volid)
2024-12-03 10:02:05 +00:00
Natanael Copa
5fb72a8cbd scripts/mkimg.arm.sh: include phy drivers
fixes: https://gitlab.alpinelinux.org/alpine/aports/-/issues/16366
ref: https://gitlab.alpinelinux.org/alpine/mkinitfs/-/issues/76
2024-12-02 17:39:04 +01:00
Natanael Copa
a486316db8 scripts/mkimg.base.sh: truncate long volid
volid can not be longer than 32 chars, and we hit this limit with _rc1
loongach64. Solve this by drop the _rc* suffix and add a safe guard that
truncates the volid if it ever trips over.

ref: https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/76266
2024-12-02 11:15:39 +01:00
Natanael Copa
b72a9f5d5b scripts/mkimage-yaml.sh: only create extracted_size for img.gz
Don't bother ship tarballs without the .gz.
2024-11-29 21:59:58 +01:00
Natanael Copa
18af973f38 scripts/mkimage-yaml.sh: set extracted size and checksum
For rpi-imager

https://gitlab.alpinelinux.org/alpine/infra/alpine-mksite/-/issues/23#note_458784
2024-11-29 21:49:48 +01:00
Sertonix
d43610d7d8 scripts/mkimage.sh: remove special handling of alpine-release for minirootfs
The special handling was needed when the alpine-base package included release
and other data. This was changed[0] and now the complete alpine-release package
is included in the minirootfs[1]. This change removed the reason the special
handling was added in the first place so we can remove it completely.

Fixes #16553

[0]: 23e66e85c9
[1]: 704af9b4ba
2024-10-22 20:48:32 +00:00
Sertonix
6153f99377 scripts/bootstrap.sh: remove attr from bootstrap packages since abuild doesn't depend on it anymore 2024-10-10 17:24:23 +02:00
Natanael Copa
6ef9f2720a scripts/mkimg.base.sh: add apk-cron to base
Nice to have the option to do unattended security updates out of the
box.
2024-09-30 14:08:26 +02:00
Sertonix
0620a000e9 scripts/mkimage.sh: set pipefail for build_profile
Make sure that errors in pipes properly propagate.
2024-09-30 08:21:15 +00:00
Sertonix
d15ce2c4fc scripts/genrootfs.sh: update comment fbe926afc76 2024-09-26 12:34:13 +00:00
Sertonix
67983cffc9 scripts/genrootfs.sh: fix $name never defined 2024-09-26 12:34:13 +00:00
socksinspace
1838b9da1b scrips/bootstrap.sh: make mkinitfs and openssh optional
Disable most optional sections by default.
2024-09-25 06:59:00 +00:00
socksinspace
9423c2a7b0 scripts/bootstrap.sh: move llvm, ghc, rust, and dependencies into optional section 2024-09-25 06:59:00 +00:00
socksinspace
441026dfa9 scripts/bootstrap.sh add new deps for util-linux, adjust llvm versions 2024-09-25 06:59:00 +00:00
Natanael Copa
57ad77e0ba scripts/genrootfs.sh: fix os-release
Include the usr/lib/os-release file in addition to symlink.

Fixes commit a60311be7b59 (main/alpine-base: move os-release to /usr)
2024-09-23 21:06:26 +02:00
Alex
79e42744d9 scripts/bootstrap.sh: remove extra space 2024-09-15 21:46:41 +00:00