Commit graph

1433 commits

Author SHA1 Message Date
nl6720
8ed192b705
Merge remote-tracking branch 'origin/merge-requests/281'
By Christian Hesse
* origin/merge-requests/281:
  mkarchiso: touch clock-epoch for extra hint on date and time

See merge request https://gitlab.archlinux.org/archlinux/archiso/-/merge_requests/281

While it feels dirty to place files in /usr/lib/, since it is the package manager's teritory, the path is unfortunately hardcoded.
5170afbc55
2022-08-28 15:10:12 +03:00
Christian Hesse
aef242720d mkarchiso: touch clock-epoch for extra hint on date and time
This helps on systems with screwed or broken RTC.
2022-08-26 14:46:59 +02:00
nl6720
642beb7e70
Merge remote-tracking branch 'origin/merge-requests/277'
By Kristian Klausen
* origin/merge-requests/277:
  Use VM runners[1] for building

See merge request https://gitlab.archlinux.org/archlinux/archiso/-/merge_requests/277
2022-08-22 10:01:55 +03:00
Kristian Klausen
a2e886b4b9
Use VM runners[1] for building
Building inside a TCG accelerated qemu VM is slow and painful, but it is
the only option when running in a non-privileged container.

arch-boxes has been built inside a KVM accelerated VMs ("VM runner") for
over 11 months[2] and recently the MR[1] was merged into the
infrastructure repo. With it now being a official part of arch's
infrastructure we should switch to it and get much faster builds.

Doing some quick testing, the whole pipeline is now roughly ~29-84
minutes faster (taking between 7-9 minutes, instead of 36-93 minutes).

[1] https://gitlab.archlinux.org/archlinux/infrastructure/-/merge_requests/385
[2] 3bda5b26a6

Fix #161
2022-08-21 19:24:47 +02:00
nl6720
7bc4c54245
mkarchiso: preload more GRUB modules and disable shim_lock verifier
--disable-shim-lock is required to support Secure Boot with custom signatures without using shim.
Otherwise GRUB will trow an error when trying to boot a kernel:

    error: shim_lock protocol not found.
    error: you need to load the kernel first.

The modules GRUB will use need to be preloaded otherwise the EFI binaries cannot be signed and used for Secure Boot.
See https://bugs.archlinux.org/task/71382.
GRUB will trow en error:

    error: verification requested but nobody cares

These changes are done to support Secure Boot using custom keys (not shim) by simply extracting the boot loader
(BOOTx64.EFI and BOOTIA32.EFI), kernel, UEFI shell, signing them and then repacking the ISO.

For example.
Extract the files:

    $ osirrox -indev archlinux-YYYY.MM.DD-x86_64.iso \
        -extract_boot_images ./ \
        -extract /EFI/BOOT/BOOTx64.EFI BOOTx64.EFI \
        -extract /EFI/BOOT/BOOTIA32.EFI BOOTIA32.EFI \
        -extract /shellx64.efi shellx64.efi \
        -extract /shellia32.efi shellia32.efi \
        -extract /arch/boot/x86_64/vmlinuz-linux vmlinuz-linux

Make the files writable:

    $ chmod +w BOOTx64.EFI BOOTIA32.EFI shellx64.efi shellia32.efi vmlinuz-linux

Sign the files:

    $ sbsign --key db.key --cert db.crt --output BOOTx64.EFI BOOTx64.EFI
    $ sbsign --key db.key --cert db.crt --output BOOTIA32.EFI BOOTIA32.EFI
    $ sbsign --key db.key --cert db.crt --output shellx64.efi shellx64.efi
    $ sbsign --key db.key --cert db.crt --output shellia32.efi shellia32.efi
    $ sbsign --key db.key --cert db.crt --output vmlinuz-linux vmlinuz-linux

