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
5147450891
scripts/mkimage.sh: fix cross creating
2024-09-06 12:19:56 +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
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
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
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
Drew DeVault
569ab4c43c
scripts: add riscv64 standard flavor
...
This adds the necessary riggings to generate a standard Alpine image,
bootable via UEFI on the HiFive Unmatched (with some u-boot tweaks).
2021-09-19 15:39:55 +00:00
kpcyrd
6f6796740c
Use SOURCE_DATE_EPOCH for raspi images
...
See https://twitter.com/sn0int/status/1408853982643212298
2021-08-19 21:47:35 +00:00
Hosh
242a6a502d
scripts/mkimage.sh: Add explicit --help
option to prevent exit code 1
2019-09-26 14:50:09 +00:00
Olliver Schinagl
bf993f3f64
scripts: add armv7 support to images
...
Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
2019-02-26 13:28:22 +00:00
Natanael Copa
67573823ca
scripts/mkimage.sh: allow --repository multiple times
...
we dont need --extra-repository anymore but keep it for backwards
compatibility
2018-03-16 07:55:21 +00:00
Timo Teräs
565c1cb7cc
scripts/mkimage: enable building of efi iso images by default
2017-10-19 16:50:41 +03:00
Natanael Copa
b548980768
scripts/mkimage: set title and desc in yaml
2017-05-30 13:28:57 +02:00
Natanael Copa
26766bf9d2
scripts/mkimage: fix generation of checksums
...
we need remove the leading path to file
2016-12-22 15:50:03 +00:00
Natanael Copa
bdfc1ded4c
scripts/mkimage: fix typo in latest-releases file
2016-12-22 13:45:46 +00:00
Natanael Copa
3eb10d34b8
scripts: add aarch64 release image
2016-12-16 10:26:15 +00:00
Natanael Copa
99afbc0aaa
scripts: add minirootfs release image
2016-12-16 09:50:00 +00:00
Timo Teräs
6096d973a2
scripts/mkimage.sh: add parameter to add extra repositories
2016-11-24 11:23:43 +02:00
Timo Teräs
e47d253fb4
scripts/mkimage: preparation for efi boot in iso images
...
not enabled yet, but uncommenting the grub_mod should enable
building of isolinux+grubefi hybrid images. once uefi boot works
and is verified on aarch64, we can enable the vanilla iso image
(grsec does not support aarch64).
2016-11-18 15:40:40 +02:00
Natanael Copa
48bcd519ae
scripts/mkimg.base.sh: search for apkovl script
...
search for apkovl script in current dir, in ~/.mkimg and in the dir
where the mkimage script was started from.
2016-11-14 20:10:40 +00:00
Natanael Copa
86da5a1047
scripts/mkimage: fix generation of version string
...
use git tag if we are at a given tag. use timestamp otherwise
2016-11-14 20:10:40 +00:00
Natanael Copa
4b621b0cb3
scripts/mkimage.sh: make sure outdir exists
2016-11-14 20:10:39 +00:00
Natanael Copa
06d3a7fb5a
scripts/mkimage.sh: generate yaml
2016-11-14 20:10:39 +00:00
Natanael Copa
41b10e1aa4
scripts/mkimage: automatically add pubkey from abuild
...
the boot repositry needs to be signed with a key. We explicitly copy
this to initramfs so users don't need use --hostkeys which requires
access to /etc/apk/keys/
without the key in intramfs the boot repository will be useless
2016-11-14 20:10:39 +00:00
Natanael Copa
1a2a03519b
scripts/mkimage.sh: fix checksum generation in outdir
2016-11-14 20:10:39 +00:00
Natanael Copa
ff518a1306
scripts/mkimage.sh: warn if no repo is set
2016-11-14 20:10:39 +00:00
Natanael Copa
bcc6d4c633
scripts/mkimage.sh: exit early on error
2016-11-14 20:10:39 +00:00
Natanael Copa
d85035c73d
scripts/mkimage.sh: fix typo
2016-11-14 20:10:39 +00:00
Timo Teräs
46f65fad4c
scripts/mkimage.sh: scripts to build bootable alpine images
2016-11-14 20:10:39 +00:00