Natanael Copa
66538dc4ff
Revert "scripts/mkimg.base.sh: add link about old bug on old macs"
...
It does not boot.
This reverts commit d98bdf4e318928a75f49f2ed7934cd9f45b5c3d1.
This reverts commit 37ee7b773682280f3e55157b95ed4a6302638155.
2025-11-25 14:08:36 +01:00
Natanael Copa
d98bdf4e31
scripts/mkimg.base.sh: add link about old bug on old macs
2025-11-21 16:59:01 +00:00
Alex Xu (Hello71)
37ee7b7736
scripts/mkimg.base.sh: fix boot on old Macs
...
tested that it does delete the partition entry, not tested that it
actually fixes the bug. based on internet reports it probably does
though
2025-11-21 16:59:01 +00:00
Sertonix
0e08d0e913
scripts/bootstrap.sh: build build-base as early as possible
2025-11-20 19:41:26 +00:00
Sertonix
499a1411ff
scripts/bootstrap.sh: fix pax-utils location
2025-11-20 19:41:26 +00:00
Sertonix
083fc446d6
scripts/bootstrap.sh: simplify NEEDS_LIBATOMIC logic
2025-11-20 19:41:26 +00:00
Sertonix
83f4d8d253
scripts/bootstrap.sh: remove useless musl mention
2025-11-20 19:41:26 +00:00
Sertonix
6464e367b0
scripts/mkimg.minirootfs.sh: replace libc-utils with musl-utils
...
Ref 92dbb4085b
Ref https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/60185
2025-11-10 07:20:44 +00:00
macmpi
2edc638259
scripts/mkimg.arm.sh: correct Pi img size due to 1MB offset
...
add 1MB offset due to partition table within dd count value, so it is taken into account in any cases (min or computed value).
2025-11-06 12:22:35 +00:00
Pablo Correa Gómez
20f8172e09
scripts/genrootfs.sh: make /usr-merge bootstrapping opt-in
2025-11-06 10:42:07 +00:00
Pablo Correa Gómez
0697e9d536
scripts/bootstrap.sh: make /usr-merge bootstrapping opt-in
2025-11-06 10:42:07 +00:00
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