Commit graph

253 commits

Author SHA1 Message Date
Alex
79e42744d9 scripts/bootstrap.sh: remove extra space 2024-09-15 21:46:41 +00:00
Sertonix
619b636a4e scripts/mkimage.sh: simplify for loops 2024-09-06 12:19:56 +00:00
Sertonix
5147450891 scripts/mkimage.sh: fix cross creating 2024-09-06 12:19:56 +00:00
Celeste
6cce1d0007 scripts/bootstrap.sh: add libucontext to depends of full cross gcc
the GDC frontend requires GDC to build since
GCC 12, and libucontext is required by GDC
2024-08-31 21:41:39 +00:00
Natanael Copa
877e7b1b61 scripts/mkimg.standard.sh: remove riscv64
We don't have any riscv64 kernel in main yet.

This fixes the build of release images, which requires that all packages
are in main.
2024-05-22 12:52:50 +02:00
Magnus Sandin
23ff40c30d scripts/mkimg.xen.sh: add zfs support 2024-05-07 20:04:56 +00:00
Jingyun Hua
85c8ee976c scripts: add loongarch64 2024-03-19 08:18:50 +00:00
Jingyun Hua
29d1bddf1a scripts/bootstrap.sh: update package list 2024-03-15 11:43:36 +00:00
Sören Tempel
3e13e2b4b6 Revert "community/go: bootstrap via gccgo"
Go 1.22 requires Go 1.20 or newer for bootstrapping. gccgo only
supports Go 1.18, therefore we cannot use it for bootstrapping
Go 1.22 directly and would need to package intermediate versions
of Go. Since our current packaging setup does not easily allow us
to maintain multiple versions of a package, and since it does not
seem likely that gccgo will support newer Go versions in the future,
this does not seam feasible.

Therefore, this commits abandons the much loved gccgo based bootstrap
and switches back to bootstrapping Go manually from an existing Alpine
installation using the bootstrap.sh script.

Fixes #15602

This reverts commit 3516e6e5e7.
2024-02-07 22:29:59 +01:00
Jingyun Hua
a00546be4a scripts/bootstrap.sh: add libpsl to bootstrap path 2024-02-05 18:07:41 +00:00
Natanael Copa
380c886966 scripts/mkimg.xen.sh: include xen-qemu on the iso
ref: https://gitlab.alpinelinux.org/alpine/alpine-conf/-/merge_requests/183#note_370045
2024-01-16 15:57:18 +01:00
Natanael Copa
50a7c81b9b scripts/mkimg.arm.sh: improve description for Pi images
Give better clues which image is for which Pi

fixes https://gitlab.alpinelinux.org/alpine/aports/-/issues/15595
2023-12-27 12:13:40 +00:00
Natanael Copa
e74f5c9847 scripts: add profile for alpine-rpi .img.gz disk images
ref: https://gitlab.alpinelinux.org/alpine/infra/alpine-mksite/-/issues/14
ref: https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/52993
2023-12-04 21:01:51 +00:00
Stanislav Kholmanskikh
899e0ad885 scripts/mkimage.sh: add the --repositories-file option
It can be handy in situations when we build an image
and specify more than a couple of apk repositories.

