Commit Graph

1218 Commits

Author SHA1 Message Date
nl6720
0a58431dde
mkarchiso: put version files in netboot artifacts
Fixes #147.
2021-08-24 23:47:00 +03:00
David Runge
a560de4fe1
Merge remote-tracking branch 'nl6720/no-mount'
* nl6720/no-mount:
  mkarchiso: ensure there are no existing image files before trying to create them
  mkarchiso: copy files to ext4 image using mkfs.ext4's -d option instead of mounting the file system
2021-08-24 22:40:27 +02:00
nl6720
b040ef1774
mkarchiso: ensure there are no existing image files before trying to create them
This could prevent a few issues when creating an image file when re-running mkarchiso after a failure.

Remove useless test before running rm -f. The command will always succeed.
2021-08-15 16:39:55 +03:00
nl6720
6185448477
mkarchiso: copy files to ext4 image using mkfs.ext4's -d option instead of mounting the file system
mkfs.ext4 with its -d option can "copy the contents of the given directory into the root directory of the filesystem".
This allows to get rid of the last directly used mount and umount commands in mkarchiso.

Additionally try to make the ext4 image somewhat reproducible by setting E2FSPROGS_FAKE_TIME to SOURCE_DATE_EPOCH, clearing the UUID and using a reproducible hash seed.
See https://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git/commit/?id=e1f7100643a46456be107b33098f6034b0835e6d .

Place mkfs.ext4 options in an array to avoid duplicating the command.

Related to #40.
2021-08-15 16:37:13 +03:00
David Runge
0f3a83abf7
Merge branch 'issues/47'
* issues/47:
  gitlab-ci: Call renamed check target
  Makefile: Remove mkinitcpio-archiso specific targets
  README.rst: Remove initcpio, fix formatting
  Remove mkinitcpio-archiso files
2021-07-31 19:45:23 +02:00
David Runge
e58910165f
gitlab-ci: Call renamed check target
.gitlab-ci.yml:
Change the called make target in the gitlab CI check target to `check` (it has been renamed from `lint`).
2021-07-31 17:38:41 +02:00
David Runge
874166ec7b
Makefile: Remove mkinitcpio-archiso specific targets
Makefile:
Remove all code specific to mkinitcpio-archiso.
Allow overriding PREFIX (defaults to /usr/local).
Gather scripts to check more generically.
Add abstractions for installation directories.
2021-07-31 17:27:17 +02:00
David Runge
571ea81069
README.rst: Remove initcpio, fix formatting
README.rst:
Remove note on installing the initcpio scripts as they now reside in a separate project.
Fix codeblock describing how to boot into the ISO from grub.
2021-07-31 17:25:26 +02:00
David Runge
75d36d2124
Remove mkinitcpio-archiso files
archiso/initcpio/*:
Remove mkinitcpio-archiso scripts as they have been split out into a separate project.

docs/README.{altbootmethods,bootparams}:
Remove mkinitcpio-archiso specific documentation.
2021-07-31 16:58:57 +02:00
David Runge
a4691b8ee4
Merge branch 'changelog/57'
* changelog/57:
  Add changelog for 57
2021-07-30 18:25:06 +02:00
David Runge
12c21b15af
Add changelog for 57
CHANGELOG.rst:
Add an entry for v57.
2021-07-30 17:15:56 +02:00
David Runge
0ccb4f82f1
Merge branch 'issues/143'
* issues/143:
  mkarchiso: Do not run _build_iso_base once
2021-07-30 16:33:12 +02:00
David Runge
0fa1c0e945
mkarchiso: Do not run _build_iso_base once
archiso/mkarchiso:
Do not run `_build_iso_base` with `_run_once`, as it sets variables which are important to functions that are called
after it.
2021-07-30 15:48:09 +02:00
David Runge
9462e4c066
Merge branch 'issues/117'
* issues/117:
  Remove SPDX license identifier from releng configs
  Remove SPDX license identifier from releng configs
2021-07-30 15:46:15 +02:00
David Runge
f4324e2f81
Remove SPDX license identifier from releng configs
configs/baseline/*:
Remove the SPDX license identifier comment from the configuration files in the profile, as they are not eligible for
copyright.
2021-07-29 20:45:08 +02:00
David Runge
00a1e8e7d2
Remove SPDX license identifier from releng configs
configs/releng/*:
Remove the SPDX license identifier comment from the configuration files in the profile, as they are not eligible for
copyright.
2021-07-29 20:42:11 +02:00
David Runge
a07ff5cee5
Merge remote-tracking branch 'nl6720/bootmodes-2'
* nl6720/bootmodes-2:
  mkarchiso: improve functions and comments
2021-07-29 19:06:28 +02:00
nl6720
610ff2ac26
mkarchiso: improve functions and comments
* Merge _make_efi_dir_on_iso9660 into _make_bootmode_uefi-x64.systemd-boot.eltorito since it's specific to that boot mode.
* Split off FAT image creation into _make_efibootimg, so it can be reused by other functions.
* Add/improve comments to better document what the script does.
2021-07-29 17:12:47 +03:00
David Runge
1cec901af2
Merge remote-tracking branch 'nl6720/RouteMetric'
* nl6720/RouteMetric:
  configs/*/airootfs/etc/systemd/system/systemd-networkd-wait-online.service.d/wait-for-only-one-interface.conf: document why the drop-in file exists
  configs/releng/airootfs/etc/systemd/network/: move RouteMetric= from [DHCPv6] to [IPv6AcceptRA]
