├── .editorconfig ├── .gitlab-ci.yml ├── .gitlab └── ci │ └── build_archiso.sh ├── .mailmap ├── .shellcheckrc ├── AUTHORS.rst ├── CHANGELOG.rst ├── CONTRIBUTING.rst ├── LICENSE ├── Makefile ├── README.rst ├── archiso └── mkarchiso ├── configs ├── baseline │ ├── airootfs │ │ └── etc │ │ │ ├── locale.conf │ │ │ ├── localtime │ │ │ ├── mkinitcpio.conf.d │ │ │ └── archiso.conf │ │ │ ├── mkinitcpio.d │ │ │ └── linux.preset │ │ │ ├── shadow │ │ │ ├── ssh │ │ │ └── sshd_config.d │ │ │ │ └── 10-archiso.conf │ │ │ └── systemd │ │ │ ├── network.conf.d │ │ │ └── ipv6-privacy-extensions.conf │ │ │ ├── network │ │ │ └── 20-ethernet.network │ │ │ ├── resolved.conf.d │ │ │ └── archiso.conf │ │ │ ├── system-generators │ │ │ └── systemd-gpt-auto-generator │ │ │ └── system │ │ │ ├── cloud-init.target.wants │ │ │ ├── cloud-config.service │ │ │ ├── cloud-final.service │ │ │ ├── cloud-init-local.service │ │ │ ├── cloud-init-main.service │ │ │ └── cloud-init-network.service │ │ │ ├── multi-user.target.wants │ │ │ ├── hv_fcopy_daemon.service │ │ │ ├── hv_kvp_daemon.service │ │ │ ├── hv_vss_daemon.service │ │ │ ├── sshd.service │ │ │ ├── systemd-networkd.service │ │ │ ├── systemd-resolved.service │ │ │ ├── vboxservice.service │ │ │ ├── vmtoolsd.service │ │ │ └── vmware-vmblock-fuse.service │ │ │ ├── network-online.target.wants │ │ │ └── systemd-networkd-wait-online.service │ │ │ ├── sockets.target.wants │ │ │ └── systemd-networkd.socket │ │ │ └── systemd-networkd-wait-online.service.d │ │ │ └── wait-for-only-one-interface.conf │ ├── bootstrap_packages.x86_64 │ ├── efiboot │ │ └── loader │ │ │ ├── entries │ │ │ └── 01-archiso-x86_64-linux.conf │ │ │ └── loader.conf │ ├── grub │ │ ├── grub.cfg │ │ └── loopback.cfg │ ├── packages.x86_64 │ ├── pacman.conf │ ├── profiledef.sh │ └── syslinux │ │ ├── syslinux-linux.cfg │ │ └── syslinux.cfg └── releng │ ├── airootfs │ ├── etc │ │ ├── hostname │ │ ├── locale.conf │ │ ├── localtime │ │ ├── mkinitcpio.conf.d │ │ │ └── archiso.conf │ │ ├── mkinitcpio.d │ │ │ └── linux.preset │ │ ├── modprobe.d │ │ │ └── broadcom-wl.conf │ │ ├── motd │ │ ├── pacman.d │ │ │ └── hooks │ │ │ │ ├── uncomment-mirrors.hook │ │ │ │ └── zzzz99-remove-custom-hooks-from-airootfs.hook │ │ ├── passwd │ │ ├── resolv.conf │ │ ├── shadow │ │ ├── ssh │ │ │ └── sshd_config.d │ │ │ │ └── 10-archiso.conf │ │ ├── systemd │ │ │ ├── journald.conf.d │ │ │ │ └── volatile-storage.conf │ │ │ ├── logind.conf.d │ │ │ │ └── do-not-suspend.conf │ │ │ ├── network.conf.d │ │ │ │ └── ipv6-privacy-extensions.conf │ │ │ ├── network │ │ │ │ ├── 20-ethernet.network │ │ │ │ ├── 20-wlan.network │ │ │ │ └── 20-wwan.network │ │ │ ├── resolved.conf.d │ │ │ │ └── archiso.conf │ │ │ ├── system-generators │ │ │ │ └── systemd-gpt-auto-generator │ │ │ └── system │ │ │ │ ├── choose-mirror.service │ │ │ │ ├── cloud-init.target.wants │ │ │ │ ├── cloud-config.service │ │ │ │ ├── cloud-final.service │ │ │ │ ├── cloud-init-local.service │ │ │ │ ├── cloud-init-main.service │ │ │ │ └── cloud-init-network.service │ │ │ │ ├── dbus-org.freedesktop.ModemManager1.service │ │ │ │ ├── dbus-org.freedesktop.network1.service │ │ │ │ ├── dbus-org.freedesktop.resolve1.service │ │ │ │ ├── dbus-org.freedesktop.timesync1.service │ │ │ │ ├── etc-pacman.d-gnupg.mount │ │ │ │ ├── getty@tty1.service.d │ │ │ │ └── autologin.conf │ │ │ │ ├── livecd-alsa-unmuter.service │ │ │ │ ├── livecd-talk.service │ │ │ │ ├── multi-user.target.wants │ │ │ │ ├── ModemManager.service │ │ │ │ ├── choose-mirror.service │ │ │ │ ├── hv_fcopy_daemon.service │ │ │ │ ├── hv_kvp_daemon.service │ │ │ │ ├── hv_vss_daemon.service │ │ │ │ ├── iwd.service │ │ │ │ ├── livecd-talk.service │ │ │ │ ├── pacman-init.service │ │ │ │ ├── reflector.service │ │ │ │ ├── sshd.service │ │ │ │ ├── systemd-networkd.service │ │ │ │ ├── systemd-resolved.service │ │ │ │ ├── vboxservice.service │ │ │ │ ├── vmtoolsd.service │ │ │ │ └── vmware-vmblock-fuse.service │ │ │ │ ├── network-online.target.wants │ │ │ │ └── systemd-networkd-wait-online.service │ │ │ │ ├── pacman-init.service │ │ │ │ ├── reflector.service.d │ │ │ │ └── archiso.conf │ │ │ │ ├── sockets.target.wants │ │ │ │ ├── pcscd.socket │ │ │ │ └── systemd-networkd.socket │ │ │ │ ├── sound.target.wants │ │ │ │ └── livecd-alsa-unmuter.service │ │ │ │ ├── sysinit.target.wants │ │ │ │ ├── systemd-time-wait-sync.service │ │ │ │ └── systemd-timesyncd.service │ │ │ │ └── systemd-networkd-wait-online.service.d │ │ │ │ └── wait-for-only-one-interface.conf │ │ └── xdg │ │ │ └── reflector │ │ │ └── reflector.conf │ ├── root │ │ ├── .automated_script.sh │ │ ├── .gnupg │ │ │ └── scdaemon.conf │ │ └── .zlogin │ └── usr │ │ └── local │ │ ├── bin │ │ ├── Installation_guide │ │ ├── choose-mirror │ │ └── livecd-sound │ │ └── share │ │ └── livecd-sound │ │ └── asound.conf.in │ ├── bootstrap_packages.x86_64 │ ├── efiboot │ └── loader │ │ ├── entries │ │ ├── 01-archiso-x86_64-linux.conf │ │ ├── 02-archiso-x86_64-speech-linux.conf │ │ └── 03-archiso-x86_64-memtest86+.conf │ │ └── loader.conf │ ├── grub │ ├── grub.cfg │ └── loopback.cfg │ ├── packages.x86_64 │ ├── pacman.conf │ ├── profiledef.sh │ └── syslinux │ ├── archiso_head.cfg │ ├── archiso_pxe-linux.cfg │ ├── archiso_pxe.cfg │ ├── archiso_sys-linux.cfg │ ├── archiso_sys.cfg │ ├── archiso_tail.cfg │ ├── splash.png │ └── syslinux.cfg ├── docs ├── README.profile.rst └── README.transfer.rst ├── man ├── mkarchiso.1.rst └── variables.rst └── scripts └── run_archiso.sh /.editorconfig: -------------------------------------------------------------------------------- 1 | # EditorConfig for archiso 2 | # https://editorconfig.org/ 3 | # 4 | # SPDX-License-Identifier: GPL-3.0-or-later 5 | 6 | # Top-most EditorConfig file 7 | root = true 8 | 9 | # Unix-style newlines without trailing whitespaces, but with a newline 10 | # ending every file, utf-8 charset, set indent to spaces with width of four 11 | [*] 12 | end_of_line = lf 13 | insert_final_newline = true 14 | trim_trailing_whitespace = true 15 | charset = utf-8 16 | indent_style = space 17 | indent_size = 4 18 | max_line_length = 120 19 | # for shfmt 20 | switch_case_indent = true 21 | binary_next_line = true 22 | 23 | 24 | [*.{yml,yaml}] 25 | end_of_line = lf 26 | insert_final_newline = true 27 | trim_trailing_whitespace = true 28 | charset = utf-8 29 | indent_style = space 30 | indent_size = 2 31 | 32 | [*.rst] 33 | end_of_line = lf 34 | insert_final_newline = true 35 | trim_trailing_whitespace = true 36 | charset = utf-8 37 | indent_style = space 38 | indent_size = 2 39 | 40 | [Makefile] 41 | indent_style = tab 42 | -------------------------------------------------------------------------------- /.gitlab-ci.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # 3 | # SPDX-License-Identifier: GPL-3.0-or-later 4 | 5 | stages: 6 | - check 7 | - build 8 | 9 | check: 10 | before_script: 11 | # NOTE: Install latest archlinux-keyring before upgrading system. In the 12 | # future this should not be needed anymore when we can guarantee a valid 13 | # keyring for longer: 14 | # https://gitlab.archlinux.org/archlinux/archlinux-keyring/-/issues/4 15 | - pacman -Sy --needed --noconfirm archlinux-keyring 16 | - pacman --noconfirm -Syu --needed make shellcheck 17 | script: 18 | - make check 19 | stage: check 20 | interruptible: true 21 | 22 | .build: 23 | artifacts: 24 | reports: 25 | metrics: output/metrics.txt 26 | before_script: 27 | - pacman -Sy --needed --noconfirm archlinux-keyring 28 | - pacman -Syu --needed --noconfirm arch-install-scripts bash dosfstools e2fsprogs erofs-utils gnupg grub jq libarchive libisoburn mtools openssl python-docutils squashfs-tools zsync 29 | script: 30 | - ./.gitlab/ci/build_archiso.sh ${BUILD_SCRIPT_ARGS} 31 | stage: build 32 | tags: 33 | - vm 34 | 35 | build_short: 36 | extends: .build 37 | parallel: 38 | matrix: 39 | - BUILD_SCRIPT_ARGS: baseline bootstrap 40 | - BUILD_SCRIPT_ARGS: releng bootstrap 41 | only: 42 | refs: 43 | - master 44 | - merge_requests 45 | changes: 46 | - archiso/* 47 | - configs/**/* 48 | - Makefile 49 | - .gitlab-ci.yml 50 | - .gitlab/ci/* 51 | interruptible: true 52 | 53 | build_long: 54 | extends: .build 55 | parallel: 56 | matrix: 57 | - BUILD_SCRIPT_ARGS: baseline iso 58 | - BUILD_SCRIPT_ARGS: baseline netboot 59 | - BUILD_SCRIPT_ARGS: releng iso 60 | - BUILD_SCRIPT_ARGS: releng netboot 61 | only: 62 | refs: 63 | - master 64 | - merge_requests 65 | changes: 66 | - archiso/* 67 | - configs/**/* 68 | - Makefile 69 | - .gitlab-ci.yml 70 | - .gitlab/ci/* 71 | interruptible: true 72 | -------------------------------------------------------------------------------- /.gitlab/ci/build_archiso.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # 3 | # This script is run within a virtual environment to build the available archiso profiles and their available build 4 | # modes and create checksum files for the resulting images. 5 | # The script needs to be run as root and assumes $PWD to be the root of the repository. 6 | # 7 | # Dependencies: 8 | # * all archiso dependencies 9 | # * coreutils 10 | # * gnupg 11 | # * openssl 12 | # * zsync 13 | # 14 | # $1: profile 15 | # $2: buildmode 16 | 17 | set -euo pipefail 18 | shopt -s extglob 19 | 20 | readonly orig_pwd="${PWD}" 21 | readonly output="${orig_pwd}/output" 22 | readonly tmpdir_base="${orig_pwd}/tmp" 23 | readonly profile="${1}" 24 | readonly buildmode="${2}" 25 | readonly install_dir="arch" 26 | 27 | tmpdir="" 28 | tmpdir="$(mktemp --dry-run --directory --tmpdir="${tmpdir_base}")" 29 | gnupg_homedir="" 30 | codesigning_dir="" 31 | codesigning_cert="" 32 | codesigning_key="" 33 | ca_cert="" 34 | ca_key="" 35 | pgp_key_id="" 36 | 37 | print_section_start() { 38 | # gitlab collapsible sections start: https://docs.gitlab.com/ee/ci/jobs/#custom-collapsible-sections 39 | local _section _title 40 | _section="${1}" 41 | _title="${2}" 42 | 43 | printf "\e[0Ksection_start:%(%s)T:%s\r\e[0K%s\n" '-1' "${_section}" "${_title}" 44 | } 45 | 46 | print_section_end() { 47 | # gitlab collapsible sections end: https://docs.gitlab.com/ee/ci/jobs/#custom-collapsible-sections 48 | local _section 49 | _section="${1}" 50 | 51 | printf "\e[0Ksection_end:%(%s)T:%s\r\e[0K\n" '-1' "${_section}" 52 | } 53 | 54 | cleanup() { 55 | # clean up temporary directories 56 | print_section_start "cleanup" "Cleaning up temporary directory" 57 | 58 | if [[ -n "${tmpdir_base:-}" ]]; then 59 | rm -fr "${tmpdir_base}" 60 | fi 61 | 62 | print_section_end "cleanup" 63 | } 64 | 65 | create_checksums() { 66 | # create checksums for files 67 | # $@: files 68 | local _file_path _file_name _current_pwd 69 | _current_pwd="${PWD}" 70 | 71 | print_section_start "checksums" "Creating checksums" 72 | 73 | for _file_path in "$@"; do 74 | cd "$(dirname "${_file_path}")" 75 | _file_name="$(basename "${_file_path}")" 76 | b2sum "${_file_name}" >"${_file_name}.b2" 77 | md5sum "${_file_name}" >"${_file_name}.md5" 78 | sha1sum "${_file_name}" >"${_file_name}.sha1" 79 | sha256sum "${_file_name}" >"${_file_name}.sha256" 80 | sha512sum "${_file_name}" >"${_file_name}.sha512" 81 | ls -lah "${_file_name}."{b2,md5,sha{1,256,512}} 82 | cat "${_file_name}."{b2,md5,sha{1,256,512}} 83 | done 84 | cd "${_current_pwd}" 85 | 86 | print_section_end "checksums" 87 | } 88 | 89 | create_zsync_delta() { 90 | # create zsync control files for files 91 | # $@: files 92 | local _file 93 | 94 | print_section_start "zsync_delta" "Creating zsync delta" 95 | 96 | for _file in "$@"; do 97 | if [[ "${buildmode}" == "bootstrap" ]]; then 98 | # zsyncmake fails on 'too long between blocks' with default block size on bootstrap image 99 | zsyncmake -v -b 512 -C -u "${_file##*/}" -o "${_file}".zsync "${_file}" 100 | else 101 | zsyncmake -v -C -u "${_file##*/}" -o "${_file}".zsync "${_file}" 102 | fi 103 | done 104 | 105 | print_section_end "zsync_delta" 106 | } 107 | 108 | create_metrics() { 109 | local _metrics="${output}/metrics.txt" 110 | # create metrics 111 | print_section_start "metrics" "Creating metrics" 112 | 113 | { 114 | # create metrics based on buildmode 115 | case "${buildmode}" in 116 | iso) 117 | printf 'image_size_mebibytes{image="%s"} %s\n' \ 118 | "${profile}" \ 119 | "$(du -m -- "${output}/"*.iso | cut -f1)" 120 | printf 'package_count{image="%s"} %s\n' \ 121 | "${profile}" \ 122 | "$(sort -u -- "${tmpdir}/iso/"*/pkglist.*.txt | wc -l)" 123 | if [[ -e "${tmpdir}/efiboot.img" ]]; then 124 | printf 'eltorito_efi_image_size_mebibytes{image="%s"} %s\n' \ 125 | "${profile}" \ 126 | "$(du -m -- "${tmpdir}/efiboot.img" | cut -f1)" 127 | fi 128 | # shellcheck disable=SC2046 129 | # shellcheck disable=SC2183 130 | printf 'initramfs_size_mebibytes{image="%s",initramfs="%s"} %s\n' \ 131 | $( 132 | du -m -- "${tmpdir}/iso/"*/boot/**/initramfs*.img \ 133 | | awk -v profile="${profile}" \ 134 | 'function basename(file) { 135 | sub(".*/", "", file) 136 | return file 137 | } 138 | { print profile, basename($2), $1 }' 139 | ) 140 | ;; 141 | netboot) 142 | printf 'netboot_size_mebibytes{image="%s"} %s\n' \ 143 | "${profile}" \ 144 | "$(du -m -- "${output}/${install_dir}/" | tail -n1 | cut -f1)" 145 | printf 'netboot_package_count{image="%s"} %s\n' \ 146 | "${profile}" \ 147 | "$(sort -u -- "${tmpdir}/iso/"*/pkglist.*.txt | wc -l)" 148 | ;; 149 | bootstrap) 150 | printf 'bootstrap_size_mebibytes{image="%s"} %s\n' \ 151 | "${profile}" \ 152 | "$(du -m -- "${output}/"*.tar*(.gz|.xz|.zst) | cut -f1)" 153 | printf 'bootstrap_package_count{image="%s"} %s\n' \ 154 | "${profile}" \ 155 | "$(sort -u -- "${tmpdir}/"*/bootstrap/pkglist.*.txt | wc -l)" 156 | ;; 157 | esac 158 | } >"${_metrics}" 159 | ls -lah "${_metrics}" 160 | cat "${_metrics}" 161 | 162 | print_section_end "metrics" 163 | } 164 | 165 | create_ephemeral_pgp_key() { 166 | # create an ephemeral PGP key for signing the rootfs image 167 | print_section_start "ephemeral_pgp_key" "Creating ephemeral PGP key" 168 | 169 | gnupg_homedir="$tmpdir/.gnupg" 170 | mkdir -p "${gnupg_homedir}" 171 | chmod 700 "${gnupg_homedir}" 172 | 173 | cat <<__EOF__ >"${gnupg_homedir}"/gpg.conf 174 | quiet 175 | batch 176 | no-tty 177 | no-permission-warning 178 | export-options no-export-attributes,export-clean 179 | list-options no-show-keyring 180 | armor 181 | no-emit-version 182 | __EOF__ 183 | 184 | gpg --homedir "${gnupg_homedir}" --gen-key <"${ca_dir}/serial" 237 | 238 | # Prepare the ca configuration for the change in directory 239 | sed -i "s#/etc/ssl#${ca_dir}#g" "${ca_conf}" 240 | 241 | # Create the Certificate Authority 242 | openssl req \ 243 | -newkey rsa:4096 \ 244 | -nodes \ 245 | -x509 \ 246 | -new \ 247 | -sha256 \ 248 | -keyout "${ca_key}" \ 249 | -config "${ca_conf}" \ 250 | -subj "${ca_subj}" \ 251 | -days 2 \ 252 | -out "${ca_cert}" 253 | 254 | local extension_text 255 | IFS='' read -r -d '' extension_text <> "${ca_conf}" 262 | printf '%s' "${extension_text}" >> "${codesigning_conf}" 263 | 264 | openssl req \ 265 | -newkey rsa:4096 \ 266 | -keyout "${codesigning_key}" \ 267 | -nodes \ 268 | -sha256 \ 269 | -out "${codesigning_cert}.csr" \ 270 | -config "${codesigning_conf}" \ 271 | -subj "${codesigning_subj}" \ 272 | -extensions codesigning 273 | 274 | # Sign the code signing certificate with the CA 275 | openssl ca \ 276 | -batch \ 277 | -config "${ca_conf}" \ 278 | -extensions codesigning \ 279 | -days 2 \ 280 | -notext \ 281 | -md sha256 \ 282 | -keyfile "${ca_key}" \ 283 | -cert "${ca_cert}" \ 284 | -in "${codesigning_cert}.csr" \ 285 | -out "${codesigning_cert}" 286 | 287 | print_section_end "ephemeral_codesigning_key" 288 | } 289 | 290 | run_mkarchiso() { 291 | # run mkarchiso 292 | create_ephemeral_pgp_key 293 | create_ephemeral_codesigning_keys 294 | 295 | print_section_start "mkarchiso" "Running mkarchiso" 296 | mkdir -p "${output}/" "${tmpdir}/" 297 | GNUPGHOME="${gnupg_homedir}" ./archiso/mkarchiso \ 298 | -D "${install_dir}" \ 299 | -c "${codesigning_cert} ${codesigning_key} ${ca_cert}" \ 300 | -g "${pgp_key_id}" \ 301 | -G "${pgp_sender}" \ 302 | -o "${output}/" \ 303 | -w "${tmpdir}/" \ 304 | -m "${buildmode}" \ 305 | -v "configs/${profile}" 306 | 307 | print_section_end "mkarchiso" 308 | 309 | if [[ "${buildmode}" =~ "iso" ]]; then 310 | create_zsync_delta "${output}/"*.iso 311 | create_checksums "${output}/"*.iso 312 | fi 313 | if [[ "${buildmode}" == "bootstrap" ]]; then 314 | create_zsync_delta "${output}/"*.tar*(.gz|.xz|.zst) 315 | create_checksums "${output}/"*.tar*(.gz|.xz|.zst) 316 | fi 317 | create_metrics 318 | 319 | print_section_start "ownership" "Setting ownership on output" 320 | 321 | if [[ -n "${SUDO_UID:-}" ]] && [[ -n "${SUDO_GID:-}" ]]; then 322 | chown -Rv "${SUDO_UID}:${SUDO_GID}" -- "${output}" 323 | fi 324 | print_section_end "ownership" 325 | } 326 | 327 | trap cleanup EXIT 328 | 329 | run_mkarchiso 330 | -------------------------------------------------------------------------------- /.mailmap: -------------------------------------------------------------------------------- 1 | Aaron Griffin 2 | Chandan Singh chandan 3 | Charles Vejnar Charles 4 | Christopher Brannon 5 | David Runge 6 | Eli Schwartz Eli Schwartz via arch-releng 7 | Francois Dupoux fdupoux 8 | Gerardo Exequiel Pozzi 9 | James Sitegen jamesm-sitegen 10 | Keshav Amburay Keshav P R 11 | Martin Damian Fernandez martindamianfernandez 12 | Michael Vorburger Michael Vorburger.ch 13 | Sean Enck Sean Enck via arch-releng 14 | Simo Leone 15 | Sven-Hendrik Haase 16 | Yu Li-Yu Li-Yu Yu via arch-releng 17 | -------------------------------------------------------------------------------- /.shellcheckrc: -------------------------------------------------------------------------------- 1 | # Suggest explicitly using -n in `[ $var ]` 2 | enable=avoid-nullary-conditions 3 | 4 | # Suggest 'command -v' instead of 'which' 5 | enable=deprecate-which 6 | 7 | # Suggest quoting variables without metacharacters 8 | enable=quote-safe-variables 9 | 10 | # Require [[ and warn about [ in Bash/Ksh 11 | enable=require-double-brackets 12 | -------------------------------------------------------------------------------- /AUTHORS.rst: -------------------------------------------------------------------------------- 1 | =============== 2 | Archiso Authors 3 | =============== 4 | 5 | * 2hexed <2hexed@protonmail.com> 6 | * Aaron Griffin 7 | * Adam Purkrt 8 | * Alexander Epaneshnikov 9 | * Alexander Speshilov 10 | * Anton Hvornum 11 | * Antonio V 12 | * Chandan Singh 13 | * Charles Vejnar 14 | * Christian Hesse 15 | * Christopher Brannon 16 | * Dan McGee 17 | * Dariusz Pelowski 18 | * Darren Ng 19 | * David Runge 20 | * David Thurstenson 21 | * Dieter Plaetinck 22 | * Eli Schwartz 23 | * Eric Toombs <567-ewtoombs@users.noreply.gitlab.archlinux.org> 24 | * Florian Pritz 25 | * Francois Dupoux 26 | * Gerardo Exequiel Pozzi 27 | * Gerhard Brauer 28 | * Giancarlo Razzolini 29 | * Howard Hicks 30 | * James Sitegen 31 | * John Lane 32 | * Jonathan Liu 33 | * Jonathon Fernyhough 34 | * Julian 35 | * Justin Kromlinger 36 | * Keshav Amburay 37 | * Kristian Klausen 38 | * Loui Chang 39 | * Lukas Fleischer 40 | * Martin Damian Fernandez 41 | * Michael Gilchrist 42 | * Michael Vorburger 43 | * Pellegrino Prevete 44 | * Pierre Schmitz 45 | * Sean Enck 46 | * Simo Leone 47 | * Simon Wilper 48 | * Sorin Pânca 49 | * Steffen Bönigk 50 | * Sven-Hendrik Haase 51 | * Thomas Bächler 52 | * Tobias Powalowski 53 | * Tom Yan 54 | * Yu Li-Yu 55 | * Zig Globulin 56 | * hayao 57 | * kojq su <3145-kojqsu@users.noreply.gitlab.archlinux.org> 58 | * mono wock 59 | * nl6720 60 | * plain linen 61 | * shivanandvp 62 | * weltio weltio 63 | * Øyvind Heggstad 64 | -------------------------------------------------------------------------------- /CHANGELOG.rst: -------------------------------------------------------------------------------- 1 | ######### 2 | Changelog 3 | ######### 4 | 5 | [XX] - YYYY-MM-DD 6 | ================= 7 | 8 | Added 9 | ----- 10 | 11 | Changed 12 | ------- 13 | 14 | - Undeprecate ``/${install_dir}/grubenv``. There are use cases that rely on extracting only the ``${install_dir}`` from 15 | the ISO. 16 | 17 | Deprecated 18 | ---------- 19 | 20 | Fixed 21 | ----- 22 | 23 | Removed 24 | ------- 25 | 26 | - Removed ``rp-pppoe`` from releng packages. ``ppp`` provides a PPPoE client that is sufficient for most use cases. 27 | 28 | [83] - 2025-03-24 29 | ================= 30 | 31 | Changed 32 | ------- 33 | 34 | - Remove the pacstrap directory early to lower the maximum size of the working directory. 35 | 36 | Fixed 37 | ----- 38 | 39 | - Do not hide ``pacstrap`` errors in non-verbose mode. 40 | 41 | Removed 42 | ------- 43 | 44 | - Removed deprecated dhclient from packages. 45 | 46 | [82] - 2024-11-27 47 | ================= 48 | 49 | Fixed 50 | ----- 51 | 52 | - Commented out ``DownloadUser`` in ``pacman.conf`` so that the working directory is not restricted to paths to which 53 | the ``alpm`` user has access to. 54 | 55 | [81] - 2024-10-28 56 | ================= 57 | 58 | Fixed 59 | ----- 60 | 61 | - Change enabled services in baseline and releng profile to adapt to changes in ``cloud-init`` ≥ 24.3 (renamed 62 | ``cloud-init.service`` to ``cloud-init-network.service``, introduced new ``cloud-init-main.service``). 63 | 64 | Removed 65 | ------- 66 | 67 | - Removed gnu-netcat from releng profile, as cloud-init requires openbsd-netcat and the two netcat versions can not be 68 | installed side-by-side. 69 | 70 | [80] - 2024-09-26 71 | ================= 72 | 73 | Added 74 | ----- 75 | 76 | - Support compressing the bootstrap tarball with ``xz``. 77 | 78 | Changed 79 | ------- 80 | 81 | - Use an empty UUID for the EROFS image file since the file system will never be referenced by it. 82 | - Do not use ``mkfs.erofs`` extended options ``fragments`` and ``dedupe`` in the baseline profile. This reduces the EROFS 83 | image size and compression time. 84 | - Update profile ``pacman.conf`` to include the new options added to ``/etc/pacman.conf`` in pacman 7.0.0.r3.g7736133-1. 85 | 86 | Fixed 87 | ----- 88 | 89 | - Show the correct image file name, including the extension, when building a bootstrap image. 90 | 91 | Removed 92 | ------- 93 | 94 | - Removed reiserfsprogs from packages (EOL) 95 | 96 | [79] - 2024-07-25 97 | ================= 98 | 99 | Fixed 100 | ----- 101 | 102 | - When downloading an automation script fail with non-zero status code instead of returning an HTML document when the 103 | remote HTTP server fails to deliver the document. 104 | 105 | Removed 106 | ------- 107 | 108 | - Remove unneeded workaround for e2fsprogs < 1.47.1. 109 | 110 | [78] - 2024-05-23 111 | ================= 112 | 113 | Changed 114 | ------- 115 | 116 | - Moved the ``pkglist.x86_64.txt`` file outside the bootstrap tarball's ``root.x86_64`` directly to avoid polluting the 117 | root file system. 118 | - Use 4 MiB OVMF files in ``run_archiso`` instead of the old 2 MiB ones. 119 | - Increase the additional free space of the EFI partition size from 1 MiB to 8 MiB to account for file system overhead 120 | when using FAT32 (needs less than 1 MiB) and to give more space for adding custom files when repacking an ISO (e.g. 121 | when preparing it for Secure Boot). 122 | - Remove 300 KiB padding needed for CDs if the ISO exceeds the maximum size of a CD. 123 | - Use ``xz -9e`` as the releng profile's initramfs compression. Now that mkinitcpio does not decompress the loadable 124 | kernel modules and firmware files anymore and moves them to the early uncompressed initramfs, we can compress the main 125 | initramfs image with a higher compression without it having much impact on the ISO build time. 126 | - Format the EFI system partition image as FAT32 if the size allows it (i.e. if it is at least 36 MiB). 127 | 128 | Fixed 129 | ----- 130 | 131 | - Look for microcode update files in the initramfs images when checking if external microcode images are needed. The 132 | existence of a ``early_cpio`` file is not enough since mkinitcpio can and will place other files in the early 133 | uncompressed CPIO even when the ``microcode`` hook is not used. 134 | 135 | Removed 136 | ------- 137 | 138 | - Remove the wezterm-terminfo package from the releng profile as the relevant file is now provided by the ncurses 139 | package instead. 140 | 141 | [77] - 2024-04-21 142 | ================= 143 | 144 | Added 145 | ----- 146 | 147 | - Copy Memtest86+ EFI binary to the EFI system partition and ISO 9660 for ``uefi-x86.systemd-boot`` boot modes. 148 | Additionally, create a boot entry with it for the releng profile. 149 | 150 | Changed 151 | ------- 152 | 153 | - Change releng profile's bootstrap tarball compression from gzip to zstd. zstd provides higher and faster compression. 154 | - Use mkinitcpio's ``microcode`` hook instead of external microcode images to simplify boot loader configuration. 155 | Custom PXE setups will need to update their boot loader configuration. 156 | - Replace ``archisodevice`` boot parameter with ``archisosearchuuid`` in all boot loader configuration. This allows to 157 | have "file system transposition" without relaying on GRUB-specific features. 158 | - Replace GRUB with systemd-boot as the UEFI boot loader for the releng profile. While this increases the ISO size, it 159 | avoids all GRUB-specific annoyances and oddities. 160 | 161 | Fixed 162 | ----- 163 | 164 | - Fix requirement validation logic for the ``uefi-ia32.systemd-boot.eltorito`` boot mode. It incorrectly applied the 165 | same requirements as ``uefi-x64.systemd-boot.esp``. 166 | 167 | [76] - 2024-03-30 168 | ================= 169 | 170 | Added 171 | ----- 172 | 173 | - Add a man page for ``mkarchiso``. 174 | - Implement configurable bootstrap tarball compression. It is configured in ``profiledef.sh`` using a bash array called 175 | ``bootstrap_tarball_compression``. baseline tarball now uses zstd compression while releng remains with gzip for now. 176 | 177 | Changed 178 | ------- 179 | 180 | - Move ``/boot/grub/YYYY-mm-dd-HH-MM-SS-00.uuid`` to ``/boot/YYYY-mm-dd-HH-MM-SS-00.uuid`` and always create the file. 181 | Once mkinitcpio-archiso implements searching for the file in early userspace, this file's use will not be limited to 182 | just GRUB. 183 | - Skip including external microcode images in build artifacts if the initramfs file contains ``early_cpio`` (indicating 184 | an early uncompressed CPIO archive which should have the microcode update files). 185 | 186 | Removed 187 | ------- 188 | 189 | - Remove workaround for glibc < 2.39. ``LC_ALL=C.UTF-8`` now overrides ``LANGUAGE``, just like ``LC_ALL=C``. 190 | 191 | [75] - 2024-01-24 192 | ================= 193 | 194 | Added 195 | ----- 196 | 197 | - Explicitly add ldns to releng (as opposed to it only being pulled in as a dependency of another package) to ensure 198 | ``drill`` remains available. 199 | 200 | Changed 201 | ------- 202 | 203 | - Update the releng ISO description to "Arch Linux Live/Rescue DVD" since the ISO size now exceeds the maximum size of 204 | a CD (900 MiB). 205 | 206 | Fixed 207 | ----- 208 | 209 | - Update the location where ``mkarchiso`` looks for the memtest86+ license file. 210 | 211 | [74] - 2023-12-21 212 | ================= 213 | 214 | Added 215 | ----- 216 | 217 | - Add bcachefs-tools to releng for access to bcachefs userspace tools. 218 | - Add tftp as a valid protocol for downloading automated boot script. 219 | 220 | Changed 221 | ------- 222 | 223 | - Set ``RequiredForOnline=routable`` in systemd-networkd configuration files to improve the chances that the network 224 | really is *online* when ``network-online.target`` is reached. 225 | 226 | Fixed 227 | ----- 228 | 229 | - Add missing replacement for the UUID variable in systemd-boot configuration files on ISO 9660. 230 | 231 | [73] - 2023-09-29 232 | ================= 233 | 234 | Added 235 | ----- 236 | 237 | - Add bolt to releng for authorizing and otherwise managing Thunderbolt and USB4 devices. 238 | - Add ``uefi-ia32.systemd-boot.esp`` and ``uefi-ia32.systemd-boot.eltorito`` boot modes that use systemd-boot for IA32 239 | UEFI. The boot modes of baseline and releng are not changed. 240 | - Add GRUB configuration file ``/boot/grub/loopback.cfg`` to the releng and baseline profiles. It sets the necessary 241 | boot parameters required for booting the ISO image as a file on a file system. 242 | 243 | Fixed 244 | ----- 245 | 246 | - Add ``/etc/localtime`` to the baseline profile to ensure the ISO can be booted successfully without triggering 247 | questions from systemd-firstboot. 248 | 249 | [72] - 2023-08-29 250 | ================= 251 | 252 | Added 253 | ----- 254 | 255 | - Add tpm2-tools to releng to allow clearing, creating and reading keys on the TPM. 256 | - Add sequoia-sq and openpgp-card-tools as additional tooling for working with OpenPGP certificates and smartcards. 257 | 258 | Changed 259 | ------- 260 | 261 | - Moved custom ``mkinitcpio.conf`` files to ``/etc/mkinitcpio.conf.d/archiso.conf``. 262 | - Mount ``/etc/pacman.d/gnupg`` on tmpfs with option ``noswap`` instead of using ramfs. This ensures there is a limit to 263 | the file system size. 264 | - Enable systemd-networkd's support for IPv6 Privacy Extensions globally instead of per-connection. 265 | - Moved custom ``sshd_config`` files to ``/ssh/sshd_config.d/10-archiso.conf`` 266 | - Use pcsclite for interfacing with smartcards, since both gnupg and opgpcard support it. 267 | 268 | Fixed 269 | ----- 270 | 271 | - Sign the root file system image only once. 272 | - Make sure xorriso does not read its configuration files to prevent interference and unintended behavior. 273 | 274 | [71] - 2023-05-28 275 | ================= 276 | 277 | Added 278 | ----- 279 | 280 | - Added classes for Memtest86+ and UEFI Shell menuentries. 281 | - Add foot-terminfo and wezterm-terminfo packages to releng to support terminal emulators using them. E.g. when 282 | installing via SSH. 283 | - Add a new ``-r`` option to ``mkarchiso`` that deletes the working directly after the build. 284 | - Add support for mDNS announce and resolve. 285 | 286 | Changed 287 | ------- 288 | 289 | - Increase EROFS compression for the baseline profile by using an extreme LZMA compression level and enabling the 290 | experimental compressed fragments and data deduplication features. 291 | - Identify the ISO volume via a UUID instead of a file system label in all boot loader configuration files. 292 | - Update ``pacman.conf`` to match the one shipped with pacman 6.0.2-7 which removes the community repository. 293 | 294 | Fixed 295 | ----- 296 | 297 | - Wait for ``network-online.target`` to become active before trying to download the script passed via the ``script=`` 298 | boot parameter. 299 | - Subdirectories from ``grub/`` are copied to the ISO. 300 | - Modify the commandline options to a ``cp`` command in ``mkarchiso`` so that the entire script does not exit with 301 | failure when a custom ``.bashrc`` file is supplied with the archiso configuration. This fix was needed after 302 | **GNU Coreutils** recently changed the behaviour of the ``-n`` (or ``--no-clobber``) commandline option to the ``cp`` 303 | command. 304 | - Ensure ``SOURCE_DATE_EPOCH`` is read from the ``build_date`` file before ``profiledef.sh`` is sourced to ensure the 305 | variable has a correct value when used inside ``profiledef.sh``. 306 | 307 | [70] - 2023-02-27 308 | ================= 309 | 310 | Added 311 | ----- 312 | 313 | - Support *file system transposition* to simplify boot medium preparation for UEFI boot via extracting the ISO image 314 | contents to a drive. ``grub.cfg`` does not hardcode the ISO volume label anymore, instead GRUB will search for volume 315 | with a ``/boot/grub/YYYY-mm-dd-HH-MM-SS-00.uuid`` file on it. 316 | - Preload GRUB's NTFS modules for UEFI that allegedly have native NTFS support. GRUB's exFAT and UDF modules are also 317 | preloaded in case someone finds them useful. 318 | 319 | Changed 320 | ------- 321 | 322 | - Identify the ISO volume via a UUID instead of a file system label to avoid collisions of multiple ISOs created in the 323 | same month. 324 | - Honor ``SOURCE_DATE_EPOCH`` in the ``date`` command used by ``profiledef.sh`` of the shipped profiles. 325 | - Do not duplicate ``grub.cfg`` in both ISO 9660 and the EFI system partition / El Torito image. GRUB will search for 326 | the ISO volume and load the ``grub.cfg`` from there. 327 | - Moved GRUB files on ISO 9660 from ``/EFI/BOOT/`` to a boot-platform neutral place ``/boot/grub/``. This does not apply 328 | to the EFI binaries that remain in the default/fallback boot path. 329 | - Move ``grubenv`` to ``/boot/grub/grubenv`` on ISO 9660 so that it is together with the rest of GRUB-specific files. 330 | Additionally write more variables in it. The previous ``/${install_dir}/grubenv`` (``/arch/grubenv`` for releng) 331 | is deprecated and a future archiso release will not create this file anymore. 332 | - Moved syslinux directory from ``/syslinux/`` to ``/boot/syslinux/`` to keep most boot loader files in ``/boot/``. 333 | - Update ``README.transfer`` documentation and convert it to reStructuredText. 334 | - Use ``console`` as grub's ``terminal_output``, as ``gfxterm`` leads to a blank screen on some hardware. 335 | 336 | Removed 337 | ------- 338 | 339 | - Do not place memtest86+ in netboot artifacts. 340 | 341 | [69] - 2022-12-24 342 | ================= 343 | 344 | Added 345 | ----- 346 | 347 | - Add Memtest86+ to x86_64 UEFI GRUB boot menu. 348 | 349 | Changed 350 | ------- 351 | 352 | - Check if the GPG public key file was successfully placed in the work directory before trying to use it. 353 | - Open the file descriptors for code signing certificates and GPG public key as read only. Nothing from the within the 354 | ``pacstrap`` invoked chroot should ever be allowed to write outside of it. 355 | - Error out early if any of the code signing certificate files passed with option ``-c`` do not exist. 356 | - Use LZMA compressed EROFS image for the baseline profile. Now that xz 5.4 is out and erofs-utils is built with LZMA 357 | support, using a higher compression is possible. 358 | - Add ``/etc/machine-id`` with special value ``uninitialized``. The final id is generated at boot time, and systemd's 359 | first-boot mechanim (see ``First Boot Semantics`` in ``machine-id(5)``) applies. No functional change unless that 360 | ``ConditionFirstBoot=yes`` is true and passive unit ``first-boot-complete.target`` activates for ordering. 361 | 362 | [68] - 2022-10-30 363 | ================= 364 | 365 | Changed 366 | ------- 367 | 368 | - Do not explicitly enable ``qemu-guest-agent.service`` as it will be started by a udev rule. 369 | - Remove existing signature (``.sig``) files and do not sign them when signing netboot artifacts. This is mostly 370 | applicable when re-running ``mkarchiso`` after a failure. 371 | - Replace ``archiso_kms`` with ``kms`` in ``mkinitcpio.conf``. The hook is available in mkinitcpio since version 32. 372 | 373 | [67] - 2022-09-25 374 | ================= 375 | 376 | Added 377 | ----- 378 | 379 | - The ability to generate rootfs signatures using openssl CMS module if ``-c`` is given. 380 | 381 | Changed 382 | ------- 383 | 384 | - Order ``pacman-init.service`` before ``archlinux-keyring-wkd-sync.service`` since 385 | ``archlinux-keyring-wkd-sync.service`` needs an initialized pacman keyring. 386 | - Order ``pacman-init.service`` after ``time-sync.target`` since ``pacman-init.service`` may otherwise create local 387 | signatures that are not valid on target systems after installation. 388 | 389 | [66] - 2022-08-28 390 | ================= 391 | 392 | Added 393 | ----- 394 | 395 | - Add ``efibootimg`` to ``mkarchiso`` to abstract the FAT image path. 396 | - Unset ``LANGUAGE`` since ``LC_ALL=C.UTF-8``, unlike ``LC_ALL=C``, does not override ``LANGUAGE``. 397 | - Copy all files from the ``grub`` directory to ISO9660 and the FAT image, not just only ``grub.cfg``. 398 | - Touching ``/usr/lib/clock-epoch`` to to help ``systemd`` with screwed or broken RTC. 399 | 400 | Changed 401 | ------- 402 | 403 | - Disable GRUB's shim_lock verifier and preload more modules. This allows reusing the GRUB EFI binaries when repacking 404 | the ISO to support Secure Boot with custom signatures. 405 | 406 | [65] - 2022-06-30 407 | ================= 408 | 409 | Added 410 | ----- 411 | 412 | - Configure the locale for the baseline profile to ``C.UTF-8`` so that a UTF-8 locale is used. 413 | - Add ``uefi-x64.grub.esp`` and ``uefi-x64.grub.eltorito`` boot mode to support x86_64 UEFI boot on x86_64 machines. 414 | - Use ``mkfs.erofs``'s ``ztailpacking`` option in the baseline profile to reduce the image size. 415 | 416 | Changed 417 | ------- 418 | 419 | - Change the releng profile's locale from ``en_US.UTF-8`` to ``C.UTF-8``. 420 | - Set ``LC_ALL`` to ``C.UTF-8`` instead of ``C`` in mkarchiso since it is now available and non-UTF-8 locales should be 421 | avoided. 422 | 423 | Removed 424 | ------- 425 | 426 | - Remove the custom pacman hook that ran ``locale-gen`` on glibc install from the releng profile. The used locale now 427 | ships with the glibc package itself. 428 | - Remove "Copy to RAM" boot entries since the ``archiso`` mkinitcpio hook enables it automatically when there is enough 429 | free RAM. 430 | 431 | [64] - 2022-05-30 432 | ================= 433 | 434 | Added 435 | ----- 436 | 437 | - Add ``uefi-ia32.grub.esp`` boot mode to support IA32 UEFI boot on x86_64 machines. 438 | - Add GRUB configuration files to profiles. 439 | - Add accessible ``copytoram`` entry. 440 | - Enable beeps in systemd-boot menu. 441 | 442 | Changed 443 | ------- 444 | 445 | - Fix systemd-boot menu entry sorting by using the ``sort-key`` option. 446 | 447 | [63] - 2022-04-30 448 | ================= 449 | 450 | Added 451 | ----- 452 | 453 | - Add dmidecode to the list of packages in the releng profile. 454 | - Add open-iscsi to the list of packages in the releng profile to allow installing Arch on an iSCSI target. 455 | - Add open-vm-tools and hyperv to the list of packages and enable their services to provide better integration with the 456 | VMware and Hyper-V hypervisors. 457 | 458 | Changed 459 | ------- 460 | 461 | - Mount /etc/pacman.d/gnupg on ramfs instead of tmpfs to ensure its contents never land in swap. 462 | - Configure reflector to return only mirrors that support both IPv4 and IPv6. 463 | 464 | 465 | [62.1] - 2022-04-05 466 | =================== 467 | 468 | Removed 469 | ------- 470 | 471 | - Easter egg 472 | 473 | [62] - 2022-03-31 474 | ================= 475 | 476 | Changed 477 | ------- 478 | 479 | - Fix the PXE support. PXELINUX was having trouble finding the kernel and initrds. Now, archiso forces syslinux to 480 | interpret all TFTP paths as absolute. That seems to have solved the issue. 481 | - Disable systemd-gpt-auto-generator, which we do not need, in both baseline and releng profiles. It avoids the error 482 | message about it failing during boot. 483 | 484 | [61] - 2022-01-31 485 | ================= 486 | 487 | Added 488 | ----- 489 | 490 | - Add linux-firmware-marvell to the list of packages in the releng profile (e.g. for Surface Pro 6 WiFi support) 491 | - Add documentation to systemd-networkd configuration files 492 | - Add information about the use of changelog and merge requests to the contributing guidelines 493 | - Make the CI pipelines more efficient by automatically cancelling running pipelines if they are superseded by a newer 494 | commit and by only running build pipelines on code or profile changes 495 | 496 | Changed 497 | ------- 498 | 499 | - Fix an issue where mkarchiso is failing to raise an error when the ``mmd`` and ``mcopy`` commands are not found 500 | - Fix an issue where the architecture detection in mkarchiso fails due to an unset ``arch`` variable in the profile 501 | 502 | Removed 503 | ------- 504 | 505 | [60] - 2021-12-28 506 | ================= 507 | 508 | Added 509 | ----- 510 | 511 | - Add `BB8E6F1B81CF0BB301D74D1CBF425A01E68B38EF` in the Releases section of the README, giving maintainer power to 512 | nl6720. 513 | 514 | Changed 515 | ------- 516 | 517 | - Show a more descriptive message when no code signing certificate is used 518 | 519 | Removed 520 | ------- 521 | 522 | - Remove unused archiso_shutdown hook from the releng profile's mkinitcpio config 523 | 524 | [59] - 2021-11-30 525 | ================= 526 | 527 | Added 528 | ----- 529 | 530 | - Add mailmap file for easier author integration with git 531 | - Add grub and refind to the package list of the releng profile 532 | 533 | Changed 534 | ------- 535 | 536 | - Replace use of date with printf 537 | - Silence command output more efficiently when using --quiet 538 | - Modify curl call to retry up to ten times before giving up on downloading an automated script 539 | 540 | Removed 541 | ------- 542 | 543 | - Remove requirement on setting a Boot mode when building a netboot image 544 | 545 | [58] - 2021-08-25 546 | ================= 547 | 548 | Added 549 | ----- 550 | 551 | - Add support for ``gpg``'s ``--sender`` option 552 | 553 | Changed 554 | ------- 555 | 556 | - Change the way ``mkarchiso`` uses ext4 images to copying files to it directly instead of mounting (this action now 557 | does not require elevated privileges anymore) 558 | - Add version files when using ``netboot`` buildmode as well 559 | - Update the sshd configuration to be compatible with openssh 8.7p1 560 | - Overhaul the used ``gpg`` options 561 | - Fix use of potentially unbound variables 562 | - Refactor the validation functions to have fewer large functions and less code duplication 563 | 564 | Removed 565 | ------- 566 | 567 | - Remove all files related to ``mkinitcpio`` integration, as they now live in 568 | https://gitlab.archlinux.org/archlinux/mkinitcpio/mkinitcpio-archiso 569 | 570 | [57] - 2021-07-30 571 | ================= 572 | 573 | Added 574 | ----- 575 | 576 | - Add a missing line in the systemd-networkd-wait-online.service in the baseline profile 577 | 578 | Changed 579 | ------- 580 | 581 | - Adapt systemd-networkd configuration to systemd ≥ 249 582 | - Improve documentation in ``mkarchiso`` and systemd-networkd related configuration files 583 | - Fix an issue that may prevent continuing an aborted build of the ``netboot`` or ``iso`` buildmode 584 | 585 | Removed 586 | ------- 587 | 588 | - Remove SPDX license identifier from files that are not eligible for copyright (e.g. configuration files) 589 | 590 | [56.1] - 2021-07-11 591 | =================== 592 | 593 | Added 594 | ----- 595 | 596 | Changed 597 | ------- 598 | 599 | - Simplify gitlab CI setup by using ci-scripts (shared amongst several projects) 600 | - Fix an issue with the unsetting of environment variables before using pacstrap/arch-chroot 601 | - Remove termite-terminfo from the releng profile's list of packages (it is not in the official repositories anymore) 602 | - Set LC_ALL instead of LANG 603 | 604 | [56] - 2021-07-01 605 | ================= 606 | 607 | Added 608 | ----- 609 | 610 | - Add pacman >= 6 compatible configuration 611 | - Add documentation for the `script` boot parameter 612 | 613 | Changed 614 | ------- 615 | 616 | - Clear environment variables before working in chroot 617 | - Update Arch Wiki URLs 618 | - Pass SOURCE_DATE_EPOCH to chroot 619 | - Enable parallel downloads in profile pacman configurations 620 | - Generalize the approach of interacting with ucode images 621 | - Execute the netboot build mode for the baseline profile in CI 622 | 623 | [55] - 2021-06-01 624 | ================= 625 | 626 | Added 627 | ----- 628 | 629 | - Add integration for pv when using the copytoram boot parameter so that progress on copying the image to RAM is shown 630 | - Add experimental support for EROFS by using it for the rootfs image in the baseline profile 631 | 632 | Changed 633 | ------- 634 | 635 | - Change information on IRC channel, as Arch Linux moved to Libera Chat 636 | - Fix a regression, that would prevent network interfaces to be configured under certain circumstances 637 | 638 | [54] - 2021-05-13 639 | ================= 640 | 641 | Added 642 | ----- 643 | 644 | - Add the concept of buildmodes to mkarchiso, which allows for building more than the default .iso artifact 645 | (sequentially) 646 | - Add support to mkarchiso and both baseline and releng profiles for building a bootstrap image (a compressed 647 | bootstrapped Arch Linux environment), by using the new buildmode `bootstrap` 648 | - Add support to mkarchiso and both baseline and releng profiles for building artifacts required for netboot with iPXE 649 | (optionally allowing codesigning on the artifacts), by using the new buildmode `netboot` 650 | - Add qemu-guest-agent and virtualbox-guest-utils-nox to the releng profile and enable their services by default to 651 | allow interaction between hypervisor and virtual machine if the installation medium is booted in a virtualized 652 | environment 653 | 654 | Changed 655 | ------- 656 | 657 | - Always use the .sig file extension when signing the rootfs image, as that is how mkinitcpio-archiso expects it 658 | - Fix for CI and run_archiso scripts to be compatible with QEMU >= 6.0 659 | - Increase robustness of CI by granting more time to reach the first prompt 660 | - Change CI to build all available buildmodes of the baseline and releng profiles (baseline's netboot is currently 661 | excluded due to a bug) 662 | - Install all implicitly installed packages explicitly for the releng profile 663 | - Install keyrings more generically when using pacman-init.service 664 | - Consolidate CI scripts so that they may be shared between the archiso, arch-boxes and releng project in the future and 665 | expose their configuration with the help of environment variables 666 | 667 | [53] - 2021-05-01 668 | ================= 669 | 670 | Added 671 | ----- 672 | 673 | - Add ISO name to grubenv 674 | - Add further metrics to CI, so that number of packages and further image sizes can be tracked 675 | - Add IMAGE_ID and IMAGE_VERSION to /etc/os-release 676 | 677 | Changed 678 | ------- 679 | 680 | - Revert to an invalid GPT for greater hardware compatibility 681 | - Fix CI scripts and initcpio script to comply with stricter shellcheck 682 | - Fix an issue where writing to /etc/machine-id might override a file outside of the build directory 683 | - Change gzip flags, so that compressed files are created reproducibly 684 | - Increase default serial baud rate to 115200 685 | - Remove deprecated documentation and format existing documentation 686 | 687 | [52] - 2021-04-01 688 | ================= 689 | 690 | Added 691 | ----- 692 | 693 | - Add usbmuxd support 694 | - Add EROFS support (as an experimental alternative to squashfs) 695 | - Add creation of zsync control file for delta downloads 696 | - Add sof-firmware for additional soundcard support 697 | - Add support for recursively setting file permissions on folders using profiledef.sh 698 | - Add support for mobile broadband devices with the help of modemmanager 699 | - Add information on PGP signatures of tags 700 | - Add archinstall support 701 | 702 | Changed 703 | ------- 704 | 705 | - Remove haveged 706 | - Fix various things in relation to gitlab CI 707 | - Change systemd-networkd files to more generically setup networkds for devices 708 | - Fix the behavior of the `script=` kernel commandline parameter to follow redirects 709 | - Change the amount of mirrors checked by reflector to 20 to speed up availability of the mirrorlist 710 | 711 | [51] - 2021-02-01 712 | ================= 713 | 714 | Added 715 | ----- 716 | 717 | - VNC support for `run_archiso` 718 | - SSH enabled by default in baseline and releng profiles 719 | - Add cloud-init support to baseline and releng profiles 720 | - Add simple port forwarding to `run_archiso` to allow testing of SSH 721 | - Add support for loading cloud-init user data images to `run_archiso` 722 | - Add version information to images generated with `mkarchiso` 723 | - Use pacman hooks for things previously done in `customize_airootfs.sh` (e.g. generating locale, uncommenting mirror 724 | list) 725 | - Add network setup for the baseline profile 726 | - Add scripts for CI to build the baseline and releng profiles automatically 727 | 728 | Changed 729 | ------- 730 | 731 | - Change upstream URL in vendored profiles to archlinux.org 732 | - Reduce the amount of sed calls in mkarchiso 733 | - Fix typos in `mkarchiso` 734 | - mkinitcpio-archiso: Remove resolv.conf before copy to circumvent its use 735 | - Remove `customize_airootfs.sh` from the vendored profiles 736 | - Support overriding more variables in `profiledef.sh` and refactor their use in `mkarchiso` 737 | - Cleanup unused code in `run_archiso` 738 | -------------------------------------------------------------------------------- /CONTRIBUTING.rst: -------------------------------------------------------------------------------- 1 | ============ 2 | Contributing 3 | ============ 4 | 5 | These are the contribution guidelines for archiso. 6 | All contributions fall under the terms of the GPL-3.0-or-later (see `LICENSE `_). 7 | 8 | Editorconfig 9 | ============ 10 | 11 | A top-level editorconfig file is provided. Please configure your text editor to use it. 12 | 13 | Linting 14 | ======= 15 | 16 | All ash and bash scripts are linted using shellcheck: 17 | 18 | .. code:: bash 19 | 20 | make lint 21 | 22 | Changelog 23 | ========= 24 | 25 | When adding, changing or removing something in a merge request, add a sentence to the `CHANGELOG.rst `_ 26 | explaining it. 27 | The changelog entry needs to be added to the unreleased section at the top, as that section is used for the next 28 | release. 29 | 30 | Merge requests and signed commits 31 | ================================= 32 | 33 | Merge requests are not required to contain signed commits (using ``git commit -S`` - see `man 1 git-commit 34 | `_). 35 | The project maintainers may rebase a given merge request branch at their discretion (if possible), which may remove 36 | signed commits. 37 | 38 | The tip of the project's default branch is required to be a signed commit by the project maintainers. 39 | For external contributors this means, that their merge request will be merged using ``--no-ff`` (see `man 1 git-merge 40 | `_) in a signed merge commit, while contributions by the project maintainers 41 | may be merged using ``--ff`` when the top-most commit of the source branch is signed by a valid PGP key of the given 42 | maintainer. 43 | 44 | Testing 45 | ======= 46 | 47 | Contributors are expected to test their contributions by building the releng profile and running the resulting image 48 | using `run_archiso `_. 49 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # SPDX-License-Identifier: GPL-3.0-or-later 3 | 4 | PREFIX ?= /usr/local 5 | BIN_DIR=$(DESTDIR)$(PREFIX)/bin 6 | DOC_DIR=$(DESTDIR)$(PREFIX)/share/doc/archiso 7 | MAN_DIR?=$(DESTDIR)$(PREFIX)/share/man 8 | PROFILE_DIR=$(DESTDIR)$(PREFIX)/share/archiso 9 | 10 | DOC_FILES=$(wildcard docs/*) $(wildcard *.rst) 11 | SCRIPT_FILES=$(wildcard archiso/*) $(wildcard scripts/*.sh) $(wildcard .gitlab/ci/*.sh) \ 12 | $(wildcard configs/*/profiledef.sh) $(wildcard configs/*/airootfs/usr/local/bin/*) 13 | VERSION?=$(shell git describe --long --abbrev=7 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g;s/\.r0\.g.*//') 14 | 15 | all: 16 | 17 | check: shellcheck 18 | 19 | shellcheck: 20 | shellcheck -s bash $(SCRIPT_FILES) 21 | 22 | install: install-scripts install-profiles install-doc install-man 23 | 24 | install-scripts: 25 | install -vDm 755 archiso/mkarchiso -t "$(BIN_DIR)/" 26 | install -vDm 755 scripts/run_archiso.sh "$(BIN_DIR)/run_archiso" 27 | 28 | install-profiles: 29 | install -d -m 755 $(PROFILE_DIR) 30 | cp -a --no-preserve=ownership configs $(PROFILE_DIR)/ 31 | 32 | install-doc: 33 | install -vDm 644 $(DOC_FILES) -t $(DOC_DIR) 34 | 35 | install-man: 36 | @printf '.. |version| replace:: %s\n' '$(VERSION)' > man/version.rst 37 | install -d -m 755 $(MAN_DIR)/man1 38 | rst2man man/mkarchiso.1.rst $(MAN_DIR)/man1/mkarchiso.1 39 | 40 | .PHONY: check install install-doc install-man install-profiles install-scripts shellcheck 41 | -------------------------------------------------------------------------------- /README.rst: -------------------------------------------------------------------------------- 1 | ======= 2 | archiso 3 | ======= 4 | 5 | The archiso project features scripts and configuration templates to build installation media (*.iso* images and 6 | *.tar bootstrap images) as well as netboot artifacts for BIOS and UEFI based systems on the x86_64 architecture. 7 | Currently creating the images is only supported on Arch Linux but may work on other operating systems as well. 8 | 9 | Requirements 10 | ============ 11 | 12 | The following packages need to be installed to be able to create an image with the included scripts: 13 | 14 | * arch-install-scripts 15 | * awk 16 | * dosfstools 17 | * e2fsprogs 18 | * erofs-utils (optional) 19 | * findutils 20 | * grub 21 | * gzip 22 | * libarchive 23 | * libisoburn 24 | * mtools 25 | * openssl 26 | * pacman 27 | * sed 28 | * squashfs-tools 29 | 30 | For running the images in a virtualized test environment the following packages are required: 31 | 32 | * edk2-ovmf 33 | * qemu 34 | 35 | For linting the shell scripts the following package is required: 36 | 37 | * shellcheck 38 | 39 | For generating the man pages: 40 | 41 | * python-docutils 42 | 43 | Profiles 44 | ======== 45 | 46 | Archiso comes with two profiles: **baseline** and **releng**. While both can serve as starting points for creating 47 | custom live media, **releng** is used to create the monthly installation medium. 48 | They can be found below `configs/baseline/ `_ and `configs/releng/ `_ 49 | (respectively). Both profiles are defined by files to be placed into overlays (e.g. airootfs ‎→‎ the image's ``/``). 50 | 51 | Read `README.profile.rst `_ to learn more about how to create profiles. 52 | 53 | Create images 54 | ============= 55 | 56 | Usually the archiso tools are installed as a package. However, it is also possible to clone this repository and create 57 | images without installing archiso system-wide. 58 | 59 | As filesystems are created and various mount actions have to be done when creating an image, **root** is required to run 60 | the scripts. 61 | 62 | When archiso is installed system-wide and the modification of a profile is desired, it is necessary to copy it to a 63 | writeable location, as ``/usr/share/archiso`` is tracked by the package manager and only writeable by root (changes will 64 | be lost on update). 65 | 66 | The examples below will assume an unmodified profile in a system location (unless noted otherwise). 67 | 68 | It is advised to consult the help output of **mkarchiso**: 69 | 70 | .. code:: sh 71 | 72 | mkarchiso -h 73 | 74 | Create images with packaged archiso 75 | ----------------------------------- 76 | 77 | .. code:: sh 78 | 79 | mkarchiso -w path/to/work_dir -o path/to/out_dir path/to/profile 80 | 81 | Create images with local clone 82 | ------------------------------ 83 | 84 | Clone this repository and run: 85 | 86 | .. code:: sh 87 | 88 | ./archiso/mkarchiso -w path/to/work_dir -o path/to/out_dir path/to/profile 89 | 90 | Testing 91 | ======= 92 | 93 | The convenience script **run_archiso** is provided to boot into the medium using qemu. 94 | It is advised to consult its help output: 95 | 96 | .. code:: sh 97 | 98 | run_archiso -h 99 | 100 | Run the following to boot the iso using BIOS: 101 | 102 | .. code:: sh 103 | 104 | run_archiso -i path/to/an/arch.iso 105 | 106 | Run the following to boot the iso using UEFI: 107 | 108 | .. code:: sh 109 | 110 | run_archiso -u -i path/to/an/arch.iso 111 | 112 | The script can of course also be executed from this repository: 113 | 114 | 115 | .. code:: sh 116 | 117 | ./scripts/run_archiso.sh -i path/to/an/arch.iso 118 | 119 | Installation 120 | ============ 121 | 122 | To install archiso system-wide use the included ``Makefile``: 123 | 124 | .. code:: sh 125 | 126 | make install 127 | 128 | Optional features 129 | 130 | The iso image contains a GRUB environment block holding the iso name and version. This allows to 131 | boot the iso image from GRUB with a version specific cow directory to mitigate overlay clashes. 132 | 133 | .. code:: sh 134 | 135 | loopback loop archlinux.iso 136 | load_env -f (loop)/boot/grub/grubenv 137 | linux (loop)/arch/boot/x86_64/vmlinuz-linux ... \ 138 | cow_directory=${NAME}/${VERSION} ... 139 | initrd (loop)/arch/boot/x86_64/initramfs-linux-lts.img 140 | 141 | Contribute 142 | ========== 143 | 144 | Development of archiso takes place on Arch Linux' Gitlab: https://gitlab.archlinux.org/archlinux/archiso. 145 | 146 | Please read our distribution-wide `Code of Conduct `_ before 147 | contributing, to understand what actions will and will not be tolerated. 148 | 149 | Read our `contributing guide `_ to learn more about how to provide fixes or improvements for the code 150 | base. 151 | 152 | Discussion around archiso takes place on the `arch-releng mailing list 153 | `_ and in `#archlinux-releng 154 | `_ on `Libera Chat `_. 155 | 156 | All past and present authors of archiso are listed in `AUTHORS `_. 157 | 158 | Releases 159 | ======== 160 | 161 | `Releases of archiso `_ are created by their current maintainers 162 | 163 | - `David Runge `_ (``991F6E3F0765CF6295888586139B09DA5BF0D338``) 164 | - `nl6720 `_ (``BB8E6F1B81CF0BB301D74D1CBF425A01E68B38EF``) 165 | 166 | Tags are signed using respective PGP keys. 167 | 168 | To verify a tag, first import the relevant PGP key(s): 169 | 170 | .. code:: sh 171 | 172 | gpg --auto-key-locate wkd --search-keys dvzrv@archlinux.org 173 | 174 | or 175 | 176 | .. code:: sh 177 | 178 | gpg --auto-key-locate keyserver --recv-keys BB8E6F1B81CF0BB301D74D1CBF425A01E68B38EF 179 | 180 | Afterwards a tag can be verified from a clone of this repository: 181 | 182 | .. code:: sh 183 | 184 | git verify-tag 185 | 186 | License 187 | ======= 188 | 189 | Archiso is licensed under the terms of the **GPL-3.0-or-later** (see `LICENSE `_). 190 | -------------------------------------------------------------------------------- /configs/baseline/airootfs/etc/locale.conf: -------------------------------------------------------------------------------- 1 | LANG=C.UTF-8 2 | -------------------------------------------------------------------------------- /configs/baseline/airootfs/etc/localtime: -------------------------------------------------------------------------------- 1 | /usr/share/zoneinfo/UTC -------------------------------------------------------------------------------- /configs/baseline/airootfs/etc/mkinitcpio.conf.d/archiso.conf: -------------------------------------------------------------------------------- 1 | HOOKS=(base udev modconf archiso block filesystems) 2 | -------------------------------------------------------------------------------- /configs/baseline/airootfs/etc/mkinitcpio.d/linux.preset: -------------------------------------------------------------------------------- 1 | # mkinitcpio preset file for the 'linux' package on archiso 2 | 3 | PRESETS=('archiso') 4 | 5 | ALL_kver='/boot/vmlinuz-linux' 6 | archiso_config='/etc/mkinitcpio.conf.d/archiso.conf' 7 | 8 | archiso_image="/boot/initramfs-linux.img" 9 | -------------------------------------------------------------------------------- /configs/baseline/airootfs/etc/shadow: -------------------------------------------------------------------------------- 1 | root::14871:::::: 2 | -------------------------------------------------------------------------------- /configs/baseline/airootfs/etc/ssh/sshd_config.d/10-archiso.conf: -------------------------------------------------------------------------------- 1 | # Allow root login using password authentication 2 | PasswordAuthentication yes 3 | PermitRootLogin yes 4 | -------------------------------------------------------------------------------- /configs/baseline/airootfs/etc/systemd/network.conf.d/ipv6-privacy-extensions.conf: -------------------------------------------------------------------------------- 1 | [Network] 2 | IPv6PrivacyExtensions=yes 3 | -------------------------------------------------------------------------------- /configs/baseline/airootfs/etc/systemd/network/20-ethernet.network: -------------------------------------------------------------------------------- 1 | [Match] 2 | # Matching with "Type=ether" causes issues with containers because it also matches virtual Ethernet interfaces (veth*). 3 | # See https://bugs.archlinux.org/task/70892 4 | # Instead match by globbing the network interface name. 5 | Name=en* 6 | Name=eth* 7 | 8 | [Link] 9 | RequiredForOnline=routable 10 | 11 | [Network] 12 | DHCP=yes 13 | MulticastDNS=yes 14 | -------------------------------------------------------------------------------- /configs/baseline/airootfs/etc/systemd/resolved.conf.d/archiso.conf: -------------------------------------------------------------------------------- 1 | # Default systemd-resolved configuration for archiso 2 | 3 | [Resolve] 4 | MulticastDNS=yes 5 | -------------------------------------------------------------------------------- /configs/baseline/airootfs/etc/systemd/system-generators/systemd-gpt-auto-generator: -------------------------------------------------------------------------------- 1 | /dev/null -------------------------------------------------------------------------------- /configs/baseline/airootfs/etc/systemd/system/cloud-init.target.wants/cloud-config.service: -------------------------------------------------------------------------------- 1 | /usr/lib/systemd/system/cloud-config.service -------------------------------------------------------------------------------- /configs/baseline/airootfs/etc/systemd/system/cloud-init.target.wants/cloud-final.service: -------------------------------------------------------------------------------- 1 | /usr/lib/systemd/system/cloud-final.service -------------------------------------------------------------------------------- /configs/baseline/airootfs/etc/systemd/system/cloud-init.target.wants/cloud-init-local.service: -------------------------------------------------------------------------------- 1 | /usr/lib/systemd/system/cloud-init-local.service -------------------------------------------------------------------------------- /configs/baseline/airootfs/etc/systemd/system/cloud-init.target.wants/cloud-init-main.service: -------------------------------------------------------------------------------- 1 | /usr/lib/systemd/system/cloud-init-main.service -------------------------------------------------------------------------------- /configs/baseline/airootfs/etc/systemd/system/cloud-init.target.wants/cloud-init-network.service: -------------------------------------------------------------------------------- 1 | /usr/lib/systemd/system/cloud-init-network.service -------------------------------------------------------------------------------- /configs/baseline/airootfs/etc/systemd/system/multi-user.target.wants/hv_fcopy_daemon.service: -------------------------------------------------------------------------------- 1 | /usr/lib/systemd/system/hv_fcopy_daemon.service -------------------------------------------------------------------------------- /configs/baseline/airootfs/etc/systemd/system/multi-user.target.wants/hv_kvp_daemon.service: -------------------------------------------------------------------------------- 1 | /usr/lib/systemd/system/hv_kvp_daemon.service -------------------------------------------------------------------------------- /configs/baseline/airootfs/etc/systemd/system/multi-user.target.wants/hv_vss_daemon.service: -------------------------------------------------------------------------------- 1 | /usr/lib/systemd/system/hv_vss_daemon.service -------------------------------------------------------------------------------- /configs/baseline/airootfs/etc/systemd/system/multi-user.target.wants/sshd.service: -------------------------------------------------------------------------------- 1 | /usr/lib/systemd/system/sshd.service -------------------------------------------------------------------------------- /configs/baseline/airootfs/etc/systemd/system/multi-user.target.wants/systemd-networkd.service: -------------------------------------------------------------------------------- 1 | /usr/lib/systemd/system/systemd-networkd.service -------------------------------------------------------------------------------- /configs/baseline/airootfs/etc/systemd/system/multi-user.target.wants/systemd-resolved.service: -------------------------------------------------------------------------------- 1 | /usr/lib/systemd/system/systemd-resolved.service -------------------------------------------------------------------------------- /configs/baseline/airootfs/etc/systemd/system/multi-user.target.wants/vboxservice.service: -------------------------------------------------------------------------------- 1 | /usr/lib/systemd/system/vboxservice.service -------------------------------------------------------------------------------- /configs/baseline/airootfs/etc/systemd/system/multi-user.target.wants/vmtoolsd.service: -------------------------------------------------------------------------------- 1 | /usr/lib/systemd/system/vmtoolsd.service -------------------------------------------------------------------------------- /configs/baseline/airootfs/etc/systemd/system/multi-user.target.wants/vmware-vmblock-fuse.service: -------------------------------------------------------------------------------- 1 | /usr/lib/systemd/system/vmware-vmblock-fuse.service -------------------------------------------------------------------------------- /configs/baseline/airootfs/etc/systemd/system/network-online.target.wants/systemd-networkd-wait-online.service: -------------------------------------------------------------------------------- 1 | /usr/lib/systemd/system/systemd-networkd-wait-online.service -------------------------------------------------------------------------------- /configs/baseline/airootfs/etc/systemd/system/sockets.target.wants/systemd-networkd.socket: -------------------------------------------------------------------------------- 1 | /usr/lib/systemd/system/systemd-networkd.socket -------------------------------------------------------------------------------- /configs/baseline/airootfs/etc/systemd/system/systemd-networkd-wait-online.service.d/wait-for-only-one-interface.conf: -------------------------------------------------------------------------------- 1 | # Allow systemd-networkd-wait-online to succeed with one interface, otherwise, if multiple network interfaces exist, 2 | # network-online.target gets needlessly delayed. 3 | # See https://wiki.archlinux.org/title/systemd-networkd#systemd-networkd-wait-online 4 | [Service] 5 | ExecStart= 6 | ExecStart=/usr/lib/systemd/systemd-networkd-wait-online --any 7 | -------------------------------------------------------------------------------- /configs/baseline/bootstrap_packages.x86_64: -------------------------------------------------------------------------------- 1 | arch-install-scripts 2 | base 3 | -------------------------------------------------------------------------------- /configs/baseline/efiboot/loader/entries/01-archiso-x86_64-linux.conf: -------------------------------------------------------------------------------- 1 | title Arch Linux (x86_64, UEFI) 2 | linux /%INSTALL_DIR%/boot/x86_64/vmlinuz-linux 3 | initrd /%INSTALL_DIR%/boot/x86_64/initramfs-linux.img 4 | options archisobasedir=%INSTALL_DIR% archisosearchuuid=%ARCHISO_UUID% 5 | -------------------------------------------------------------------------------- /configs/baseline/efiboot/loader/loader.conf: -------------------------------------------------------------------------------- 1 | timeout 3 2 | default 01-archiso-x86_64-linux.conf 3 | -------------------------------------------------------------------------------- /configs/baseline/grub/grub.cfg: -------------------------------------------------------------------------------- 1 | # Load partition table and file system modules 2 | insmod part_gpt 3 | insmod part_msdos 4 | insmod fat 5 | insmod iso9660 6 | insmod ntfs 7 | insmod ntfscomp 8 | insmod exfat 9 | insmod udf 10 | 11 | # Use graphics-mode output 12 | if loadfont "${prefix}/fonts/unicode.pf2" ; then 13 | insmod all_video 14 | set gfxmode="auto" 15 | terminal_input console 16 | terminal_output console 17 | fi 18 | 19 | # Enable serial console 20 | insmod serial 21 | insmod usbserial_common 22 | insmod usbserial_ftdi 23 | insmod usbserial_pl2303 24 | insmod usbserial_usbdebug 25 | if serial --unit=0 --speed=115200; then 26 | terminal_input --append serial 27 | terminal_output --append serial 28 | fi 29 | 30 | # Get a human readable platform identifier 31 | if [ "${grub_platform}" == 'efi' ]; then 32 | archiso_platform='UEFI' 33 | if [ "${grub_cpu}" == 'x86_64' ]; then 34 | archiso_platform="x64 ${archiso_platform}" 35 | elif [ "${grub_cpu}" == 'i386' ]; then 36 | archiso_platform="IA32 ${archiso_platform}" 37 | else 38 | archiso_platform="${grub_cpu} ${archiso_platform}" 39 | fi 40 | elif [ "${grub_platform}" == 'pc' ]; then 41 | archiso_platform='BIOS' 42 | else 43 | archiso_platform="${grub_cpu} ${grub_platform}" 44 | fi 45 | 46 | # Set default menu entry 47 | default=archlinux 48 | timeout=15 49 | timeout_style=menu 50 | 51 | 52 | # Menu entries 53 | 54 | menuentry "Arch Linux (%ARCH%, ${archiso_platform})" --class arch --class gnu-linux --class gnu --class os --id 'archlinux' { 55 | set gfxpayload=keep 56 | linux /%INSTALL_DIR%/boot/%ARCH%/vmlinuz-linux archisobasedir=%INSTALL_DIR% archisosearchuuid=%ARCHISO_UUID% 57 | initrd /%INSTALL_DIR%/boot/%ARCH%/initramfs-linux.img 58 | } 59 | 60 | if [ "${grub_platform}" == 'efi' -a "${grub_cpu}" == 'x86_64' -a -f '/boot/memtest86+/memtest.efi' ]; then 61 | menuentry 'Run Memtest86+ (RAM test)' --class memtest86 --class gnu --class tool { 62 | set gfxpayload=800x600,1024x768 63 | linux /boot/memtest86+/memtest.efi 64 | } 65 | fi 66 | if [ "${grub_platform}" == 'pc' -a -f '/boot/memtest86+/memtest' ]; then 67 | menuentry 'Run Memtest86+ (RAM test)' --class memtest86 --class gnu --class tool { 68 | set gfxpayload=800x600,1024x768 69 | linux /boot/memtest86+/memtest 70 | } 71 | fi 72 | if [ "${grub_platform}" == 'efi' ]; then 73 | if [ "${grub_cpu}" == 'x86_64' -a -f '/shellx64.efi' ]; then 74 | menuentry 'UEFI Shell' { 75 | chainloader /shellx64.efi 76 | } 77 | elif [ "${grub_cpu}" == "i386" -a -f '/shellia32.efi' ]; then 78 | menuentry 'UEFI Shell' { 79 | chainloader /shellia32.efi 80 | } 81 | fi 82 | 83 | menuentry 'UEFI Firmware Settings' --id 'uefi-firmware' { 84 | fwsetup 85 | } 86 | fi 87 | 88 | menuentry 'System shutdown' --class shutdown --class poweroff { 89 | echo 'System shutting down...' 90 | halt 91 | } 92 | 93 | menuentry 'System restart' --class reboot --class restart { 94 | echo 'System rebooting...' 95 | reboot 96 | } 97 | -------------------------------------------------------------------------------- /configs/baseline/grub/loopback.cfg: -------------------------------------------------------------------------------- 1 | # https://www.supergrubdisk.org/wiki/Loopback.cfg 2 | 3 | # Search for the ISO volume 4 | search --no-floppy --set=archiso_img_dev --file "${iso_path}" 5 | probe --set archiso_img_dev_uuid --fs-uuid "${archiso_img_dev}" 6 | 7 | # Get a human readable platform identifier 8 | if [ "${grub_platform}" == 'efi' ]; then 9 | archiso_platform='UEFI' 10 | if [ "${grub_cpu}" == 'x86_64' ]; then 11 | archiso_platform="x64 ${archiso_platform}" 12 | elif [ "${grub_cpu}" == 'i386' ]; then 13 | archiso_platform="IA32 ${archiso_platform}" 14 | else 15 | archiso_platform="${grub_cpu} ${archiso_platform}" 16 | fi 17 | elif [ "${grub_platform}" == 'pc' ]; then 18 | archiso_platform='BIOS' 19 | else 20 | archiso_platform="${grub_cpu} ${grub_platform}" 21 | fi 22 | 23 | # Set default menu entry 24 | default=archlinux 25 | timeout=15 26 | timeout_style=menu 27 | 28 | 29 | # Menu entries 30 | 31 | menuentry "Arch Linux (%ARCH%, ${archiso_platform})" --class arch --class gnu-linux --class gnu --class os --id 'archlinux' { 32 | set gfxpayload=keep 33 | linux /%INSTALL_DIR%/boot/%ARCH%/vmlinuz-linux archisobasedir=%INSTALL_DIR% img_dev=UUID=${archiso_img_dev_uuid} img_loop="${iso_path}" 34 | initrd /%INSTALL_DIR%/boot/%ARCH%/initramfs-linux.img 35 | } 36 | 37 | if [ "${grub_platform}" == 'efi' -a "${grub_cpu}" == 'x86_64' -a -f '/boot/memtest86+/memtest.efi' ]; then 38 | menuentry 'Run Memtest86+ (RAM test)' --class memtest86 --class gnu --class tool { 39 | set gfxpayload=800x600,1024x768 40 | linux /boot/memtest86+/memtest.efi 41 | } 42 | fi 43 | if [ "${grub_platform}" == 'pc' -a -f '/boot/memtest86+/memtest' ]; then 44 | menuentry 'Run Memtest86+ (RAM test)' --class memtest86 --class gnu --class tool { 45 | set gfxpayload=800x600,1024x768 46 | linux /boot/memtest86+/memtest 47 | } 48 | fi 49 | if [ "${grub_platform}" == 'efi' ]; then 50 | if [ "${grub_cpu}" == 'x86_64' -a -f '/shellx64.efi' ]; then 51 | menuentry 'UEFI Shell' { 52 | chainloader /shellx64.efi 53 | } 54 | elif [ "${grub_cpu}" == "i386" -a -f '/shellia32.efi' ]; then 55 | menuentry 'UEFI Shell' { 56 | chainloader /shellia32.efi 57 | } 58 | fi 59 | 60 | menuentry 'UEFI Firmware Settings' --id 'uefi-firmware' { 61 | fwsetup 62 | } 63 | fi 64 | 65 | menuentry 'System shutdown' --class shutdown --class poweroff { 66 | echo 'System shutting down...' 67 | halt 68 | } 69 | 70 | menuentry 'System restart' --class reboot --class restart { 71 | echo 'System rebooting...' 72 | reboot 73 | } 74 | -------------------------------------------------------------------------------- /configs/baseline/packages.x86_64: -------------------------------------------------------------------------------- 1 | base 2 | cloud-init 3 | hyperv 4 | linux 5 | mkinitcpio 6 | mkinitcpio-archiso 7 | open-vm-tools 8 | openssh 9 | pv 10 | qemu-guest-agent 11 | syslinux 12 | virtualbox-guest-utils-nox 13 | -------------------------------------------------------------------------------- /configs/baseline/pacman.conf: -------------------------------------------------------------------------------- 1 | # 2 | # /etc/pacman.conf 3 | # 4 | # See the pacman.conf(5) manpage for option and repository directives 5 | 6 | # 7 | # GENERAL OPTIONS 8 | # 9 | [options] 10 | # The following paths are commented out with their default values listed. 11 | # If you wish to use different paths, uncomment and update the paths. 12 | #RootDir = / 13 | #DBPath = /var/lib/pacman/ 14 | #CacheDir = /var/cache/pacman/pkg/ 15 | #LogFile = /var/log/pacman.log 16 | #GPGDir = /etc/pacman.d/gnupg/ 17 | #HookDir = /etc/pacman.d/hooks/ 18 | HoldPkg = pacman glibc 19 | #XferCommand = /usr/bin/curl -L -C - -f -o %o %u 20 | #XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u 21 | #CleanMethod = KeepInstalled 22 | Architecture = auto 23 | 24 | # Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup 25 | #IgnorePkg = 26 | #IgnoreGroup = 27 | 28 | #NoUpgrade = 29 | #NoExtract = 30 | 31 | # Misc options 32 | #UseSyslog 33 | #Color 34 | #NoProgressBar 35 | # We cannot check disk space from within a chroot environment 36 | #CheckSpace 37 | #VerbosePkgLists 38 | ParallelDownloads = 5 39 | #DownloadUser = alpm 40 | #DisableSandbox 41 | 42 | # By default, pacman accepts packages signed by keys that its local keyring 43 | # trusts (see pacman-key and its man page), as well as unsigned packages. 44 | SigLevel = Required DatabaseOptional 45 | LocalFileSigLevel = Optional 46 | #RemoteFileSigLevel = Required 47 | 48 | # NOTE: You must run `pacman-key --init` before first using pacman; the local 49 | # keyring can then be populated with the keys of all official Arch Linux 50 | # packagers with `pacman-key --populate archlinux`. 51 | 52 | # 53 | # REPOSITORIES 54 | # - can be defined here or included from another file 55 | # - pacman will search repositories in the order defined here 56 | # - local/custom mirrors can be added here or in separate files 57 | # - repositories listed first will take precedence when packages 58 | # have identical names, regardless of version number 59 | # - URLs will have $repo replaced by the name of the current repo 60 | # - URLs will have $arch replaced by the name of the architecture 61 | # 62 | # Repository entries are of the format: 63 | # [repo-name] 64 | # Server = ServerName 65 | # Include = IncludePath 66 | # 67 | # The header [repo-name] is crucial - it must be present and 68 | # uncommented to enable the repo. 69 | # 70 | 71 | # The testing repositories are disabled by default. To enable, uncomment the 72 | # repo name header and Include lines. You can add preferred servers immediately 73 | # after the header, and they will be used before the default mirrors. 74 | 75 | #[core-testing] 76 | #Include = /etc/pacman.d/mirrorlist 77 | 78 | [core] 79 | Include = /etc/pacman.d/mirrorlist 80 | 81 | #[extra-testing] 82 | #Include = /etc/pacman.d/mirrorlist 83 | 84 | [extra] 85 | Include = /etc/pacman.d/mirrorlist 86 | 87 | # If you want to run 32 bit applications on your x86_64 system, 88 | # enable the multilib repositories as required here. 89 | 90 | #[multilib-testing] 91 | #Include = /etc/pacman.d/mirrorlist 92 | 93 | #[multilib] 94 | #Include = /etc/pacman.d/mirrorlist 95 | 96 | # An example of a custom package repository. See the pacman manpage for 97 | # tips on creating your own repositories. 98 | #[custom] 99 | #SigLevel = Optional TrustAll 100 | #Server = file:///home/custompkgs 101 | -------------------------------------------------------------------------------- /configs/baseline/profiledef.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # shellcheck disable=SC2034 3 | 4 | iso_name="archlinux-baseline" 5 | iso_label="ARCH_$(date --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" +%Y%m)" 6 | iso_publisher="Arch Linux " 7 | iso_application="Arch Linux baseline" 8 | iso_version="$(date --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" +%Y.%m.%d)" 9 | install_dir="arch" 10 | buildmodes=('iso') 11 | bootmodes=('bios.syslinux.mbr' 'bios.syslinux.eltorito' 12 | 'uefi-ia32.grub.esp' 'uefi-x64.grub.esp' 13 | 'uefi-ia32.grub.eltorito' 'uefi-x64.grub.eltorito') 14 | arch="x86_64" 15 | pacman_conf="pacman.conf" 16 | airootfs_image_type="erofs" 17 | airootfs_image_tool_options=('-zlzma,109' -E 'ztailpacking') 18 | bootstrap_tarball_compression=(zstd -c -T0 --long -19) 19 | file_permissions=( 20 | ["/etc/shadow"]="0:0:400" 21 | ) 22 | -------------------------------------------------------------------------------- /configs/baseline/syslinux/syslinux-linux.cfg: -------------------------------------------------------------------------------- 1 | LABEL arch 2 | MENU LABEL Arch Linux (x86_64, BIOS) 3 | LINUX /%INSTALL_DIR%/boot/%ARCH%/vmlinuz-linux 4 | INITRD /%INSTALL_DIR%/boot/%ARCH%/initramfs-linux.img 5 | APPEND archisobasedir=%INSTALL_DIR% archisosearchuuid=%ARCHISO_UUID% 6 | -------------------------------------------------------------------------------- /configs/baseline/syslinux/syslinux.cfg: -------------------------------------------------------------------------------- 1 | SERIAL 0 115200 2 | UI menu.c32 3 | MENU TITLE Arch Linux 4 | MENU CLEAR 5 | 6 | DEFAULT arch 7 | TIMEOUT 30 8 | 9 | INCLUDE syslinux-linux.cfg 10 | -------------------------------------------------------------------------------- /configs/releng/airootfs/etc/hostname: -------------------------------------------------------------------------------- 1 | archiso 2 | -------------------------------------------------------------------------------- /configs/releng/airootfs/etc/locale.conf: -------------------------------------------------------------------------------- 1 | LANG=C.UTF-8 2 | -------------------------------------------------------------------------------- /configs/releng/airootfs/etc/localtime: -------------------------------------------------------------------------------- 1 | /usr/share/zoneinfo/UTC -------------------------------------------------------------------------------- /configs/releng/airootfs/etc/mkinitcpio.conf.d/archiso.conf: -------------------------------------------------------------------------------- 1 | HOOKS=(base udev microcode modconf kms memdisk archiso archiso_loop_mnt archiso_pxe_common archiso_pxe_nbd archiso_pxe_http archiso_pxe_nfs block filesystems keyboard) 2 | COMPRESSION="xz" 3 | COMPRESSION_OPTIONS=(-9e) 4 | -------------------------------------------------------------------------------- /configs/releng/airootfs/etc/mkinitcpio.d/linux.preset: -------------------------------------------------------------------------------- 1 | # mkinitcpio preset file for the 'linux' package on archiso 2 | 3 | PRESETS=('archiso') 4 | 5 | ALL_kver='/boot/vmlinuz-linux' 6 | archiso_config='/etc/mkinitcpio.conf.d/archiso.conf' 7 | 8 | archiso_image="/boot/initramfs-linux.img" 9 | -------------------------------------------------------------------------------- /configs/releng/airootfs/etc/modprobe.d/broadcom-wl.conf: -------------------------------------------------------------------------------- 1 | # The broadcom-wl package requires some modules to be disabled in order to use 2 | # wl. Since the ISO image needs to cover many hardware cases, this file 3 | # overrides the default blacklist in /usr/lib/modprobe.d/ 4 | # 5 | # If you need to use wl, you may need to delete this file, then `rmmod` any 6 | # already-loaded modules that are now blacklisted before proceeding to modprobe 7 | # wl itself. 8 | -------------------------------------------------------------------------------- /configs/releng/airootfs/etc/motd: -------------------------------------------------------------------------------- 1 | To install Arch Linux follow the installation guide: 2 | https://wiki.archlinux.org/title/Installation_guide 3 | 4 | For Wi-Fi, authenticate to the wireless network using the iwctl utility. 5 | For mobile broadband (WWAN) modems, connect with the mmcli utility. 6 | Ethernet, WLAN and WWAN interfaces using DHCP should work automatically. 7 | 8 | After connecting to the internet, the installation guide can be accessed 9 | via the convenience script Installation_guide. 10 | 11 |                                            12 | -------------------------------------------------------------------------------- /configs/releng/airootfs/etc/pacman.d/hooks/uncomment-mirrors.hook: -------------------------------------------------------------------------------- 1 | # remove from airootfs! 2 | [Trigger] 3 | Operation = Install 4 | Operation = Upgrade 5 | Type = Package 6 | Target = pacman-mirrorlist 7 | 8 | [Action] 9 | Description = Uncommenting all mirrors in /etc/pacman.d/mirrorlist... 10 | When = PostTransaction 11 | Depends = pacman-mirrorlist 12 | Depends = sed 13 | Exec = /usr/bin/sed -i "s/#Server/Server/g" /etc/pacman.d/mirrorlist 14 | -------------------------------------------------------------------------------- /configs/releng/airootfs/etc/pacman.d/hooks/zzzz99-remove-custom-hooks-from-airootfs.hook: -------------------------------------------------------------------------------- 1 | # remove from airootfs! 2 | # As a workaround for https://bugs.archlinux.org/task/49347 , remove pacman hooks specific to the ISO build process. 3 | # If not, they would be used when pacstrap is run in the live environment. 4 | 5 | [Trigger] 6 | Operation = Install 7 | Operation = Upgrade 8 | Operation = Remove 9 | Type = Package 10 | Target = * 11 | 12 | [Action] 13 | Description = Work around FS#49347 by removing custom pacman hooks that are only required during ISO build... 14 | When = PostTransaction 15 | Depends = sh 16 | Depends = coreutils 17 | Depends = grep 18 | Exec = /bin/sh -c "rm -- $(grep -Frl 'remove from airootfs' /etc/pacman.d/hooks/)" 19 | -------------------------------------------------------------------------------- /configs/releng/airootfs/etc/passwd: -------------------------------------------------------------------------------- 1 | root:x:0:0:root:/root:/usr/bin/zsh 2 | -------------------------------------------------------------------------------- /configs/releng/airootfs/etc/resolv.conf: -------------------------------------------------------------------------------- 1 | /run/systemd/resolve/stub-resolv.conf -------------------------------------------------------------------------------- /configs/releng/airootfs/etc/shadow: -------------------------------------------------------------------------------- 1 | root::14871:::::: 2 | -------------------------------------------------------------------------------- /configs/releng/airootfs/etc/ssh/sshd_config.d/10-archiso.conf: -------------------------------------------------------------------------------- 1 | # Allow root login using password authentication 2 | PasswordAuthentication yes 3 | PermitRootLogin yes 4 | -------------------------------------------------------------------------------- /configs/releng/airootfs/etc/systemd/journald.conf.d/volatile-storage.conf: -------------------------------------------------------------------------------- 1 | [Journal] 2 | Storage=volatile 3 | -------------------------------------------------------------------------------- /configs/releng/airootfs/etc/systemd/logind.conf.d/do-not-suspend.conf: -------------------------------------------------------------------------------- 1 | [Login] 2 | HandleSuspendKey=ignore 3 | HandleHibernateKey=ignore 4 | HandleLidSwitch=ignore 5 | -------------------------------------------------------------------------------- /configs/releng/airootfs/etc/systemd/network.conf.d/ipv6-privacy-extensions.conf: -------------------------------------------------------------------------------- 1 | [Network] 2 | IPv6PrivacyExtensions=yes 3 | -------------------------------------------------------------------------------- /configs/releng/airootfs/etc/systemd/network/20-ethernet.network: -------------------------------------------------------------------------------- 1 | [Match] 2 | # Matching with "Type=ether" causes issues with containers because it also matches virtual Ethernet interfaces (veth*). 3 | # See https://bugs.archlinux.org/task/70892 4 | # Instead match by globbing the network interface name. 5 | Name=en* 6 | Name=eth* 7 | 8 | [Link] 9 | RequiredForOnline=routable 10 | 11 | [Network] 12 | DHCP=yes 13 | MulticastDNS=yes 14 | 15 | # systemd-networkd does not set per-interface-type default route metrics 16 | # https://github.com/systemd/systemd/issues/17698 17 | # Explicitly set route metric, so that Ethernet is preferred over Wi-Fi and Wi-Fi is preferred over mobile broadband. 18 | # Use values from NetworkManager. From nm_device_get_route_metric_default in 19 | # https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/blob/main/src/core/devices/nm-device.c 20 | [DHCPv4] 21 | RouteMetric=100 22 | 23 | [IPv6AcceptRA] 24 | RouteMetric=100 25 | -------------------------------------------------------------------------------- /configs/releng/airootfs/etc/systemd/network/20-wlan.network: -------------------------------------------------------------------------------- 1 | [Match] 2 | Name=wl* 3 | 4 | [Link] 5 | RequiredForOnline=routable 6 | 7 | [Network] 8 | DHCP=yes 9 | MulticastDNS=yes 10 | 11 | # systemd-networkd does not set per-interface-type default route metrics 12 | # https://github.com/systemd/systemd/issues/17698 13 | # Explicitly set route metric, so that Ethernet is preferred over Wi-Fi and Wi-Fi is preferred over mobile broadband. 14 | # Use values from NetworkManager. From nm_device_get_route_metric_default in 15 | # https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/blob/main/src/core/devices/nm-device.c 16 | [DHCPv4] 17 | RouteMetric=600 18 | 19 | [IPv6AcceptRA] 20 | RouteMetric=600 21 | -------------------------------------------------------------------------------- /configs/releng/airootfs/etc/systemd/network/20-wwan.network: -------------------------------------------------------------------------------- 1 | [Match] 2 | Name=ww* 3 | 4 | [Link] 5 | RequiredForOnline=routable 6 | 7 | [Network] 8 | DHCP=yes 9 | 10 | # systemd-networkd does not set per-interface-type default route metrics 11 | # https://github.com/systemd/systemd/issues/17698 12 | # Explicitly set route metric, so that Ethernet is preferred over Wi-Fi and Wi-Fi is preferred over mobile broadband. 13 | # Use values from NetworkManager. From nm_device_get_route_metric_default in 14 | # https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/blob/main/src/core/devices/nm-device.c 15 | [DHCPv4] 16 | RouteMetric=700 17 | 18 | [IPv6AcceptRA] 19 | RouteMetric=700 20 | -------------------------------------------------------------------------------- /configs/releng/airootfs/etc/systemd/resolved.conf.d/archiso.conf: -------------------------------------------------------------------------------- 1 | # Default systemd-resolved configuration for archiso 2 | 3 | [Resolve] 4 | MulticastDNS=yes 5 | -------------------------------------------------------------------------------- /configs/releng/airootfs/etc/systemd/system-generators/systemd-gpt-auto-generator: -------------------------------------------------------------------------------- 1 | /dev/null -------------------------------------------------------------------------------- /configs/releng/airootfs/etc/systemd/system/choose-mirror.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Choose mirror from the kernel command line 3 | ConditionKernelCommandLine=mirror 4 | 5 | [Service] 6 | Type=oneshot 7 | ExecStart=/usr/local/bin/choose-mirror 8 | 9 | [Install] 10 | WantedBy=multi-user.target 11 | -------------------------------------------------------------------------------- /configs/releng/airootfs/etc/systemd/system/cloud-init.target.wants/cloud-config.service: -------------------------------------------------------------------------------- 1 | /usr/lib/systemd/system/cloud-config.service -------------------------------------------------------------------------------- /configs/releng/airootfs/etc/systemd/system/cloud-init.target.wants/cloud-final.service: -------------------------------------------------------------------------------- 1 | /usr/lib/systemd/system/cloud-final.service -------------------------------------------------------------------------------- /configs/releng/airootfs/etc/systemd/system/cloud-init.target.wants/cloud-init-local.service: -------------------------------------------------------------------------------- 1 | /usr/lib/systemd/system/cloud-init-local.service -------------------------------------------------------------------------------- /configs/releng/airootfs/etc/systemd/system/cloud-init.target.wants/cloud-init-main.service: -------------------------------------------------------------------------------- 1 | /usr/lib/systemd/system/cloud-init-main.service -------------------------------------------------------------------------------- /configs/releng/airootfs/etc/systemd/system/cloud-init.target.wants/cloud-init-network.service: -------------------------------------------------------------------------------- 1 | /usr/lib/systemd/system/cloud-init-network.service -------------------------------------------------------------------------------- /configs/releng/airootfs/etc/systemd/system/dbus-org.freedesktop.ModemManager1.service: -------------------------------------------------------------------------------- 1 | /usr/lib/systemd/system/ModemManager.service -------------------------------------------------------------------------------- /configs/releng/airootfs/etc/systemd/system/dbus-org.freedesktop.network1.service: -------------------------------------------------------------------------------- 1 | /usr/lib/systemd/system/systemd-networkd.service -------------------------------------------------------------------------------- /configs/releng/airootfs/etc/systemd/system/dbus-org.freedesktop.resolve1.service: -------------------------------------------------------------------------------- 1 | /usr/lib/systemd/system/systemd-resolved.service -------------------------------------------------------------------------------- /configs/releng/airootfs/etc/systemd/system/dbus-org.freedesktop.timesync1.service: -------------------------------------------------------------------------------- 1 | /usr/lib/systemd/system/systemd-timesyncd.service -------------------------------------------------------------------------------- /configs/releng/airootfs/etc/systemd/system/etc-pacman.d-gnupg.mount: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Temporary /etc/pacman.d/gnupg directory 3 | 4 | [Mount] 5 | What=tmpfs 6 | Where=/etc/pacman.d/gnupg 7 | Type=tmpfs 8 | Options=mode=0755,noswap 9 | -------------------------------------------------------------------------------- /configs/releng/airootfs/etc/systemd/system/getty@tty1.service.d/autologin.conf: -------------------------------------------------------------------------------- 1 | [Service] 2 | ExecStart= 3 | ExecStart=-/sbin/agetty -o '-p -f -- \\u' --noclear --autologin root - $TERM 4 | -------------------------------------------------------------------------------- /configs/releng/airootfs/etc/systemd/system/livecd-alsa-unmuter.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Unmute All Sound Card Controls For Use With The Live Arch Environment 3 | # This needs to run after the audio device becomes available. 4 | Wants=systemd-udev-settle.service 5 | After=systemd-udev-settle.service sound.target 6 | ConditionKernelCommandLine=accessibility=on 7 | 8 | [Service] 9 | Type=oneshot 10 | ExecStart=/usr/local/bin/livecd-sound -u 11 | 12 | [Install] 13 | WantedBy=sound.target 14 | -------------------------------------------------------------------------------- /configs/releng/airootfs/etc/systemd/system/livecd-talk.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Screen reader service 3 | After=livecd-alsa-unmuter.service 4 | Before=getty@tty1.service 5 | ConditionKernelCommandLine=accessibility=on 6 | 7 | [Service] 8 | Type=oneshot 9 | TTYPath=/dev/tty13 10 | ExecStartPre=/usr/bin/chvt 13 11 | ExecStart=/usr/local/bin/livecd-sound -p 12 | ExecStartPost=/usr/bin/chvt 1 13 | ExecStartPost=systemctl start espeakup.service 14 | StandardInput=tty 15 | TTYVHangup=yes 16 | TTYVTDisallocate=yes 17 | RemainAfterExit=true 18 | 19 | [Install] 20 | WantedBy=multi-user.target 21 | -------------------------------------------------------------------------------- /configs/releng/airootfs/etc/systemd/system/multi-user.target.wants/ModemManager.service: -------------------------------------------------------------------------------- 1 | /usr/lib/systemd/system/ModemManager.service -------------------------------------------------------------------------------- /configs/releng/airootfs/etc/systemd/system/multi-user.target.wants/choose-mirror.service: -------------------------------------------------------------------------------- 1 | ../choose-mirror.service -------------------------------------------------------------------------------- /configs/releng/airootfs/etc/systemd/system/multi-user.target.wants/hv_fcopy_daemon.service: -------------------------------------------------------------------------------- 1 | /usr/lib/systemd/system/hv_fcopy_daemon.service -------------------------------------------------------------------------------- /configs/releng/airootfs/etc/systemd/system/multi-user.target.wants/hv_kvp_daemon.service: -------------------------------------------------------------------------------- 1 | /usr/lib/systemd/system/hv_kvp_daemon.service -------------------------------------------------------------------------------- /configs/releng/airootfs/etc/systemd/system/multi-user.target.wants/hv_vss_daemon.service: -------------------------------------------------------------------------------- 1 | /usr/lib/systemd/system/hv_vss_daemon.service -------------------------------------------------------------------------------- /configs/releng/airootfs/etc/systemd/system/multi-user.target.wants/iwd.service: -------------------------------------------------------------------------------- 1 | /usr/lib/systemd/system/iwd.service -------------------------------------------------------------------------------- /configs/releng/airootfs/etc/systemd/system/multi-user.target.wants/livecd-talk.service: -------------------------------------------------------------------------------- 1 | /etc/systemd/system/livecd-talk.service -------------------------------------------------------------------------------- /configs/releng/airootfs/etc/systemd/system/multi-user.target.wants/pacman-init.service: -------------------------------------------------------------------------------- 1 | ../pacman-init.service -------------------------------------------------------------------------------- /configs/releng/airootfs/etc/systemd/system/multi-user.target.wants/reflector.service: -------------------------------------------------------------------------------- 1 | /usr/lib/systemd/system/reflector.service -------------------------------------------------------------------------------- /configs/releng/airootfs/etc/systemd/system/multi-user.target.wants/sshd.service: -------------------------------------------------------------------------------- 1 | /usr/lib/systemd/system/sshd.service -------------------------------------------------------------------------------- /configs/releng/airootfs/etc/systemd/system/multi-user.target.wants/systemd-networkd.service: -------------------------------------------------------------------------------- 1 | /usr/lib/systemd/system/systemd-networkd.service -------------------------------------------------------------------------------- /configs/releng/airootfs/etc/systemd/system/multi-user.target.wants/systemd-resolved.service: -------------------------------------------------------------------------------- 1 | /usr/lib/systemd/system/systemd-resolved.service -------------------------------------------------------------------------------- /configs/releng/airootfs/etc/systemd/system/multi-user.target.wants/vboxservice.service: -------------------------------------------------------------------------------- 1 | /usr/lib/systemd/system/vboxservice.service -------------------------------------------------------------------------------- /configs/releng/airootfs/etc/systemd/system/multi-user.target.wants/vmtoolsd.service: -------------------------------------------------------------------------------- 1 | /usr/lib/systemd/system/vmtoolsd.service -------------------------------------------------------------------------------- /configs/releng/airootfs/etc/systemd/system/multi-user.target.wants/vmware-vmblock-fuse.service: -------------------------------------------------------------------------------- 1 | /usr/lib/systemd/system/vmware-vmblock-fuse.service -------------------------------------------------------------------------------- /configs/releng/airootfs/etc/systemd/system/network-online.target.wants/systemd-networkd-wait-online.service: -------------------------------------------------------------------------------- 1 | /usr/lib/systemd/system/systemd-networkd-wait-online.service -------------------------------------------------------------------------------- /configs/releng/airootfs/etc/systemd/system/pacman-init.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Initializes Pacman keyring 3 | Requires=etc-pacman.d-gnupg.mount 4 | After=etc-pacman.d-gnupg.mount time-sync.target 5 | BindsTo=etc-pacman.d-gnupg.mount 6 | Before=archlinux-keyring-wkd-sync.service 7 | 8 | [Service] 9 | Type=oneshot 10 | RemainAfterExit=yes 11 | ExecStart=/usr/bin/pacman-key --init 12 | ExecStart=/usr/bin/pacman-key --populate 13 | 14 | [Install] 15 | WantedBy=multi-user.target 16 | -------------------------------------------------------------------------------- /configs/releng/airootfs/etc/systemd/system/reflector.service.d/archiso.conf: -------------------------------------------------------------------------------- 1 | [Unit] 2 | ConditionKernelCommandLine=!mirror 3 | 4 | [Service] 5 | Restart=on-failure 6 | RestartSec=10 7 | -------------------------------------------------------------------------------- /configs/releng/airootfs/etc/systemd/system/sockets.target.wants/pcscd.socket: -------------------------------------------------------------------------------- 1 | /usr/lib/systemd/system/pcscd.socket -------------------------------------------------------------------------------- /configs/releng/airootfs/etc/systemd/system/sockets.target.wants/systemd-networkd.socket: -------------------------------------------------------------------------------- 1 | /usr/lib/systemd/system/systemd-networkd.socket -------------------------------------------------------------------------------- /configs/releng/airootfs/etc/systemd/system/sound.target.wants/livecd-alsa-unmuter.service: -------------------------------------------------------------------------------- 1 | ../livecd-alsa-unmuter.service -------------------------------------------------------------------------------- /configs/releng/airootfs/etc/systemd/system/sysinit.target.wants/systemd-time-wait-sync.service: -------------------------------------------------------------------------------- 1 | /usr/lib/systemd/system/systemd-time-wait-sync.service -------------------------------------------------------------------------------- /configs/releng/airootfs/etc/systemd/system/sysinit.target.wants/systemd-timesyncd.service: -------------------------------------------------------------------------------- 1 | /usr/lib/systemd/system/systemd-timesyncd.service -------------------------------------------------------------------------------- /configs/releng/airootfs/etc/systemd/system/systemd-networkd-wait-online.service.d/wait-for-only-one-interface.conf: -------------------------------------------------------------------------------- 1 | # Allow systemd-networkd-wait-online to succeed with one interface, otherwise, if multiple network interfaces exist, 2 | # network-online.target gets needlessly delayed. 3 | # See https://wiki.archlinux.org/title/systemd-networkd#systemd-networkd-wait-online 4 | [Service] 5 | ExecStart= 6 | ExecStart=/usr/lib/systemd/systemd-networkd-wait-online --any 7 | -------------------------------------------------------------------------------- /configs/releng/airootfs/etc/xdg/reflector/reflector.conf: -------------------------------------------------------------------------------- 1 | # Reflector configuration file for the systemd service. 2 | 3 | --save /etc/pacman.d/mirrorlist 4 | --ipv4 5 | --ipv6 6 | --protocol https 7 | --latest 20 8 | --sort rate 9 | -------------------------------------------------------------------------------- /configs/releng/airootfs/root/.automated_script.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | script_cmdline() { 4 | local param 5 | for param in $(/etc/pacman.d/mirrorlist < 33 | # $2 34 | # $3 35 | unmute_and_set_level() { 36 | [[ -n "$3" && -n "$2" && -n "$1" ]] || bugout 37 | systemd-cat -t "livecdsound" printf "Setting: %s on card: %s to %s\n" "$2" "$1" "$3" 38 | systemd-cat -t "livecdsound" amixer -c "$1" set "$2" "$3" unmute 39 | return 0 40 | } 41 | 42 | # $1 43 | # $2 44 | mute_and_zero_level() { 45 | [[ -n "$1" && -n "$2" ]] || bugout 46 | systemd-cat -t "livecdsound" printf "Muting control: %s on card: %s\n" "$2" "$1" 47 | systemd-cat -t "livecdsound" amixer -c "$1" set "$2" "0%" mute 48 | return 0 49 | } 50 | 51 | # $1 52 | # $2 53 | # $3 "on" | "off" 54 | switch_control() { 55 | [[ -n "$3" && -n "$1" ]] || bugout 56 | systemd-cat -t "livecdsound" printf "Switching control: %s on card: %s to %s\n" "$2" "$1" "$3" 57 | systemd-cat -t "livecdsound" amixer -c "$1" set "$2" "$3" 58 | return 0 59 | } 60 | 61 | # $1 62 | sanify_levels_on_card() { 63 | unmute_and_set_level "$1" "Front" "80%" 64 | unmute_and_set_level "$1" "Master" "80%" 65 | unmute_and_set_level "$1" "Master Mono" "80%" 66 | unmute_and_set_level "$1" "Master Digital" "80%" # E.g., cs4237B 67 | unmute_and_set_level "$1" "Playback" "80%" 68 | unmute_and_set_level "$1" "Headphone" "100%" 69 | unmute_and_set_level "$1" "PCM" "80%" 70 | unmute_and_set_level "$1" "PCM,1" "80%" # E.g., ess1969 71 | unmute_and_set_level "$1" "DAC" "80%" # E.g., envy24, cs46xx 72 | unmute_and_set_level "$1" "DAC,0" "80%" # E.g., envy24 73 | unmute_and_set_level "$1" "DAC,1" "80%" # E.g., envy24 74 | unmute_and_set_level "$1" "Synth" "80%" 75 | unmute_and_set_level "$1" "CD" "80%" 76 | unmute_and_set_level "$1" "PC Speaker" "100%" 77 | 78 | mute_and_zero_level "$1" "Mic" 79 | mute_and_zero_level "$1" "IEC958" # Ubuntu #19648 80 | 81 | # Intel P4P800-MX 82 | switch_control "$1" "Master Playback Switch" on 83 | switch_control "$1" "Master Surround" on 84 | 85 | # Trident/YMFPCI/emu10k1: 86 | unmute_and_set_level "$1" "Wave" "80%" 87 | unmute_and_set_level "$1" "Music" "80%" 88 | unmute_and_set_level "$1" "AC97" "80%" 89 | 90 | # DRC: 91 | unmute_and_set_level "$1" "Dynamic Range Compression" "80%" 92 | 93 | # Required for HDA Intel (hda-intel): 94 | unmute_and_set_level "$1" "Front" "80%" 95 | 96 | # Required for SB Live 7.1/24-bit (ca0106): 97 | unmute_and_set_level "$1" "Analog Front" "80%" 98 | 99 | # Required at least for Via 823x hardware on DFI K8M800-MLVF Motherboard 100 | switch_control "$1" "IEC958 Capture Monitor" off 101 | 102 | # Required for hardware allowing toggles for AC97 through IEC958, 103 | # valid values are 0, 1, 2, 3. Needs to be set to 0 for PCM1. 104 | unmute_and_set_level "$1" "IEC958 Playback AC97-SPSA" "0" 105 | 106 | # Required for newer Via hardware 107 | unmute_and_set_level "$1" "VIA DXS,0" "80%" 108 | unmute_and_set_level "$1" "VIA DXS,1" "80%" 109 | unmute_and_set_level "$1" "VIA DXS,2" "80%" 110 | unmute_and_set_level "$1" "VIA DXS,3" "80%" 111 | 112 | # Required on some notebooks with ICH4: 113 | switch_control "$1" "Headphone Jack Sense" off 114 | switch_control "$1" "Line Jack Sense" off 115 | 116 | # Some machines need one or more of these to be on; 117 | # others need one or more of these to be off: 118 | 119 | switch_control "$1" "Audigy Analog/Digital Output Jack" on 120 | switch_control "$1" "SB Live Analog/Digital Output Jack" on 121 | 122 | # D1984 -- Thinkpad T61/X61 123 | switch_control "$1" "Speaker" on 124 | switch_control "$1" "Headphone" on 125 | 126 | # HDA-Intel w/ "Digital" capture mixer (See Ubuntu #193823) 127 | unmute_and_set_level "$1" "Digital" "80%" 128 | 129 | return 0 130 | } 131 | 132 | # $1 | "all" 133 | sanify_levels() { 134 | local ttsdml_returnstatus=0 135 | local card 136 | case "$1" in 137 | all) 138 | for card in $(echo_card_indices); do 139 | sanify_levels_on_card "$card" || ttsdml_returnstatus=1 140 | done 141 | ;; 142 | *) 143 | sanify_levels_on_card "$1" || ttsdml_returnstatus=1 144 | ;; 145 | esac 146 | return "$ttsdml_returnstatus" 147 | } 148 | 149 | # List all cards that *should* be usable for PCM audio. In my experience, 150 | # the console speaker (handled by the pcsp driver) isn't a suitable playback 151 | # device, so we'll exclude it. 152 | list_non_pcsp_cards() { 153 | for card in $(echo_card_indices); do 154 | local cardfile="/proc/asound/card${card}/id" 155 | if [[ -r "$cardfile" && -f "$cardfile" && "$(cat "$cardfile")" != pcsp ]]; then 156 | echo "$card" 157 | fi 158 | done 159 | } 160 | 161 | # Properly initialize the sound card so that we have audio at boot. 162 | unmute_all_cards() { 163 | sanify_levels all 164 | } 165 | 166 | is_numeric() { 167 | local str="$1" 168 | [[ "$str" =~ ^[0-9]+$ ]] 169 | } 170 | 171 | set_default_card() { 172 | local card="$1" 173 | sed -e "s/%card%/$card/g" /etc/asound.conf 175 | } 176 | 177 | play_on_card() { 178 | local card="$1" file="$2" 179 | aplay -q "-Dplughw:$card,0" "$file" 180 | } 181 | 182 | # If there are multiple usable sound cards, prompt the user to choose one, 183 | # using auditory feedback. 184 | pick_a_card() { 185 | set -f 186 | usable_cards="$(list_non_pcsp_cards)" 187 | num_usable_cards="$(wc -w <<<"$usable_cards")" 188 | 189 | if (( num_usable_cards == 1 )); then 190 | systemd-cat -t "livecdsound" printf "Only one sound card is detected\n" 191 | exit 0 192 | fi 193 | systemd-cat -t "livecdsound" printf "multiple sound cards detected\n" 194 | for card in "${usable_cards[@]}"; do 195 | if ! is_numeric "$card"; then 196 | continue 197 | fi 198 | play_on_card "$card" /usr/share/livecd-sounds/pick-a-card.wav & 199 | done 200 | wait 201 | sleep 1 202 | for card in "${usable_cards[@]}"; do 203 | if ! is_numeric "$card"; then 204 | continue 205 | fi 206 | play_on_card "$card" /usr/share/livecd-sounds/beep.wav 207 | if read -r -t 10; then 208 | systemd-cat -t "livecdsound" printf "Selecting %s sound card as default\n" "$card" 209 | set_default_card "$card" 210 | break 211 | fi 212 | done 213 | } 214 | 215 | if (( $# == 0 )); then 216 | echo "error: No argument passed." 217 | exit 1 218 | fi 219 | while [[ "${1}" != "" ]]; do 220 | case ${1} in 221 | -h|--help) 222 | usage 223 | exit 224 | ;; 225 | -u|--unmute) 226 | systemd-cat -t "livecdsound" printf "Unmuting all cards" 227 | unmute_all_cards 228 | ;; 229 | -p|--pick) 230 | pick_a_card 231 | ;; 232 | *) 233 | echo "error: Unsupported argument" 234 | usage 235 | exit 1 236 | ;; 237 | esac 238 | shift 239 | done 240 | -------------------------------------------------------------------------------- /configs/releng/airootfs/usr/local/share/livecd-sound/asound.conf.in: -------------------------------------------------------------------------------- 1 | Defaults node 2 | defaults.ctl.card %card%; 3 | defaults.pcm.card %card%; 4 | -------------------------------------------------------------------------------- /configs/releng/bootstrap_packages.x86_64: -------------------------------------------------------------------------------- 1 | arch-install-scripts 2 | base 3 | -------------------------------------------------------------------------------- /configs/releng/efiboot/loader/entries/01-archiso-x86_64-linux.conf: -------------------------------------------------------------------------------- 1 | title Arch Linux install medium (x86_64, UEFI) 2 | sort-key 01 3 | linux /%INSTALL_DIR%/boot/x86_64/vmlinuz-linux 4 | initrd /%INSTALL_DIR%/boot/x86_64/initramfs-linux.img 5 | options archisobasedir=%INSTALL_DIR% archisosearchuuid=%ARCHISO_UUID% 6 | -------------------------------------------------------------------------------- /configs/releng/efiboot/loader/entries/02-archiso-x86_64-speech-linux.conf: -------------------------------------------------------------------------------- 1 | title Arch Linux install medium (x86_64, UEFI) with speech 2 | sort-key 02 3 | linux /%INSTALL_DIR%/boot/x86_64/vmlinuz-linux 4 | initrd /%INSTALL_DIR%/boot/x86_64/initramfs-linux.img 5 | options archisobasedir=%INSTALL_DIR% archisosearchuuid=%ARCHISO_UUID% accessibility=on 6 | -------------------------------------------------------------------------------- /configs/releng/efiboot/loader/entries/03-archiso-x86_64-memtest86+.conf: -------------------------------------------------------------------------------- 1 | title Memtest86+ 2 | sort-key 03 3 | efi /boot/memtest86+/memtest.efi 4 | -------------------------------------------------------------------------------- /configs/releng/efiboot/loader/loader.conf: -------------------------------------------------------------------------------- 1 | timeout 15 2 | default 01-archiso-x86_64-linux.conf 3 | beep on 4 | -------------------------------------------------------------------------------- /configs/releng/grub/grub.cfg: -------------------------------------------------------------------------------- 1 | # Load partition table and file system modules 2 | insmod part_gpt 3 | insmod part_msdos 4 | insmod fat 5 | insmod iso9660 6 | insmod ntfs 7 | insmod ntfscomp 8 | insmod exfat 9 | insmod udf 10 | 11 | # Use graphics-mode output 12 | if loadfont "${prefix}/fonts/unicode.pf2" ; then 13 | insmod all_video 14 | set gfxmode="auto" 15 | terminal_input console 16 | terminal_output console 17 | fi 18 | 19 | # Enable serial console 20 | insmod serial 21 | insmod usbserial_common 22 | insmod usbserial_ftdi 23 | insmod usbserial_pl2303 24 | insmod usbserial_usbdebug 25 | if serial --unit=0 --speed=115200; then 26 | terminal_input --append serial 27 | terminal_output --append serial 28 | fi 29 | 30 | # Get a human readable platform identifier 31 | if [ "${grub_platform}" == 'efi' ]; then 32 | archiso_platform='UEFI' 33 | if [ "${grub_cpu}" == 'x86_64' ]; then 34 | archiso_platform="x64 ${archiso_platform}" 35 | elif [ "${grub_cpu}" == 'i386' ]; then 36 | archiso_platform="IA32 ${archiso_platform}" 37 | else 38 | archiso_platform="${grub_cpu} ${archiso_platform}" 39 | fi 40 | elif [ "${grub_platform}" == 'pc' ]; then 41 | archiso_platform='BIOS' 42 | else 43 | archiso_platform="${grub_cpu} ${grub_platform}" 44 | fi 45 | 46 | # Set default menu entry 47 | default=archlinux 48 | timeout=15 49 | timeout_style=menu 50 | 51 | 52 | # Menu entries 53 | 54 | menuentry "Arch Linux install medium (%ARCH%, ${archiso_platform})" --class arch --class gnu-linux --class gnu --class os --id 'archlinux' { 55 | set gfxpayload=keep 56 | linux /%INSTALL_DIR%/boot/%ARCH%/vmlinuz-linux archisobasedir=%INSTALL_DIR% archisosearchuuid=%ARCHISO_UUID% 57 | initrd /%INSTALL_DIR%/boot/%ARCH%/initramfs-linux.img 58 | } 59 | 60 | menuentry "Arch Linux install medium with speakup screen reader (%ARCH%, ${archiso_platform})" --hotkey s --class arch --class gnu-linux --class gnu --class os --id 'archlinux-accessibility' { 61 | set gfxpayload=keep 62 | linux /%INSTALL_DIR%/boot/%ARCH%/vmlinuz-linux archisobasedir=%INSTALL_DIR% archisosearchuuid=%ARCHISO_UUID% accessibility=on 63 | initrd /%INSTALL_DIR%/boot/%ARCH%/initramfs-linux.img 64 | } 65 | 66 | 67 | if [ "${grub_platform}" == 'efi' -a "${grub_cpu}" == 'x86_64' -a -f '/boot/memtest86+/memtest.efi' ]; then 68 | menuentry 'Run Memtest86+ (RAM test)' --class memtest86 --class memtest --class gnu --class tool { 69 | set gfxpayload=800x600,1024x768 70 | linux /boot/memtest86+/memtest.efi 71 | } 72 | fi 73 | if [ "${grub_platform}" == 'pc' -a -f '/boot/memtest86+/memtest' ]; then 74 | menuentry 'Run Memtest86+ (RAM test)' --class memtest86 --class memtest --class gnu --class tool { 75 | set gfxpayload=800x600,1024x768 76 | linux /boot/memtest86+/memtest 77 | } 78 | fi 79 | if [ "${grub_platform}" == 'efi' ]; then 80 | if [ "${grub_cpu}" == 'x86_64' -a -f '/shellx64.efi' ]; then 81 | menuentry 'UEFI Shell' --class efi { 82 | chainloader /shellx64.efi 83 | } 84 | elif [ "${grub_cpu}" == "i386" -a -f '/shellia32.efi' ]; then 85 | menuentry 'UEFI Shell' --class efi { 86 | chainloader /shellia32.efi 87 | } 88 | fi 89 | 90 | menuentry 'UEFI Firmware Settings' --id 'uefi-firmware' { 91 | fwsetup 92 | } 93 | fi 94 | 95 | menuentry 'System shutdown' --class shutdown --class poweroff { 96 | echo 'System shutting down...' 97 | halt 98 | } 99 | 100 | menuentry 'System restart' --class reboot --class restart { 101 | echo 'System rebooting...' 102 | reboot 103 | } 104 | 105 | 106 | # GRUB init tune for accessibility 107 | play 600 988 1 1319 4 108 | -------------------------------------------------------------------------------- /configs/releng/grub/loopback.cfg: -------------------------------------------------------------------------------- 1 | # https://www.supergrubdisk.org/wiki/Loopback.cfg 2 | 3 | # Search for the ISO volume 4 | search --no-floppy --set=archiso_img_dev --file "${iso_path}" 5 | probe --set archiso_img_dev_uuid --fs-uuid "${archiso_img_dev}" 6 | 7 | # Get a human readable platform identifier 8 | if [ "${grub_platform}" == 'efi' ]; then 9 | archiso_platform='UEFI' 10 | if [ "${grub_cpu}" == 'x86_64' ]; then 11 | archiso_platform="x64 ${archiso_platform}" 12 | elif [ "${grub_cpu}" == 'i386' ]; then 13 | archiso_platform="IA32 ${archiso_platform}" 14 | else 15 | archiso_platform="${grub_cpu} ${archiso_platform}" 16 | fi 17 | elif [ "${grub_platform}" == 'pc' ]; then 18 | archiso_platform='BIOS' 19 | else 20 | archiso_platform="${grub_cpu} ${grub_platform}" 21 | fi 22 | 23 | # Set default menu entry 24 | default=archlinux 25 | timeout=15 26 | timeout_style=menu 27 | 28 | 29 | # Menu entries 30 | 31 | menuentry "Arch Linux install medium (%ARCH%, ${archiso_platform})" --class arch --class gnu-linux --class gnu --class os --id 'archlinux' { 32 | set gfxpayload=keep 33 | linux /%INSTALL_DIR%/boot/%ARCH%/vmlinuz-linux archisobasedir=%INSTALL_DIR% img_dev=UUID=${archiso_img_dev_uuid} img_loop="${iso_path}" 34 | initrd /%INSTALL_DIR%/boot/%ARCH%/initramfs-linux.img 35 | } 36 | 37 | menuentry "Arch Linux install medium with speakup screen reader (%ARCH%, ${archiso_platform})" --hotkey s --class arch --class gnu-linux --class gnu --class os --id 'archlinux-accessibility' { 38 | set gfxpayload=keep 39 | linux /%INSTALL_DIR%/boot/%ARCH%/vmlinuz-linux archisobasedir=%INSTALL_DIR% img_dev=UUID=${archiso_img_dev_uuid} img_loop="${iso_path}" accessibility=on 40 | initrd /%INSTALL_DIR%/boot/%ARCH%/initramfs-linux.img 41 | } 42 | 43 | 44 | if [ "${grub_platform}" == 'efi' -a "${grub_cpu}" == 'x86_64' -a -f '/boot/memtest86+/memtest.efi' ]; then 45 | menuentry 'Run Memtest86+ (RAM test)' --class memtest86 --class memtest --class gnu --class tool { 46 | set gfxpayload=800x600,1024x768 47 | linux /boot/memtest86+/memtest.efi 48 | } 49 | fi 50 | if [ "${grub_platform}" == 'pc' -a -f '/boot/memtest86+/memtest' ]; then 51 | menuentry 'Run Memtest86+ (RAM test)' --class memtest86 --class memtest --class gnu --class tool { 52 | set gfxpayload=800x600,1024x768 53 | linux /boot/memtest86+/memtest 54 | } 55 | fi 56 | if [ "${grub_platform}" == 'efi' ]; then 57 | if [ "${grub_cpu}" == 'x86_64' -a -f '/shellx64.efi' ]; then 58 | menuentry 'UEFI Shell' --class efi { 59 | chainloader /shellx64.efi 60 | } 61 | elif [ "${grub_cpu}" == "i386" -a -f '/shellia32.efi' ]; then 62 | menuentry 'UEFI Shell' --class efi { 63 | chainloader /shellia32.efi 64 | } 65 | fi 66 | 67 | menuentry 'UEFI Firmware Settings' --id 'uefi-firmware' { 68 | fwsetup 69 | } 70 | fi 71 | 72 | menuentry 'System shutdown' --class shutdown --class poweroff { 73 | echo 'System shutting down...' 74 | halt 75 | } 76 | 77 | menuentry 'System restart' --class reboot --class restart { 78 | echo 'System rebooting...' 79 | reboot 80 | } 81 | -------------------------------------------------------------------------------- /configs/releng/packages.x86_64: -------------------------------------------------------------------------------- 1 | alsa-utils 2 | amd-ucode 3 | arch-install-scripts 4 | archinstall 5 | b43-fwcutter 6 | base 7 | bcachefs-tools 8 | bind 9 | bolt 10 | brltty 11 | broadcom-wl 12 | btrfs-progs 13 | clonezilla 14 | cloud-init 15 | cryptsetup 16 | darkhttpd 17 | ddrescue 18 | dhcpcd 19 | diffutils 20 | dmidecode 21 | dmraid 22 | dnsmasq 23 | dosfstools 24 | e2fsprogs 25 | edk2-shell 26 | efibootmgr 27 | espeakup 28 | ethtool 29 | exfatprogs 30 | f2fs-tools 31 | fatresize 32 | foot-terminfo 33 | fsarchiver 34 | gpart 35 | gpm 36 | gptfdisk 37 | grml-zsh-config 38 | grub 39 | hdparm 40 | hyperv 41 | intel-ucode 42 | irssi 43 | iw 44 | iwd 45 | jfsutils 46 | kitty-terminfo 47 | ldns 48 | less 49 | lftp 50 | libfido2 51 | libusb-compat 52 | linux 53 | linux-atm 54 | linux-firmware 55 | linux-firmware-marvell 56 | livecd-sounds 57 | lsscsi 58 | lvm2 59 | lynx 60 | man-db 61 | man-pages 62 | mc 63 | mdadm 64 | memtest86+ 65 | memtest86+-efi 66 | mkinitcpio 67 | mkinitcpio-archiso 68 | mkinitcpio-nfs-utils 69 | modemmanager 70 | mtools 71 | nano 72 | nbd 73 | ndisc6 74 | nfs-utils 75 | nilfs-utils 76 | nmap 77 | ntfs-3g 78 | nvme-cli 79 | open-iscsi 80 | open-vm-tools 81 | openconnect 82 | openpgp-card-tools 83 | openssh 84 | openvpn 85 | partclone 86 | parted 87 | partimage 88 | pcsclite 89 | ppp 90 | pptpclient 91 | pv 92 | qemu-guest-agent 93 | refind 94 | reflector 95 | rsync 96 | rxvt-unicode-terminfo 97 | screen 98 | sdparm 99 | sequoia-sq 100 | sg3_utils 101 | smartmontools 102 | sof-firmware 103 | squashfs-tools 104 | sudo 105 | syslinux 106 | systemd-resolvconf 107 | tcpdump 108 | terminus-font 109 | testdisk 110 | tmux 111 | tpm2-tools 112 | tpm2-tss 113 | udftools 114 | usb_modeswitch 115 | usbmuxd 116 | usbutils 117 | vim 118 | virtualbox-guest-utils-nox 119 | vpnc 120 | wireless-regdb 121 | wireless_tools 122 | wpa_supplicant 123 | wvdial 124 | xfsprogs 125 | xl2tpd 126 | zsh 127 | -------------------------------------------------------------------------------- /configs/releng/pacman.conf: -------------------------------------------------------------------------------- 1 | # 2 | # /etc/pacman.conf 3 | # 4 | # See the pacman.conf(5) manpage for option and repository directives 5 | 6 | # 7 | # GENERAL OPTIONS 8 | # 9 | [options] 10 | # The following paths are commented out with their default values listed. 11 | # If you wish to use different paths, uncomment and update the paths. 12 | #RootDir = / 13 | #DBPath = /var/lib/pacman/ 14 | #CacheDir = /var/cache/pacman/pkg/ 15 | #LogFile = /var/log/pacman.log 16 | #GPGDir = /etc/pacman.d/gnupg/ 17 | #HookDir = /etc/pacman.d/hooks/ 18 | HoldPkg = pacman glibc 19 | #XferCommand = /usr/bin/curl -L -C - -f -o %o %u 20 | #XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u 21 | #CleanMethod = KeepInstalled 22 | Architecture = auto 23 | 24 | # Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup 25 | #IgnorePkg = 26 | #IgnoreGroup = 27 | 28 | #NoUpgrade = 29 | #NoExtract = 30 | 31 | # Misc options 32 | #UseSyslog 33 | #Color 34 | #NoProgressBar 35 | # We cannot check disk space from within a chroot environment 36 | #CheckSpace 37 | #VerbosePkgLists 38 | ParallelDownloads = 5 39 | #DownloadUser = alpm 40 | #DisableSandbox 41 | 42 | # By default, pacman accepts packages signed by keys that its local keyring 43 | # trusts (see pacman-key and its man page), as well as unsigned packages. 44 | SigLevel = Required DatabaseOptional 45 | LocalFileSigLevel = Optional 46 | #RemoteFileSigLevel = Required 47 | 48 | # NOTE: You must run `pacman-key --init` before first using pacman; the local 49 | # keyring can then be populated with the keys of all official Arch Linux 50 | # packagers with `pacman-key --populate archlinux`. 51 | 52 | # 53 | # REPOSITORIES 54 | # - can be defined here or included from another file 55 | # - pacman will search repositories in the order defined here 56 | # - local/custom mirrors can be added here or in separate files 57 | # - repositories listed first will take precedence when packages 58 | # have identical names, regardless of version number 59 | # - URLs will have $repo replaced by the name of the current repo 60 | # - URLs will have $arch replaced by the name of the architecture 61 | # 62 | # Repository entries are of the format: 63 | # [repo-name] 64 | # Server = ServerName 65 | # Include = IncludePath 66 | # 67 | # The header [repo-name] is crucial - it must be present and 68 | # uncommented to enable the repo. 69 | # 70 | 71 | # The testing repositories are disabled by default. To enable, uncomment the 72 | # repo name header and Include lines. You can add preferred servers immediately 73 | # after the header, and they will be used before the default mirrors. 74 | 75 | #[core-testing] 76 | #Include = /etc/pacman.d/mirrorlist 77 | 78 | [core] 79 | Include = /etc/pacman.d/mirrorlist 80 | 81 | #[extra-testing] 82 | #Include = /etc/pacman.d/mirrorlist 83 | 84 | [extra] 85 | Include = /etc/pacman.d/mirrorlist 86 | 87 | # If you want to run 32 bit applications on your x86_64 system, 88 | # enable the multilib repositories as required here. 89 | 90 | #[multilib-testing] 91 | #Include = /etc/pacman.d/mirrorlist 92 | 93 | #[multilib] 94 | #Include = /etc/pacman.d/mirrorlist 95 | 96 | # An example of a custom package repository. See the pacman manpage for 97 | # tips on creating your own repositories. 98 | #[custom] 99 | #SigLevel = Optional TrustAll 100 | #Server = file:///home/custompkgs 101 | -------------------------------------------------------------------------------- /configs/releng/profiledef.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # shellcheck disable=SC2034 3 | 4 | iso_name="archlinux" 5 | iso_label="ARCH_$(date --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" +%Y%m)" 6 | iso_publisher="Arch Linux " 7 | iso_application="Arch Linux Live/Rescue DVD" 8 | iso_version="$(date --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" +%Y.%m.%d)" 9 | install_dir="arch" 10 | buildmodes=('iso') 11 | bootmodes=('bios.syslinux.mbr' 'bios.syslinux.eltorito' 12 | 'uefi-ia32.systemd-boot.esp' 'uefi-x64.systemd-boot.esp' 13 | 'uefi-ia32.systemd-boot.eltorito' 'uefi-x64.systemd-boot.eltorito') 14 | arch="x86_64" 15 | pacman_conf="pacman.conf" 16 | airootfs_image_type="squashfs" 17 | airootfs_image_tool_options=('-comp' 'xz' '-Xbcj' 'x86' '-b' '1M' '-Xdict-size' '1M') 18 | bootstrap_tarball_compression=('zstd' '-c' '-T0' '--auto-threads=logical' '--long' '-19') 19 | file_permissions=( 20 | ["/etc/shadow"]="0:0:400" 21 | ["/root"]="0:0:750" 22 | ["/root/.automated_script.sh"]="0:0:755" 23 | ["/root/.gnupg"]="0:0:700" 24 | ["/usr/local/bin/choose-mirror"]="0:0:755" 25 | ["/usr/local/bin/Installation_guide"]="0:0:755" 26 | ["/usr/local/bin/livecd-sound"]="0:0:755" 27 | ) 28 | -------------------------------------------------------------------------------- /configs/releng/syslinux/archiso_head.cfg: -------------------------------------------------------------------------------- 1 | SERIAL 0 115200 2 | UI vesamenu.c32 3 | MENU TITLE Arch Linux 4 | MENU BACKGROUND splash.png 5 | 6 | MENU WIDTH 78 7 | MENU MARGIN 4 8 | MENU ROWS 7 9 | MENU VSHIFT 10 10 | MENU TABMSGROW 14 11 | MENU CMDLINEROW 14 12 | MENU HELPMSGROW 16 13 | MENU HELPMSGENDROW 29 14 | 15 | # Refer to https://wiki.syslinux.org/wiki/index.php/Comboot/menu.c32 16 | 17 | MENU COLOR border 30;44 #40ffffff #a0000000 std 18 | MENU COLOR title 1;36;44 #9033ccff #a0000000 std 19 | MENU COLOR sel 7;37;40 #e0ffffff #20ffffff all 20 | MENU COLOR unsel 37;44 #50ffffff #a0000000 std 21 | MENU COLOR help 37;40 #c0ffffff #a0000000 std 22 | MENU COLOR timeout_msg 37;40 #80ffffff #00000000 std 23 | MENU COLOR timeout 1;37;40 #c0ffffff #00000000 std 24 | MENU COLOR msg07 37;40 #90ffffff #a0000000 std 25 | MENU COLOR tabmsg 31;40 #30ffffff #00000000 std 26 | 27 | MENU CLEAR 28 | MENU IMMEDIATE 29 | -------------------------------------------------------------------------------- /configs/releng/syslinux/archiso_pxe-linux.cfg: -------------------------------------------------------------------------------- 1 | LABEL arch64_nbd 2 | TEXT HELP 3 | Boot the Arch Linux install medium using NBD. 4 | It allows you to install Arch Linux or perform system maintenance. 5 | ENDTEXT 6 | MENU LABEL Arch Linux install medium (x86_64, NBD) 7 | LINUX ::/%INSTALL_DIR%/boot/x86_64/vmlinuz-linux 8 | INITRD ::/%INSTALL_DIR%/boot/x86_64/initramfs-linux.img 9 | APPEND archisobasedir=%INSTALL_DIR% archisosearchuuid=%ARCHISO_UUID% archiso_nbd_srv=${pxeserver} cms_verify=y 10 | SYSAPPEND 3 11 | 12 | LABEL arch64_nfs 13 | TEXT HELP 14 | Boot the Arch Linux live medium using NFS. 15 | It allows you to install Arch Linux or perform system maintenance. 16 | ENDTEXT 17 | MENU LABEL Arch Linux install medium (x86_64, NFS) 18 | LINUX ::/%INSTALL_DIR%/boot/x86_64/vmlinuz-linux 19 | INITRD ::/%INSTALL_DIR%/boot/x86_64/initramfs-linux.img 20 | APPEND archisobasedir=%INSTALL_DIR% archiso_nfs_srv=${pxeserver}:/run/archiso/bootmnt cms_verify=y 21 | SYSAPPEND 3 22 | 23 | LABEL arch64_http 24 | TEXT HELP 25 | Boot the Arch Linux live medium using HTTP. 26 | It allows you to install Arch Linux or perform system maintenance. 27 | ENDTEXT 28 | MENU LABEL Arch Linux install medium (x86_64, HTTP) 29 | LINUX ::/%INSTALL_DIR%/boot/x86_64/vmlinuz-linux 30 | INITRD ::/%INSTALL_DIR%/boot/x86_64/initramfs-linux.img 31 | APPEND archisobasedir=%INSTALL_DIR% archiso_http_srv=http://${pxeserver}/ cms_verify=y 32 | SYSAPPEND 3 33 | -------------------------------------------------------------------------------- /configs/releng/syslinux/archiso_pxe.cfg: -------------------------------------------------------------------------------- 1 | INCLUDE archiso_head.cfg 2 | 3 | INCLUDE archiso_pxe-linux.cfg 4 | 5 | INCLUDE archiso_tail.cfg 6 | -------------------------------------------------------------------------------- /configs/releng/syslinux/archiso_sys-linux.cfg: -------------------------------------------------------------------------------- 1 | LABEL arch64 2 | TEXT HELP 3 | Boot the Arch Linux install medium on BIOS. 4 | It allows you to install Arch Linux or perform system maintenance. 5 | ENDTEXT 6 | MENU LABEL Arch Linux install medium (x86_64, BIOS) 7 | LINUX /%INSTALL_DIR%/boot/x86_64/vmlinuz-linux 8 | INITRD /%INSTALL_DIR%/boot/x86_64/initramfs-linux.img 9 | APPEND archisobasedir=%INSTALL_DIR% archisosearchuuid=%ARCHISO_UUID% 10 | 11 | # Accessibility boot option 12 | LABEL arch64speech 13 | TEXT HELP 14 | Boot the Arch Linux install medium on BIOS with speakup screen reader. 15 | It allows you to install Arch Linux or perform system maintenance with speech feedback. 16 | ENDTEXT 17 | MENU LABEL Arch Linux install medium (x86_64, BIOS) with ^speech 18 | LINUX /%INSTALL_DIR%/boot/x86_64/vmlinuz-linux 19 | INITRD /%INSTALL_DIR%/boot/x86_64/initramfs-linux.img 20 | APPEND archisobasedir=%INSTALL_DIR% archisosearchuuid=%ARCHISO_UUID% accessibility=on 21 | -------------------------------------------------------------------------------- /configs/releng/syslinux/archiso_sys.cfg: -------------------------------------------------------------------------------- 1 | INCLUDE archiso_head.cfg 2 | 3 | DEFAULT arch64 4 | TIMEOUT 150 5 | 6 | INCLUDE archiso_sys-linux.cfg 7 | 8 | INCLUDE archiso_tail.cfg 9 | -------------------------------------------------------------------------------- /configs/releng/syslinux/archiso_tail.cfg: -------------------------------------------------------------------------------- 1 | LABEL existing 2 | TEXT HELP 3 | Boot an existing operating system. 4 | Press TAB to edit the disk and partition number to boot. 5 | ENDTEXT 6 | MENU LABEL Boot existing OS 7 | COM32 chain.c32 8 | APPEND hd0 0 9 | 10 | # https://www.memtest.org/ 11 | LABEL memtest 12 | MENU LABEL Run Memtest86+ (RAM test) 13 | LINUX /boot/memtest86+/memtest 14 | 15 | # https://wiki.syslinux.org/wiki/index.php/Hdt_(Hardware_Detection_Tool) 16 | LABEL hdt 17 | MENU LABEL Hardware Information (HDT) 18 | COM32 hdt.c32 19 | APPEND modules_alias=hdt/modalias.gz pciids=hdt/pciids.gz 20 | 21 | LABEL reboot 22 | TEXT HELP 23 | Reboot computer. 24 | The computer's firmware must support APM. 25 | ENDTEXT 26 | MENU LABEL Reboot 27 | COM32 reboot.c32 28 | 29 | LABEL poweroff 30 | TEXT HELP 31 | Power off computer. 32 | The computer's firmware must support APM. 33 | ENDTEXT 34 | MENU LABEL Power Off 35 | COM32 poweroff.c32 36 | -------------------------------------------------------------------------------- /configs/releng/syslinux/splash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/archlinux/archiso/9f49b02a915160b2d4ad268a5c6b9c27dde2c4b5/configs/releng/syslinux/splash.png -------------------------------------------------------------------------------- /configs/releng/syslinux/syslinux.cfg: -------------------------------------------------------------------------------- 1 | DEFAULT select 2 | 3 | LABEL select 4 | COM32 whichsys.c32 5 | APPEND -pxe- pxe -sys- sys -iso- sys 6 | 7 | LABEL pxe 8 | CONFIG archiso_pxe.cfg 9 | 10 | LABEL sys 11 | CONFIG archiso_sys.cfg 12 | -------------------------------------------------------------------------------- /docs/README.profile.rst: -------------------------------------------------------------------------------- 1 | ======= 2 | profile 3 | ======= 4 | 5 | An archiso profile consists of several configuration files and a directory for files to be added to the resulting image. 6 | 7 | .. code:: plaintext 8 | 9 | profile/ 10 | ├── airootfs/ 11 | ├── efiboot/ 12 | ├── syslinux/ 13 | ├── grub/ 14 | ├── bootstrap_packages.arch 15 | ├── packages.arch 16 | ├── pacman.conf 17 | └── profiledef.sh 18 | 19 | The required files and directories are explained in the following sections. 20 | 21 | profiledef.sh 22 | ============= 23 | 24 | This file describes several attributes of the resulting image and is a place for customization to the general behavior 25 | of the image. 26 | 27 | The image file is constructed from some of the variables in ``profiledef.sh``: ``--.iso`` 28 | (e.g. ``archlinux-202010-x86_64.iso``). 29 | 30 | * ``iso_name``: The first part of the name of the resulting image (defaults to ``mkarchiso``) 31 | * ``iso_label``: The ISO's volume label (defaults to ``MKARCHISO``) 32 | * ``iso_publisher``: A free-form string that states the publisher of the resulting image (defaults to ``mkarchiso``) 33 | * ``iso_application``: A free-form string that states the application (i.e. its use-case) of the resulting image (defaults 34 | to ``mkarchiso iso``) 35 | * ``iso_version``: A string that states the version of the resulting image (defaults to ``""``) 36 | * ``install_dir``: A string (maximum eight characters long, which **must** consist of ``[a-z0-9]``) that states the 37 | directory on the resulting image into which all files will be installed (defaults to ``mkarchiso``) 38 | * ``buildmodes``: An optional list of strings, that state the build modes that the profile uses. Only the following are 39 | understood: 40 | 41 | - ``bootstrap``: Build a compressed file containing a minimal system to bootstrap from 42 | - ``iso``: Build a bootable ISO image (implicit default, if no ``buildmodes`` are set) 43 | - ``netboot``: Build artifacts required for netboot using iPXE 44 | * ``bootmodes``: A list of strings, that state the supported boot modes of the resulting image. Only the following are 45 | understood: 46 | 47 | - ``bios.syslinux.mbr``: Syslinux for x86 BIOS booting from a disk 48 | - ``bios.syslinux.eltorito``: Syslinux for x86 BIOS booting from an optical disc 49 | - ``uefi-ia32.grub.esp``: GRUB for IA32 UEFI booting from a disk 50 | - ``uefi-ia32.grub.eltorito``: GRUB for IA32 UEFI booting from an optical disc 51 | - ``uefi-x64.grub.esp``: GRUB for x64 UEFI booting from a disk 52 | - ``uefi-x64.grub.eltorito``: GRUB for x64 UEFI booting from an optical disc 53 | - ``uefi-ia32.systemd-boot.esp``: systemd-boot for IA32 UEFI booting from a disk 54 | - ``uefi-ia32.systemd-boot.eltorito``: systemd-boot for IA32UEFI booting from an optical disc 55 | - ``uefi-x64.systemd-boot.esp``: systemd-boot for x64 UEFI booting from a disk 56 | - ``uefi-x64.systemd-boot.eltorito``: systemd-boot for x64 UEFI booting from an optical disc 57 | Note that BIOS El Torito boot mode must always be listed before UEFI El Torito boot mode. 58 | * ``arch``: The architecture (e.g. ``x86_64``) to build the image for. This is also used to resolve the name of the packages 59 | file (e.g. ``packages.x86_64``) 60 | * ``pacman_conf``: The ``pacman.conf`` to use to install packages to the work directory when creating the image (defaults to 61 | the host's ``/etc/pacman.conf``) 62 | * ``airootfs_image_type``: The image type to create. The following options are understood (defaults to ``squashfs``): 63 | 64 | - ``squashfs``: Create a squashfs image directly from the airootfs work directory 65 | - ``ext4+squashfs``: Create an ext4 partition, copy the airootfs work directory to it and create a squashfs image from it 66 | - ``erofs``: Create an EROFS image for the airootfs work directory 67 | * ``airootfs_image_tool_options``: An array of options to pass to the tool to create the airootfs image. ``mksquashfs`` and 68 | ``mkfs.erofs`` are supported. See ``mksquashfs --help`` or ``mkfs.erofs --help`` for all possible options 69 | * ``bootstrap_tarball_compression``: An array containing the compression program and arguments passed to it for 70 | compressing the bootstrap tarball (defaults to ``cat``). For example: ``bootstrap_tarball_compression=(zstd -c -T0 --long -19)``. 71 | * ``file_permissions``: An associative array that lists files and/or directories who need specific ownership or 72 | permissions. The array's keys contain the path and the value is a colon separated list of owner UID, owner GID and 73 | access mode. E.g. ``file_permissions=(["/etc/shadow"]="0:0:400")``. When directories are listed with a trailing backslash (``/``) **all** files and directories contained within the listed directory will have the same owner UID, owner GID, and access mode applied recursively. 74 | 75 | bootstrap_packages.arch 76 | ======================= 77 | 78 | All packages to be installed into the environment of a bootstrap image have to be listed in an architecture specific 79 | file (e.g. ``bootstrap_packages.x86_64``), which resides top-level in the profile. 80 | 81 | Packages have to be listed one per line. Lines starting with a ``#`` and blank lines are ignored. 82 | 83 | This file is required when generating bootstrap images using the ``bootstrap`` build mode. 84 | 85 | packages.arch 86 | ============= 87 | 88 | All packages to be installed into the environment of an ISO image have to be listed in an architecture specific file 89 | (e.g. ``packages.x86_64``), which resides top-level in the profile. 90 | 91 | Packages have to be listed one per line. Lines starting with a ``#`` and blank lines are ignored. 92 | 93 | .. note:: 94 | 95 | The **mkinitcpio** and **mkinitcpio-archiso** packages are mandatory (see `#30 96 | `_). 97 | 98 | This file is required when generating ISO images using the ``iso`` or ``netboot`` build modes. 99 | 100 | pacman.conf 101 | =========== 102 | 103 | A configuration for pacman is required per profile. 104 | 105 | Some configuration options will not be used or will be modified: 106 | 107 | * ``CacheDir``: the profile's option is **only** used if it is not the default (i.e. ``/var/cache/pacman/pkg``) and if it is 108 | not the same as the system's option. In all other cases the system's pacman cache is used. 109 | * ``HookDir``: it is **always** set to the ``/etc/pacman.d/hooks`` directory in the work directory's airootfs to allow 110 | modification via the profile and ensure interoparability with hosts using dracut (see `#73 111 | `_) 112 | * ``RootDir``: it is **always** removed, as setting it explicitely otherwise refers to the host's root filesystem (see 113 | ``man 8 pacman`` for further information on the ``-r`` option used by ``pacstrap``) 114 | * ``LogFile``: it is **always** removed, as setting it explicitely otherwise refers to the host's pacman log file (see 115 | ``man 8 pacman`` for further information on the ``-r`` option used by ``pacstrap``) 116 | * ``DBPath``: it is **always** removed, as setting it explicitely otherwise refers to the host's pacman database (see 117 | ``man 8 pacman`` for further information on the ``-r`` option used by ``pacstrap``) 118 | 119 | airootfs 120 | ======== 121 | 122 | This optional directory may contain files and directories that will be copied to the work directory of the resulting 123 | image's root filesystem. 124 | The files are copied before packages are being installed to work directory location. 125 | Ownership and permissions of files and directories from the profile's ``airootfs`` directory are not preserved. The mode 126 | will be ``644`` for files and ``755`` for directories, all of them will be owned by root. To set custom ownership and/or 127 | permissions, use ``file_permissions`` in ``profiledef.sh``. 128 | 129 | With this overlay structure it is possible to e.g. create users and set passwords for them, by providing 130 | ``airootfs/etc/passwd``, ``airootfs/etc/shadow``, ``airootfs/etc/gshadow`` (see ``man 5 passwd``, ``man 5 shadow`` and ``man 5 gshadow`` respectively). 131 | If user home directories exist in the profile's ``airootfs``, their ownership and (and top-level) permissions will be 132 | altered according to the provided information in the password file. 133 | 134 | Boot loader configuration 135 | ========================= 136 | 137 | A profile may contain configuration for several boot loaders. These reside in specific top-level directories, which are 138 | explained in the following subsections. 139 | 140 | The following *custom template identifiers* are understood and will be replaced according to the assignments of the 141 | respective variables in ``profiledef.sh``: 142 | 143 | * ``%ARCHISO_LABEL%``: Set this using the ``iso_label`` variable in ``profiledef.sh``. 144 | * ``%INSTALL_DIR%``: Set this using the ``install_dir`` variable in ``profiledef.sh``. 145 | * ``%ARCH%``: Set this using the ``arch`` variable in ``profiledef.sh``. 146 | 147 | Additionally there are also *custom template identifiers* have harcoded values set by ``mkarchiso`` that cannot be 148 | overridden: 149 | 150 | * ``%ARCHISO_UUID%``: the ISO 9660 modification date in UTC, i.e. its "UUID", 151 | * ``%ARCHISO_SEARCH_FILENAME%``: file path on ISO 9660 that can be used by GRUB to find the ISO volume 152 | (**for GRUB ``.cfg`` files only**). 153 | 154 | efiboot 155 | ------- 156 | 157 | This directory is mandatory when the ``uefi-x64.systemd-boot.esp`` or ``uefi-x64.systemd-boot.eltorito`` bootmodes are 158 | selected in ``profiledef.sh``. It contains configuration for `systemd-boot 159 | `_. 160 | 161 | .. note:: 162 | 163 | The directory is a top-level representation of the systemd-boot configuration directories and files found in the 164 | root of an EFI system partition. 165 | 166 | The *custom template identifiers* are **only** understood in the boot loader entry `.conf` files (i.e. **not** in 167 | ``loader.conf``). 168 | 169 | syslinux 170 | -------- 171 | 172 | This directory is mandatory when the ``bios.syslinux.mbr`` or the ``bios.syslinux.eltorito`` bootmodes are selected in 173 | ``profiledef.sh``. 174 | It contains configuration files for `syslinux `_ or `isolinux 175 | `_ , or `pxelinux 176 | `_ used in the resulting image. 177 | 178 | The *custom template identifiers* are understood in all `.cfg` files in this directory. 179 | 180 | grub 181 | ---- 182 | 183 | This directory is mandatory when any of the following bootmodes is used in ``profiledef.sh``: 184 | 185 | - ``uefi-ia32.grub.esp`` or 186 | - ``uefi-ia32.grub.eltorito`` or 187 | - ``uefi-x64.grub.esp`` or 188 | - ``uefi-x64.grub.eltorito`` 189 | 190 | It contains configuration files for `GRUB `_ 191 | used in the resulting image. 192 | -------------------------------------------------------------------------------- /docs/README.transfer.rst: -------------------------------------------------------------------------------- 1 | ============================================== 2 | Transfer ISO to target medium (configs/releng) 3 | ============================================== 4 | 5 | ISO images names consist of: ``archlinux-YYYY.MM.DD-x86_64.iso``. 6 | 7 | Where: ``YYYY`` is the year, ``MM`` the month and ``DD`` the day. 8 | 9 | .. contents:: 10 | 11 | Burn to an optical disc 12 | ======================= 13 | 14 | .. note:: 15 | All ISO images are BIOS and UEFI bootable via "El Torito" in no-emulation mode. 16 | 17 | Burn the ISO using your favorite disc burning program. 18 | 19 | For example: 20 | 21 | .. code:: sh 22 | 23 | xorriso -as cdrecord -v -sao dev=/dev/sr0 archlinux-YYYY.MM.DD-x86_64.iso 24 | 25 | Write to an USB flash drive / memory card / hard disk drive / solid state drive / etc. 26 | ====================================================================================== 27 | 28 | .. tip:: 29 | See https://wiki.archlinux.org/title/USB_flash_installation_medium for more detailed instructions. 30 | 31 | Nomeclature: 32 | 33 | ```` 34 | Device node of the drive where ISO contents should be copied (example: ``/dev/sdx``). 35 | ```` 36 | Device node of the partition on ```` (example: ``/dev/sdx1``). 37 | ```` 38 | Represents the file system label of the ``archlinux-YYYY.MM.DD-x86_64.iso`` (example: ``ARCH_201703``). 39 | 40 | ISOHYBRID (BIOS and UEFI) 41 | ------------------------- 42 | 43 | .. note:: 44 | This method is the most easily, quick and dirty, but is the most limited if you want to use your target medium 45 | for other purposes. If using this does not work, use the `File system transposition (UEFI only)`_ method instead. 46 | 47 | Directly write the ISO file to the target medium: 48 | 49 | .. code:: sh 50 | 51 | dd bs=4M if=archlinux-YYYY.MM.DD-x86_64.iso of= conv=fsync oflag=direct status=progress 52 | 53 | File system transposition (UEFI only) 54 | -------------------------------- 55 | 56 | This method extracts the contents of the ISO onto a prepared UEFI-bootable volume. 57 | 58 | If your drive is already partitioned and formatted, skip to the "Mount the target file system" step. 59 | 60 | .. note:: 61 | Using MBR with one FAT formatted active partition is the most compatible method. 62 | 63 | 1. Partition the drive with *fdisk*. 64 | 65 | .. code:: sh 66 | 67 | fdisk 68 | 69 | 1) Create a new MBR partition table with command ``o``. 70 | 71 | .. warning:: 72 | This will destroy all data on the drive. 73 | 74 | 2) Create a new primary partition with command ``n`` and set its type code to ``0c`` with command ``t``. 75 | 76 | 3) Mark the partition as bootable with the ``a`` command. 77 | 78 | 4) Write the changes and exit with ``w``. 79 | 80 | 2. Format the newly created partition to FAT32 81 | 82 | .. code:: sh 83 | 84 | mkfs.fat -F 32 /dev/disk/by-id/-part1 85 | 86 | 3. Mount the target file system 87 | 88 | .. code:: sh 89 | 90 | mount /mnt 91 | 92 | 4. Extract the ISO image on the target file system. 93 | 94 | .. code:: sh 95 | 96 | bsdtar -x --exclude=boot/syslinux/ -f archlinux-YYYY.MM.DD-x86_64.iso -C /mnt 97 | 98 | 5. Unmount the target file system. 99 | 100 | .. code:: sh 101 | 102 | umount /mnt 103 | 104 | Manual formatting (BIOS only) 105 | ----------------------------- 106 | 107 | .. note:: 108 | These steps are the general workflow, you can skip some of them, using another file system if your boot loader 109 | supports it, installing to another directory than ``arch/`` or using more than one partition. Just ensure that 110 | main boot parameters (``archisolabel=`` and ``archisobasedir=``) are set correctly according to your setup. 111 | 112 | Using here a MBR partition mode as example, but GPT should also work if the machine firmware is not broken. Just 113 | ensure that partition is set with attribute ``2: legacy BIOS bootable`` and use ``gptmbr.bin`` instead of 114 | ``mbr.bin`` for syslinux. 115 | 116 | 1) Create one partition entry in MBR and mark it as "active" (bootable). 117 | 118 | .. note:: 119 | Type ``b`` for FAT32, ``83`` for EXTFS or ``7`` for NTFS. 120 | 121 | .. code:: sh 122 | 123 | fdisk 124 | 125 | 2) Create a FAT32, EXTFS or NTFS file system on such partition and setup a label. 126 | 127 | .. note:: 128 | COW is not supported on NTFS. 129 | 130 | .. code:: sh 131 | 132 | mkfs.fat -F 32 -n 133 | mkfs.ext4 -L 134 | mkfs.ntfs -L 135 | 136 | 3) Mount the target file system. 137 | 138 | .. code:: sh 139 | 140 | mount /mnt 141 | 142 | 4) Extract the ISO image on the target file system. 143 | 144 | .. code:: sh 145 | 146 | bsdtar -x --exclude=boot/grub/ --exclude=EFI/ -f archlinux-YYYY.MM.DD-x86_64.iso -C /mnt 147 | 148 | 5) Install the syslinux boot loader on the target file system. 149 | 150 | .. code:: sh 151 | 152 | extlinux -i /mnt/boot/syslinux 153 | 154 | 6) Unmount the target file system. 155 | 156 | .. code:: sh 157 | 158 | umount /mnt 159 | 160 | 7) Install syslinux MBR boot code on the target drive. 161 | 162 | .. code:: sh 163 | 164 | dd bs=440 count=1 conv=notrunc if=/usr/lib/syslinux/bios/mbr.bin of= 165 | 166 | -------------------------------------------------------------------------------- /man/mkarchiso.1.rst: -------------------------------------------------------------------------------- 1 | ========= 2 | mkarchiso 3 | ========= 4 | 5 | ------------------------ 6 | Arch Linux ISO generator 7 | ------------------------ 8 | 9 | :Version: archiso |version| 10 | :Manual section: 1 11 | 12 | Synopsis 13 | ======== 14 | 15 | **mkarchiso** [options] *profile_directory* 16 | 17 | Description 18 | =========== 19 | 20 | **mkarchiso** creates an ISO, netboot artifacts and a bootstrap tarball and optionally signs them. 21 | 22 | Options 23 | ======= 24 | 25 | -A application | Set an application name for the ISO. 26 | | Default: |iso_application|. 27 | -C file | pacman configuration file. 28 | | Default: |pacman_conf|. 29 | -D install_dir | Set an install_dir. All files will be located here. 30 | | Default: |install_dir|. 31 | | NOTE: Max 8 characters, use only *a-z0-9*. 32 | -L label | Set the ISO volume label. 33 | | Default: |iso_label|. 34 | -P publisher | Set the ISO publisher. 35 | | Default: |iso_publisher|. 36 | -c cert_and_key | Provide certificates for codesigning of netboot artifacts as well as the rootfs artifact. 37 | | Multiple files are provided as quoted, space delimited list. 38 | | The first file is considered as the signing certificate, the second as the key and the third as the optional certificate authority. 39 | -g gpg_key | Set the PGP key ID to be used for signing the rootfs image. Passed to gpg as the value for **--default-key**. 40 | -G mbox | Set the PGP signer (must include an email address). Passed to gpg as the value for **--sender**. 41 | -h | Help message. 42 | -m mode | Build mode(s) to use (valid modes are: *bootstrap*, *iso* and *netboot*). Multiple build modes are provided as quoted, space delimited list. 43 | -o out_dir | Set the output directory. 44 | | Default: |out_dir|. 45 | -p packages | Package(s) to install. 46 | | Multiple packages are provided as quoted, space delimited list. 47 | -r | Delete the working directory at the end. 48 | -v | Enable verbose output. 49 | -w work_dir | Set the working directory. 50 | | Default: |work_dir|. 51 | 52 | Examples 53 | ======== 54 | 55 | Build the releng profile 56 | ------------------------ 57 | 58 | mkarchiso |profile_dir|/configs/releng 59 | 60 | Bugs 61 | ==== 62 | 63 | https://gitlab.archlinux.org/archlinux/archiso/-/issues 64 | 65 | Authors 66 | ======= 67 | 68 | archiso is maintained by the Arch Linux community. Refer to the *AUTHORS* file for a full list of contributors. 69 | 70 | Copyright 71 | ========= 72 | 73 | Copyright 🄯 archiso contributors. GPL-3.0-or-later. 74 | 75 | See also 76 | ======== 77 | 78 | * /usr/share/doc/archiso/README.profile.rst 79 | 80 | .. include:: variables.rst 81 | -------------------------------------------------------------------------------- /man/variables.rst: -------------------------------------------------------------------------------- 1 | .. |iso_application| replace:: '*mkarchiso iso*' 2 | .. |pacman_conf| replace:: */etc/pacman.conf* 3 | .. |install_dir| replace:: *arch* 4 | .. |iso_label| replace:: *MKARCHISO* 5 | .. |iso_publisher| replace:: *mkarchiso* 6 | .. |out_dir| replace:: *./out* 7 | .. |work_dir| replace:: *./work* 8 | .. |profile_dir| replace:: /usr/share/archiso 9 | 10 | .. include:: version.rst 11 | -------------------------------------------------------------------------------- /scripts/run_archiso.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # 3 | # Copyright (C) 2020 David Runge 4 | # 5 | # SPDX-License-Identifier: GPL-3.0-or-later 6 | # 7 | # A simple script to run an archiso image using qemu. The image can be booted 8 | # using BIOS or UEFI. 9 | # 10 | # Requirements: 11 | # - qemu 12 | # - edk2-ovmf (when UEFI booting) 13 | 14 | set -eu 15 | 16 | print_help() { 17 | local usagetext 18 | IFS='' read -r -d '' usagetext < 0 )); then 129 | while getopts 'abc:dhi:suv' flag; do 130 | case "$flag" in 131 | a) 132 | accessibility='on' 133 | ;; 134 | b) 135 | boot_type='bios' 136 | ;; 137 | c) 138 | oddimage="$OPTARG" 139 | ;; 140 | d) 141 | mediatype='hd' 142 | ;; 143 | h) 144 | print_help 145 | exit 0 146 | ;; 147 | i) 148 | image="$OPTARG" 149 | ;; 150 | u) 151 | boot_type='uefi' 152 | ;; 153 | s) 154 | secure_boot='on' 155 | ;; 156 | v) 157 | display='none' 158 | qemu_options+=(-vnc 'vnc=0.0.0.0:0,vnc=[::]:0') 159 | ;; 160 | *) 161 | printf '%s\n' "Error: Wrong option. Try 'run_archiso -h'." 162 | exit 1 163 | ;; 164 | esac 165 | done 166 | else 167 | print_help 168 | exit 1 169 | fi 170 | 171 | check_image 172 | run_image 173 | --------------------------------------------------------------------------------