Signed-off-by: Stanislav Kholmanskikh <stanislav.kholmanskikh@bell-sw.com>
2023-12-01 09:52:27 +01:00
Natanael Copa
a9cf7bc0a5 scripts/mkimage.sh: minor cleanups
- remove needless check
- remove outdated and unused all_arches
- mark --extra-repos as deprecated
2023-12-01 09:40:58 +01:00
Natanael Copa
20337e2064 scripts: only a single kernel flavor for all rpi models. 2023-11-29 20:56:57 +00:00
Jingyun Hua
36fcfd717f scripts/bootstrap.sh: add libidn2 to bootstrap path 2023-08-22 11:44:11 +00:00
psykose
9faab7c72d scripts/mkimg.standard.sh: add nftables to extended
closes #15136
2023-07-28 21:59:58 +00:00
Hugo Osvaldo Barrera
72ac5a1cdd scripts/mkimage.sh: bail if --repository is required and not provided 2023-07-27 21:22:03 +00:00
Hugo Osvaldo Barrera
0c09d10a4a scripts/mkimage.sh: add missing dependency
Building images requires mksquashfs. Without it, on x86_64, building an
image fails:

    > ./scripts/mkimage.sh --repository https://dl-cdn.alpinelinux.org/alpine/edge/main/
    OK: 0 MiB in 0 packages
    fetch https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
    v3.18.0-6771-g85017885311 [https://dl-cdn.alpinelinux.org/alpine/edge/main/]
    OK: 5346 distinct packages available
    >>> mkimage-x86_64: Building minirootfs
    >>> mkimage-x86_64: Creating alpine-minirootfs-230722-x86_64.tar.gz
    https://dl-cdn.alpinelinux.org/alpine/edge/main/
    fetch https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
    (1/15) Installing alpine-baselayout-data (3.4.3-r1)
    (2/15) Installing musl (1.2.4-r6)
    (3/15) Installing busybox (1.36.1-r3)
    (4/15) Installing busybox-binsh (1.36.1-r3)
    (5/15) Installing alpine-baselayout (3.4.3-r1)
    (6/15) Installing alpine-keys (2.4-r1)
    (7/15) Installing ca-certificates-bundle (20230506-r0)
    (8/15) Installing libcrypto3 (3.1.1-r3)
    (9/15) Installing libssl3 (3.1.1-r3)
    (10/15) Installing ssl_client (1.36.1-r3)
    (11/15) Installing zlib (1.2.13-r2)
    (12/15) Installing apk-tools (2.14.0-r5)
    (13/15) Installing scanelf (1.3.7-r2)
    (14/15) Installing musl-utils (1.2.4-r6)
    (15/15) Installing libc-utils (0.7.2-r5)
    OK: 7 MiB in 15 packages
    >>> mkimage-x86_64: Building netboot
    >>> mkimage-x86_64: --> kernel x86_64 lts 6ef6e06afd948a94231b73e1bc53d1b48e8dd995 linux-lts linux-firmware wireless-regdb
    /sbin/update-kernel: line 342: mksquashfs: not found
    >>> mkimage-x86_64: --> kernel x86_64 virt 359af7de200e33cd48bfb636e4150bf48f19257f linux-virt linux-firmware wireless-regdb
    /sbin/update-kernel: line 342: mksquashfs: not found
2023-07-27 21:22:03 +00:00
psykose
86ea7815b4 scripts/bootstrap.sh: update rust bootstrap positioning 2023-07-11 11:26:00 +00:00
psykose
c43ee4187e scripts/bootstrap.sh: fixup bootstrap deps
- libretls is not used by anything
- isl25 -> isl26
- llvm15 -> llvm16
2023-05-19 03:45:54 +02:00
psykose
1f3e3332a2 scripts/bootstrap.sh: remove pcre from list
nothing uses this in the list
2023-05-12 07:32:04 +02:00
Natanael Copa
2894793aa2 main/mkinitfs: use tiny-cloud-alpine instead of nocloud
ref https://gitlab.alpinelinux.org/alpine/cloud/tiny-cloud/-/merge_requests/54#note_305672
2023-05-08 22:57:23 +02:00
Natanael Copa
a467c8ac68 scripts: remove momodeset
Remove nomodeset for all release images for consistency

We have serial console enabled so we don't need to be able to run qemu
with -curses, which needed nomodeset.
2023-05-08 22:57:04 +02:00
Natanael Copa
02c4b280b6 scripts/mkimg.standard.sh: add wifi support to standard
Users may need configure network over wifi, so lets include the tools
needed for that in the standard image.

fixes https://gitlab.alpinelinux.org/alpine/alpine-conf/-/issues/10558
2023-05-02 16:40:44 +02:00
Natanael Copa
e91dbacbc6 scripts/mkimg.standard.sh: remove irssi from -extended iso
For some reason irssi was moved to community.

commit aeaaa1f3e1 (community/irssi: move from main)

Remove it from -extended iso
2023-05-02 16:08:11 +02:00
Natanael Copa
4ad0b08bfa scripts/mkimg.standard.sh: drop serial for virt
We now autodetect serial from initramfs, and it works with qemu's
-serial stdio, so we no longer need to add console=ttyS0 for x86_64.
2023-05-01 22:48:11 +02:00
Natanael Copa
01a905daf3 scripts/mkimg.base.sh: include tiny-cloud-nocoud in base 2023-05-01 22:20:45 +02:00
Natanael Copa
7a17a2b779 scripts/mkimg.base.sh: add nfit module
Needed for UEFI http boot
ref https://gitlab.alpinelinux.org/alpine/aports/-/issues/13823
2023-05-01 21:01:41 +02:00
Dermot Bradley
38302601c8 scripts/mkimg.base.sh: remove haveged package
With changes to the "random" code in recent kernels there seems little
need for haveged in general. This script adds the haveged package to
Alpine images but its init.d script never appears to be enabled
anywhere (neither in the image nor by setup-alpine) and so the
package's presence in the image appears unnecessary.
2023-04-29 02:05:57 +00:00
Natanael Copa
5d0a7def23 scripts/mkimg.netboot.sh: add virt and rpi4 for aarch64
fixes https://gitlab.alpinelinux.org/alpine/aports/-/issues/14559
fixes https://gitlab.alpinelinux.org/alpine/aports/-/issues/14755
2023-03-29 11:57:41 +02:00
psykose
ef371a18b1 scripts/mkimg.standard.sh: ..actually, remove xz
busybox unxz works for decompressing arbitrary xz archives- no need for
the full tool.

saves 0.4MB from the prior change
2023-02-13 15:03:51 +01:00
psykose
98aa1cc27d scripts/mkimg.standard.sh: ..add missing xz 2023-02-13 15:02:52 +01:00
psykose
b0b993207b scripts/mkimg.standard.sh: add lz4/xz/zstd to extended
requested on irc- this makes decompressing data more convenient
starting only from an extended iso in certain usecases of having
additional images during installation.

increases image size by ~1.7MB
2023-02-13 14:59:42 +01:00
psykose
e27dd18411 scripts/bootstrap.sh: move zstd before toolchain
allows zstd use in entire toolchain
2023-01-08 07:47:52 +01:00
Guy Broome
a86c136bc5 scripts/bootstrap.sh: mention that musl also has arch-aware build rules
they need updating prior to introducing a new architecture, otherwise
the attempt by bootstrap to pull in musl headers via musl-dev prior
to GCC stage 2 build will fail with a misleading error about a missing
directory
2022-12-29 21:44:53 +01:00
Natanael Copa
34f3e21e01 scripts/mkimg.standard.sh: add kea to extended image
kea is supposed to replace dhcpd.
2022-11-22 16:12:02 +01:00
psykose
fffe2c479e scripts/bootstrap.sh: remove cloog from buildlist 2022-11-22 04:30:35 +01:00
Natanael Copa
70adf95866 scripts/mkimg.base.sh: fix typos
fixes commit dc0db48c5a (scripts/mkimg.base.sh: include doas in base)
2022-11-18 22:58:50 +01:00
Natanael Copa
dc0db48c5a scripts/mkimg.base.sh: include doas in base
Without doas (due to missing or broken apk cache) you may have serious
problems. Included it in the isos.
2022-11-18 15:12:48 +01:00
psykose
82a5d47920 scripts/mkimg.arm.sh: remove linux-firmware-brcm from rpi
was already pulled in via linux-rpi
2022-11-08 17:49:28 +01:00
Natanael Copa
704af9b4ba scripts/genrootfs.sh: fix os-release package
The /etc/os-release was moved to alpine-release in commit 23e66e85c9
(main/alpine-base: split release data into its own package)
2022-11-07 09:07:06 +01:00
psykose
5d4369a948
scripts/bootstrap.sh: add llvm15 2022-09-30 14:40:54 +02:00
Sören Tempel
3516e6e5e7 community/go: bootstrap via gccgo
Previously, community/go depended on itself for compiler-bootstrapping
purposes. This approach has several issue which are were further
discussed on the ML some time ago [1]. By bootstrapping community/go
using gcc-go we can make the bootstrap path more transparent and also
ease bootstrapping new builder via bootstrap.sh as community/go no
longer needs to be cross-compiled from an existing Go installation.

As such, this commit also removes community/go from the bootstrap.sh.
There is nothing on the bootstrap path that depends on it, hence it
is fine that a bootstrapped/cross-compiled gcc doesn't have LANG_GO
support. Go was only added to bootstrap.sh previously in commit
f5c4b29891 due to the cross-compilation
requirement. This commit also removes the cross-compilation related
quirks from the Go APKBUILD.

I will further enhance the Go bootstrap setup by having both
community/go and gcc-go provide a virtual go-bootstrap package. Thereby
allowing compilation with either gcc-go or a prior community/go
installation.

[1]: https://lists.alpinelinux.org/~alpine/devel/%3C33KG0XO61I4IL.2Z7RTAZ5J3SY6%408pit.net%3E
2022-09-30 12:16:40 +00:00
Natanael Copa
13d2eb011b scripts/bootstrap.sh: use isl25
ref commit 1b3d450dc7 (main/gcc: build against isl25)
ref commit a782574540 (main/isl25: new aport)
ref commit 069b35f981 (main/isl24: remove -dev)
2022-09-23 18:33:23 +02:00
psykose
4af430da17
scripts/bootstrap.sh: fix busybox-openrc dep
merged into busybox
2022-09-10 04:20:51 +02:00
Laurent Bercot
7f91082084 scripts/bootstrap.sh: update package list with busybox-openrc
Signed-off-by: Laurent Bercot <ska@appnovation.com>
2022-09-04 05:49:07 +00:00
Stanislav Kholmanskikh
baf412d158 scripts/mkimage.sh: cleanup the workdir created with mktemp
Signed-off-by: Stanislav Kholmanskikh <stanislav.kholmanskikh@bell-sw.com>
2022-08-31 14:13:12 +00:00
Stanislav Kholmanskikh
33cba646e8 scripts/mkimage.sh: switch from abuild-apk to apk
The issue is that 'abuild-apk' creates root-owned files in the workdir,
and they cannot be removed later without root privileges.

'abuild-apk' is called only with 2 commands (add --initdb, update),
and in the context of the script they don't seem to be requiring
root privileges, so I'm proposing to substitute the calls with 'apk'.
This will automatically resolve the issue mentioned above.

Signed-off-by: Stanislav Kholmanskikh <stanislav.kholmanskikh@bell-sw.com>
2022-08-31 14:13:12 +00:00