1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-15 12:15:22 +03:00
Commit graph

240 commits

Author SHA1 Message Date
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
psykose
2ad9d07894
scripts/bootstrap.sh: move ghc after llvm14 2022-08-20 09:24:29 +02:00
psykose
106fdd11ff
scripts/mkimg.arm.sh: add linux-firmware-brcm for rpi
see #13302
2022-08-13 16:07:34 +02:00
psykose
8e693a596c scripts/bootstrap.sh: update isl22 to isl24 2022-07-28 22:31:46 +00:00
ptrcnull
8c41723185 scripts/bootstrap.sh: print usage on missing params before trying to use them
fixes #10607
2022-07-26 23:36:41 +02:00
Natanael Copa
2a57681043 scripts/mkimage.sh: fix yaml on re-run
create yaml even if file already exists. This solves the problem of yaml
entry disapearing from latest-release.yaml on a re-run. the yaml is
recreated so we need to recreate every yaml, not only for the images
that are rebuilt.
2022-07-15 09:11:23 +00:00
psykose
ed6740b82f scripts/bootstrap.sh: update llvm to 14, remove unused deps
libgit2 is not used by rust anymore, and so it and its dependency of
http-parser are not needed in the bootstrap path
2022-07-13 19:38:51 +00:00
psykose
c570db333d scripts/mkimg.standard.sh: add iw to extended
for https://gitlab.alpinelinux.org/alpine/alpine-conf/-/issues/10518
2022-07-13 19:35:14 +00:00
Natanael Copa
07f62dc81a scripts/mkimg.base.sh: abort on update-kernel failure 2022-07-13 11:40:53 +02:00
psykose
f0c20903b1 scripts/bootstrap.sh: move libcap to before openrc
now needed by openrc
2022-07-06 11:32:50 +00:00
Henrik Riomar
41065fd278 scripts/mkimg.standard.sh: add linux-firmware-none to the extended iso
Fixes installation without network, if this pkg is not on the iso:

Installing system on /dev/xvda1:
extlinux: Not a directory: /mnt/boot
ERROR: unable to select packages:
  linux-firmware-none (no such package):
    required by: world[linux-firmware-none]
2022-07-06 07:53:17 +00:00
Alex Xu (Hello71)
fbe926afc7 scripts/genrootfs.sh: locked -> invalid password (fixes #10806)
this still forbids password login but allows logins via ssh keys with
pam disabled.
2022-05-23 13:44:52 +00:00
Natanael Copa
bf4ec46943 scripts/mkimg.base.sh: reduce boot menu timeout to 1 sec
To speed up the boot a bit.
2022-05-23 14:48:27 +02:00
Natanael Copa
960b71b825 scripts/mkimg.{arm,base}: enable nvme by default
nvme is common nowadays so enable it by default
ref https://gitlab.alpinelinux.org/alpine/aports/-/issues/11589
2022-05-02 11:04:26 +02:00