Copy the boot loader and UEFI shell to the EFI system partition image:

    $ mcopy -D oO -i eltorito_img2_uefi.img BOOTx64.EFI BOOTIA32.EFI ::/EFI/BOOT/
    $ mcopy -D oO -i eltorito_img2_uefi.img shellx64.efi shellia32.efi ::/

Repack the ISO using the modified El Torito UEFI boot image and add the signed boot loader files, UEFI shell and
kernel to ISO9660:

    $ xorriso -indev archlinux-YYYY.MM.DD-x86_64.iso \
        -outdev archlinux-YYYY.MM.DD-x86_64-Secure_Boot.iso \
        -boot_image any replay \
        -append_partition 2 0xef eltorito_img2_uefi.img \
        -map BOOTx64.EFI /EFI/BOOT/BOOTx64.EFI \
        -map BOOTIA32.EFI /EFI/BOOT/BOOTIA32.EFI \
        -map shellx64.efi /shellx64.efi \
        -map shellia32.efi /shellia32.efi \
        -map vmlinuz-linux /arch/boot/x86_64/vmlinuz-linux

Boot the resulting archlinux-YYYY.MM.DD-x86_64-Secure_Boot.iso.
2022-08-19 10:22:40 +03:00
nl6720
b13e5e3379
mkarchiso: copy all GRUB files to the ISO
Do not limit file copying to only grub.cfg and instead copy all GRUB configuration files and assets to both the ISO9660 and FAT image.
This will allow for including custom images, fonts, etc.

To easily match all non-configuration files (i.e. files without the .cfg extension), bash's extended glob feature will be enabled.
Actions common to multiple _make_bootmode_uefi-*.grub are split off into dedicated functions:

* _make_common_bootmode_grub_copy_to_efibootimg,
* _make_common_bootmode_grub_copy_to_isofs,
* _make_common_bootmode_grub_cfg.

Use the same du command in all efiboot_imgsize variable assignments.

Fixes #185.
2022-08-17 17:24:01 +03:00
nl6720
6ac2230953
mkarchiso: unset LANGUAGE
LC_ALL=C.UTF-8, unlike LC_ALL=C, does not override LANGUAGE.
See https://sourceware.org/bugzilla/show_bug.cgi?id=16621 and https://savannah.gnu.org/bugs/?62815
2022-08-07 16:16:52 +03:00
nl6720
3050203137
Merge remote-tracking branch 'origin/merge-requests/273'
* origin/merge-requests/273:
  Add efibootimg variable in place of full path

See merge request https://gitlab.archlinux.org/archlinux/archiso/-/merge_requests/273
2022-07-17 16:12:34 +03:00
Pellegrino Prevete
211572dda2
Add efibootimg variable in place of full path
Update authors

Update CHANGELOG
2022-07-16 12:02:53 +00:00
nl6720
b7373f5a45
Add changelog for 65 2022-06-30 17:42:45 +03:00
nl6720
86540647db
configs/*/grub/grub.cfg: enable serial input and output
Try to initialize a serial device and use it for input and output.

Add more comments to grub.cfg to explain what is done.

Related to #75
2022-06-26 13:16:29 +03:00
nl6720
fda1907581
mkarchiso: work arround GRUB's cmdpath having incorect case on some firmware
Fixes #183
2022-06-24 10:38:27 +03:00
nl6720
e654106ecf
configs/*/grub/grub.cfg: auto-boot after 15 seconds
* Set the default boot entry and its timeout.
* Add classes to menu entries to allow theming them.

Fixes #179
2022-06-23 08:27:44 +03:00
nl6720
9a98ae6040
Merge remote-tracking branch 'origin/merge-requests/266'
By Alexander Epaneshnikov
* origin/merge-requests/266:
  change grub init tune

Closes #180

See merge request https://gitlab.archlinux.org/archlinux/archiso/-/merge_requests/266
2022-06-23 08:22:16 +03:00
Alexander Epaneshnikov
eaa2f8ae78
change grub init tune
yes it was descriptive but too large. this fixes #180
2022-06-18 15:53:03 +03:00
nl6720
53a3ad25af
mkarchiso: add SBAT metadata to grub-mkstandalone created EFI binaries
Even though archiso created ISOs do not support Secure Boot, having SBAT would allow users to more easily repack the files in the ISO to add a signed shim.