2021-07-29 11:52:35 +02:00
nl6720
8fa110e9d7
configs/*/airootfs/etc/systemd/system/systemd-networkd-wait-online.service.d/wait-for-only-one-interface.conf: document why the drop-in file exists
Related to #142.

Add missing `ExecStart=` to baseline's /etc/systemd/system/systemd-networkd-wait-online.service.d/wait-for-only-one-interface.conf.
2021-07-27 13:06:59 +03:00
nl6720
c6a1ccca4f
configs/releng/airootfs/etc/systemd/network/: move RouteMetric= from [DHCPv6] to [IPv6AcceptRA]
systemd moved the option. See 8ebafba9f9 .
Implements #123.

Document in comments why the route metrics need to be set (because of https://github.com/systemd/systemd/issues/17698 ) and use the same metric values as NetworkManager. https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/blob/main/src/core/devices/nm-device.c

Additionally remove RouteMetric from configs/baseline/airootfs/etc/systemd/network/20-ethernet.network.
There is only one networkd configuration file in baseline, meaning, there are no other routes.
2021-07-27 13:06:59 +03:00
David Runge
c88fe823b6
Merge branch 'changelog/56.1'
* changelog/56.1:
  Add changelog for 56.1
2021-07-11 23:07:08 +02:00
David Runge
53904baef9
Add changelog for 56.1
CHANGELOG.rst:
Add a changelog entry for 56.1
2021-07-11 21:16:54 +02:00
David Runge
6b3d56193d
Merge remote-tracking branch 'nl6720/LC_ALL'
* nl6720/LC_ALL:
  mkarchiso: set LC_ALL instead of LANG
2021-07-11 21:15:12 +02:00
nl6720
1e5b3a57f5
mkarchiso: set LC_ALL instead of LANG
LC_ALL overrides LANG and all LC_* variables, so use it instead.
See https://www.gnu.org/software/gettext/manual/html_node/Locale-Environment-Variables.html#Locale-Environment-Variables .
2021-07-11 20:02:39 +03:00
David Runge
59b5690ec9
Merge remote-tracking branch 'nl6720/releng-remove-package-termite-terminfo'
* nl6720/releng-remove-package-termite-terminfo:
  configs/releng/packages.x86_64: remove termite-terminfo
2021-07-11 19:00:34 +02:00
nl6720
140a5e6185
configs/releng/packages.x86_64: remove termite-terminfo
termite was removed from the official repos.

Fixes https://bugs.archlinux.org/task/71481 .
2021-07-11 11:24:00 +03:00
David Runge
1b01d22596
Merge remote-tracking branch 'nl6720/env-i-PATH'
* nl6720/env-i-PATH:
  mkarchiso: unset TMPDIR to work around FS#70580
  Revert "archiso/mkarchiso: clear environment variables when chrooting"
2021-07-03 03:26:41 +02:00
nl6720
d65682a765
mkarchiso: unset TMPDIR to work around FS#70580
Alternative to 3d6651abf7 which caused issues.

Fixes https://bugs.archlinux.org/task/70580 .
2021-07-02 15:54:34 +03:00
nl6720
c4d1109e49
Revert "archiso/mkarchiso: clear environment variables when chrooting"
This reverts commit 3d6651abf7.

A missing $PATH breaks scripts that do not hardcode binary paths.
Fixes https://bugs.archlinux.org/task/71416 .
2021-07-02 15:54:33 +03:00
David Runge
33a2ab6332
Merge branch 'issues/140'
* issues/140:
  Remove build-host.sh
  gitlab-ci: Include from ci-scripts
  ci: Provide artifacts in top-level output dir
  Rename build script
2021-07-02 13:51:58 +02:00
David Runge
f48e9cda40
Remove build-host.sh
.gitlab/ci/build-host.sh:
Remove script, as it has been replaced by ci-scripts.
2021-07-01 15:08:25 +02:00
David Runge
d56cbd9537
gitlab-ci: Include from ci-scripts
.gitlab-ci.yml:
Include a gitlab CI yaml file from the ci-scripts repository, that replaces the build-host.sh script and abstracts the
.build target.
Move all variables to top-level as they are useful in all build targets.
Remove unnecessary before_script definitions because they are abstracted away by ci-scripts.
2021-07-01 15:08:17 +02:00
David Runge
e0514b1d2e
ci: Provide artifacts in top-level output dir
.gitlab/ci/build-inside-vm.sh:
Change the build script to provide the build artifacts and metrics in the top-level output directory.
This goes in line with the soon to be used ci-scripts, allowing code sharing amongst several projects.
2021-07-01 15:07:19 +02:00
David Runge
a44310b220
Rename build script
.gitlab/ci/build_archiso.sh:
Rename .gitlab/ci/build-inside-vm.sh to .gitlab/ci/build_archiso.sh.

.gitlab-ci.yml:
Rename BUILD_SCRIPT to build_archiso.sh.
2021-07-01 15:07:04 +02:00
David Runge
3eef5be576
Merge branch 'changelog/56'
* changelog/56:
  Add changelog for v56
2021-06-30 20:07:42 +02:00
David Runge
9e6b0d3698
Add changelog for v56
CHANGELOG.rst:
Add a changelog entry for v56.
2021-06-30 18:36:44 +02:00
David Runge
7d120315f1
Merge branch 'issues/132'
* issues/132:
  gitlab-ci: Also build a baseline netboot target
  archiso/mkarchiso: Generalize handling of ucodes
2021-06-30 17:23:03 +02:00
David Runge
97b7aebab8
gitlab-ci: Also build a baseline netboot target
.gitlab-ci.yml:
With #132 being fixed, it is possible to properly build the baseline netboot target without failure.
2021-06-30 14:36:34 +02:00
David Runge
19861e4742
archiso/mkarchiso: Generalize handling of ucodes
archiso/mkarchiso:
Generalize the handling of ucode files (e.g. copying, signing, size calculation) by introducing the global readonly
array of expected ucode names instead of hardcoding them in various functions.
When making use of ucode files in `_make_boot_on_iso9660()`, `_make_bootmode_uef-x86.systemd-boot.esp()` and
`_sign_netboot_artifacts()` create a list of files that is guaranteed to contain existing files.

Fixes #132
2021-06-30 14:36:31 +02:00
David Runge
33e4ff6294
Merge remote-tracking branch 'grazzolini/parallel_downloads'
* grazzolini/parallel_downloads:
  baseline/pacman.conf: Enable parallel downloads
  releng/pacman.conf: Enable parallel downloads
2021-06-30 14:35:57 +02:00
Giancarlo Razzolini
d75689b5f7
baseline/pacman.conf: Enable parallel downloads
Now that pacman 6 is around, enable parallel downloads to speed up the installation
process. Added to the baseline configuration to also improve the pipeline.
2021-06-29 15:20:39 -03:00
Giancarlo Razzolini
5343f5f6a4
releng/pacman.conf: Enable parallel downloads
Now that pacman 6 is around, enable parallel downloads to speed up the installation
process.
2021-06-29 15:19:36 -03:00
David Runge
e2649140dc
Merge remote-tracking branch 'nl6720/env-i-SOURCE_DATE_EPOCH'
* nl6720/env-i-SOURCE_DATE_EPOCH:
  mkarchiso: pass SOURCE_DATE_EPOCH to chroot
2021-06-29 20:13:48 +02:00
nl6720
cbac95ec9d
mkarchiso: pass SOURCE_DATE_EPOCH to chroot 2021-06-22 09:12:22 +03:00
David Runge
9c44aeedd1
Merge remote-tracking branch 'nl6720/update-wiki-url'
* nl6720/update-wiki-url:
  Update ArchWiki article URLs
2021-06-18 22:49:39 +02:00
nl6720
6e1ca35e59
Update ArchWiki article URLs
Use the new, prettier short URLs.
2021-06-18 21:17:47 +03:00
David Runge
8a01a6c88d
Merge remote-tracking branch 'sxw/issue25'
* sxw/issue25:
  Add documentation for the `script=` variable
2021-06-18 20:15:32 +02:00
Simon Wilper
bcdfe90bb2 Add documentation for the script= variable 2021-06-15 18:43:43 +00:00
David Runge
d1a93e38f0
Merge remote-tracking branch 'nl6720/pacman6'
* nl6720/pacman6:
  configs/*/pacman.conf: update configuration file for pacman 6
2021-06-12 20:20:09 +02:00