Fixes #174
2022-06-18 09:59:19 +03:00
nl6720
91b48f82f3
mkarchiso: improve comments
* Fix typos and wording,
* Remove impossible TODO.
2022-06-18 09:53:21 +03:00
nl6720
b72523e389
configs/baseline/profiledef.sh: add -E ztailpacking to airootfs_image_tool_options for mkfs.erofs
As the man page says, it saves more space, although the feature is experimental.
2022-06-18 08:47:25 +03:00
nl6720
052987bfbb
Merge remote-tracking branch 'origin/merge-requests/261'
By plainlinen
* origin/merge-requests/261:
  Add implicit package dependencies to PACKAGE_LIST in .gitlab-ci.yml

Closes #176

See merge request https://gitlab.archlinux.org/archlinux/archiso/-/merge_requests/261
2022-06-18 08:43:37 +03:00
nl6720
2a8fc3bbc0
Merge remote-tracking branch 'origin/merge-requests/256'
After more than ten years, archiso is once again using GRUB. GRUB! Only this time, it's for UEFI not BIOS boot.

By plainlinen
* origin/merge-requests/256:
  Update documentation for uefi x64 grub boot modes
  Use grub for uefi x64 boot modes in profiledef.sh
  Add *_uefi-x64.grub.* functions to mkarchiso
  Add useful grub menu entries to grub.cfg

Closes #63 and #159

See merge request https://gitlab.archlinux.org/archlinux/archiso/-/merge_requests/256.
2022-06-18 08:38:29 +03:00
plainlinen
b8957f0fa0 Add implicit package dependencies to PACKAGE_LIST in .gitlab-ci.yml
CI was working before because these dependencies were already in
the official ISO but include them explicitly to be safe.
2022-06-17 21:03:39 -07:00
plainlinen
39fddfa51b Update documentation for uefi x64 grub boot modes 2022-06-10 22:37:32 -07:00
plainlinen
e51b6f6199 Use grub for uefi x64 boot modes in profiledef.sh 2022-06-09 22:39:43 -07:00
plainlinen
550b5be07d Add *_uefi-x64.grub.* functions to mkarchiso 2022-06-09 22:37:10 -07:00
plainlinen
98de411847 Add useful grub menu entries to grub.cfg 2022-06-09 22:36:03 -07:00
nl6720
de151089ce
mkarchiso: use C.UTF-8
The glibc 2.35-6 package ships with the C.UTF-8 locale included, so mkarchiso does not need to use a non-UTF-8 locale anymore.

Implements #175.
2022-06-09 08:31:41 +03:00
nl6720
ba11c40e49
configs/: use the C.UTF-8 locale
The glibc 2.35-6 package ships with the C.UTF-8 locale included.
This means there is now a UTF-8 locale available by default and en_US.UTF-8, which requires editing /etc/locale.gen and running locale-gen, is not needed anymore.

Implements #175.
2022-06-09 08:27:50 +03:00
nl6720
89292ce818
.gitignore: ignore *.cer, *.crt, *.key, *.pem and *.img
* .cer, .crt, .key and .pem are typical file name extensions for TLS certificates and keys. They are used when codesigning with openssl and should never be commited in the repo.
* .img is a generic image file. Such files could be used when repacking an ISO to attach cloud-init CIDATA.
2022-05-31 10:18:07 +03:00
nl6720
568ed4b25c
Fix release date for v64 in CHANGELOG.rst 2022-05-30 09:53:13 +03:00
nl6720
fd9becced3
Add changelog for 64 2022-05-28 16:08:18 +03:00
nl6720
f4e2d68599
Merge remote-tracking branch 'origin/merge-requests/254'
By Alexander Epaneshnikov
* origin/merge-requests/254:
  fix boot menu entry sorting
  add accessible copytoram entry
  enable beeps in boot menu

See merge request !254
2022-05-28 15:31:10 +03:00
Alexander Epaneshnikov
2a1f44bbbf
fix boot menu entry sorting
I guess new systemd changed this
2022-05-28 15:23:02 +03:00
Alexander Epaneshnikov
3bacf05618
add accessible copytoram entry 2022-05-28 13:35:26 +03:00
Alexander Epaneshnikov
a7e33374fd
enable beeps in boot menu 2022-05-28 13:35:26 +03:00
nl6720
376e9282da
Merge remote-tracking branch 'origin/merge-requests/216'
* origin/merge-requests/216:
  Update CHANGELOG.
  Update baseline and releng profiledef.sh to support ia32 uefi mode.
  Add GRUB configuration files to baseline and releng profiles.
  Add support for GRUB ia32 UEFI in mkarchiso, update READMEs.

Closes #107

See merge request !216
2022-05-27 20:03:45 +03:00
Pellegrino Prevete
09d8885f56
Update CHANGELOG. 2022-05-25 14:55:45 +00:00
Pellegrino Prevete
c335d5d392
Update baseline and releng profiledef.sh to support ia32 uefi mode. 2022-05-25 14:52:22 +00:00
Pellegrino Prevete
4e20b30faf
Add GRUB configuration files to baseline and releng profiles. 2022-05-25 14:50:49 +00:00
Pellegrino Prevete
2b7e1b4a28
Add support for GRUB ia32 UEFI in mkarchiso, update READMEs. 2022-05-25 14:49:02 +00:00
nl6720
4936978e2b
Merge remote-tracking branch 'origin/merge-requests/250'
* origin/merge-requests/250:
  bind-tools has been replaced with bind

See merge request !250
2022-05-18 16:18:27 +03:00
Darren Ng
a8f7762769 bind-tools has been replaced with bind 2022-05-17 02:17:56 +00:00
nl6720
66d4c7fa67
Add changelog for 63 2022-04-30 13:11:52 +03:00
nl6720
8c837ca23b
configs/*: add VMware and Hyper-V guest packages and enable their services
* open-vm-tools package, vmtoolsd.service and vmware-vmblock-fuse.service for VMware.
* hyperv package, hv_fcopy_daemon.service, hv_kvp_daemon.service and hv_vss_daemon.service for Hyper-V.

Related to #118.
2022-04-30 12:07:36 +03:00
nl6720
dc681dc90f
configs/releng/airootfs/etc/xdg/reflector/reflector.conf: use mirrors that support both IPv4 & IPv6
This ensures that IPv6-only systems get working mirrors.
2022-04-28 17:52:40 +03:00
nl6720
4ef705847d
configs/releng/packages.x86_64: add open-iscsi
It is needed for installing Arch on an iSCSI target.
2022-04-28 13:42:10 +03:00
nl6720
ed24bbaa8e
configs/releng/packages.x86_64: add dmidecode
It is useful for finding information about the system's hardware and firmware.
2022-04-07 18:25:06 +03:00
nl6720
09b0428128
configs/releng/airootfs/etc/systemd/system/etc-pacman.d-gnupg.mount: use ramfs
When using tmpfs, it is possible that parts of it end up getting put in swap space (only if there is one).
This may not be desired, so use ramfs instead.
2022-04-06 18:10:37 +03:00
David Runge
20f588436d
Add changelog for 62.1
CHANGELOG.rst:
Add changelog for 62.1
2022-04-05 17:26:48 +02:00
David Runge
dcf14c87ad
Merge remote-tracking branch 'tpowa/crda'
* tpowa/crda:
  remove crda, removed from core recently
2022-04-05 17:25:54 +02:00
Tobias Powalowski
d185d09aab remove crda, removed from core recently 2022-04-05 16:42:54 +02:00