aboutsummaryrefslogtreecommitdiff
path: root/configs/releng/build.sh
Commit message (Collapse)AuthorAgeFilesLines
* Install mkinitcpio-archiso-hooks in airootfs instead of copying the hooks ↵nl67202020-07-301-11/+0
| | | | from host
* Build initramfs images only oncenl67202020-07-291-28/+14
| | | | | Place custom mkinitcpio.conf in airootfs. Use a custom mkinitcpio preset to specify generated image file path.
* Add license and basic documentationDavid Runge2020-07-291-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | LICENSE: Add GPL-3.0 license. {{archiso,configs}/*,.editorconfig,.gitlab-ci.yml}: Add SPDX license identifier. Makefile: Add SPDX license identifier. Install the `run_archiso.sh` script as global executable `run_archiso`. Use -D and -t flags to install to install files more generically (without a previous call to install the directory). README.rst: Add README outlining the project's scope, how to build images from the profiles and how to test. AUTHORS.rst: Add list of all direct contributors to the repository. CONTRIBUTING.rst: Add basic contribution guidelines, explaining the linter and the license in use. Closes #7 Closes #3
* Copy files more genericallyDavid Runge2020-07-281-17/+21
| | | | | | | | | | | | | | configs/*: Copy all files that do not need a rename generically (not specifying a destination file name). Do not rename vmlinuz-linux to vmlinuz or vmlinuz.efi (as this serves no purpose and makes the scripts more complicated). Do not rename microcode (i.e. {amd,intel}-ucode.img) when copying them and change all boot loader configuration files that assume a renamed microcode image. Add note and link to Arch Linux wiki to state why memtest.bin is renamed to memtest. Copy license files for {amd,intel}-ucode and memtest more generically by placing them into subdirectories with the same name as the package (to circumenvent overwriting one other). Closes #33
* Copy /etc/skel/ to user's home from build.sh instead of customize_airootfs.shnl67202020-07-281-1/+10
| | | | Additionally copy the files to all custom user homes, not just root's.
* Set up custom user home directories and their permissionsnl67202020-07-281-1/+14
|
* Deprecate customize_airootfs.shnl67202020-07-281-7/+9
| | | | Show a deprecation notice if airootfs/root/customize_airootfs.sh is found.
* Install all packages in one go and don't copy pacman.conf to airootfsnl67202020-07-281-14/+12
| | | | | | | | | configs/{baseline,releng}/build.sh: Copy custom files to airootfs before installing packages. Instead of calling `mkarchiso init`, list all required packages in packages.x86_64 and install them all at once with `mkarchiso install`. The mkdir command which `mkarchiso init` performs is now done by make_custom_airootfs. configs/releng/build.sh: Don't copy configs/releng/pacman.conf to airootfs, it is only meant to provide a unmodified pacman.conf durring pacstrap. In airootfs, an unmodified /etc/pacman.conf will be installed with the pacman package.
* Set root user's shell and password with custom /etc/passwd and /etc/shadownl67202020-07-201-1/+2
| | | | Correct shadow file permissions from build.sh.
* Fix unexpected script_path behaviourJustin Kromlinger2020-07-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When one calls the `build.sh` scripts with bash instead of the shebang `$script_path` contains the filepath, not the parent dir: ``` % cd /path % grep -A2 script_path= build.sh script_path=$(readlink -f "${0%/*}") echo "$script_path" exit 0 % ./build.sh /path % bash build.sh /path/build.sh ``` This commit fixes that: ``` % grep -A2 script_path= build.sh script_path="$( cd -P "$( dirname "$(readlink -f "$0")" )" && pwd )" echo "$script_path" exit 0 % ./build.sh /path % bash build.sh /path ```
* Don't hardcode packages in build.shnl67202020-07-121-15/+17
| | | | | Move all required packages to packages.x86_64. Test file availability before copying them.
* Remove lynx usage in configs/releng/build.shnl67202020-07-111-3/+0
| | | | | | | | /usr/local/bin/Installation_guide: Add a convenience script which opens the installation guide in lynx. /etc/motd: Provide a message with minimal instructions for connecting to internet and inform about the Installation_guide convenience script.
* Use /usr/bin/env in shebangsnl67202020-07-111-1/+1
|
* Keep /root permissions as 750nl67202020-07-111-0/+2
| | | | | | The filesystem package installs /root as 750 not 700. Move chmod from customize_airootfs.sh to build.sh.
* Fixing issues with variable quoting and arraysDavid Runge2020-06-301-2/+2
| | | | | | | | | | | | | archiso/mkarchiso: Calls to _pacman() need to be done with multiple parameters (e.g. array) instead of one string, as string splitting is not done in that function anymore. Turning _iso_efi_boot_args from string into an array to have an easier time of passing it to xorriso. Calling xorriso within the if statements instead of providing -quiet via variable. Fixing command_install() to provide packages separately to _pacman() configs/releng/build.sh: Replacing all newlines when retrieving the packages from packages.x86_64 with spaces so they will be properly provided to "mkarchiso install".
* Do not download a mirrorlist durring buildnl67202020-06-301-3/+0
| | | | Pacman's mirrolist will be updated by reflector.service in the live system.
* Introducing shellcheck in gitlab CIDavid Runge2020-06-291-86/+136
| | | | | | | | | | | | | | | | | | | | | | | | | | | archiso/mkarchiso: Quoting all variables. Changing pkg_list to be an array instead of a string for easier handling. Using read to properly populate pkg_list from OPTARG with stripped whitespaces. Not exporting iso_label anymore as there seems to be no reason to do so. Introducing line breaks. .editorconfig: Setting max_line_length to 120. Adding a section for YAML files (e.g. .gitlab-ci.yml). configs/releng/build.sh Quting nearly all variables. Introducing line breaks. configs/baseline/build.sh: Quoting all variables. Introducing line breaks. .gitlab-ci.yml: Adding gitlab CI for shelleck linting of the config build scripts, mkarchiso and startup scripts in releng. Closes #19
* Fixing ownership in airootfs customizationDavid Runge2020-06-231-1/+1
| | | | | | | | | | | | | | configs/releng/build.sh: Fixing wrong ownership of files when copying overlay modifications from the config's airootfs directory to the working directory in make_customize_airootfs() by using the cp flag '--no-preserve=ownership'. Thanks to Marcos Mello and Francois Dupoux of sysresccd (https://gitlab.com/fdupoux/sysresccd-src) for making this fix available. Closes #11
* Removing custom UEFI shell boot loader configsDavid Runge2020-06-231-8/+4
| | | | | | | | | | | | | configs/releng/build.sh: Copying the edk2-shell based Shell_Full.efi to the root of the iso/ efi image as 'shellx64.efi' is automatically picked up by certain hardware and by systemd-boot. This makes all custom UEFI shell configuration obsolete. configs/releng/efiboot/loader/entries/uefi-shell-*.conf: Removing obsolete custom UEFI shell boot loader configuration. Closes #14
* Removing efitoolsDavid Runge2020-06-231-9/+3
| | | | | | | | | | configs/releng/build.sh: Removing the efitools based PreLoader.efi and HashTool.efi, as they are dead weight due to not allowing secure boot (FS#59487). Future secure boot functionality (most probably based on shim) is being discussed in FS#53864. Closes #17
* Using edk2-shell for UEFI shellDavid Runge2020-05-301-10/+9
| | | | | | | | | | | | | | | | | | | | | | configs/releng/build.sh: Instead of downloading UDK2018 based edk2 UEFI shell, use the Shell binaries from the edk2-shell package. This effectively makes the use of EFI shell v1 obsolete. configs/releng/efiboot/loader/entries/uefi-shell-v*: Renaming UEFI shell entries to match the packaged edk2-shell based UEFI shell binaries. configs/releng/build.sh: Renaming the systemd-boot bootloader entries for UEFI shell (normal and full version) to reflect their file names, which are derived from the binary names in the edk2-shell package. Copying the edk2-shell based UEFI shell binaries for normal efiboot and .iso based "el-torito" efiboot mode. docs/README.build: Adding edk2-shell to the requirements in the documentation, as the package is now used to provide UEFI shell.
* update download url for Shell.efiChristian Hesse2019-04-261-1/+1
| | | | Signed-off-by: Christian Hesse <mail@eworm.de>
* update download url for Shell_Full.efiChristian Hesse2018-12-131-1/+1
| | | | | https://bugzilla.tianocore.org/show_bug.cgi?id=1108 Signed-off-by: Christian Hesse <mail@eworm.de>
* [configs/releng] Update amd-ucode license pathGerardo Exequiel Pozzi2018-08-251-1/+1
| | | | Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@gmail.com>
* use package amd-ucode for amd microcodeChristian Hesse2018-08-241-12/+1
| | | | | | | The package linux-firmware has a new split package amd-ucode. Do not build the image manually but use the package. Signed-off-by: Christian Hesse <mail@eworm.de>
* [configs/releng] Make and use amd_ucode.bin for initrd.Gerardo Exequiel Pozzi2018-08-181-0/+14
| | | | Requested at FS#59694
* make detection of kernel modules dir more robustEli Schwartz via arch-releng2018-08-011-1/+2
| | | | | | | | | | | extract `uname -r` from the contents of vmlinuz-linux rather than make assumptions about the kernel EXTRAVERSION. This is trivially customizable by changing the chosen kernel image. Fixes FS#59496 Signed-off-by: Eli Schwartz <eschwartz@archlinux.org>
* [releng] Copy custom pacman.conf to airootfsGerardo Exequiel Pozzi2018-06-281-0/+2
|
* [releng] support for -P iso_publisher and -A iso_application in build.shGerardo Exequiel Pozzi2018-06-231-2/+10
| | | | Implement FS#54126
* [releng] Cleanup remain dual-arch stuffGerardo Exequiel Pozzi2018-06-231-73/+44
| | | | Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@gmail.com>
* Ensure correct umask for scriptsGerardo Exequiel Pozzi2018-06-231-0/+2
| | | | | | Fix for FS#58473 Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@gmail.com>
* [configs/releng] Oops, rename -dual.iso -> -x86_64.isoGerardo Exequiel Pozzi2017-03-011-1/+1
| | | | Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@gmail.com>
* [configs/releng] Do not build i686Gerardo Exequiel Pozzi2017-01-231-4/+4
| | | | | | | | Only avoid build i686. The syslinux config files for i686 are still present. This implies that a i686 entry will be present but not working. In another patch, this can be removed if desired. Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@gmail.com>
* [configs/releng] Increse efiboot.img againGerardo Exequiel Pozzi2016-12-071-1/+1
| | | | | | | | | We reached the upper limit again [#1], increasing sufficiently to do not touch again in long time. [#1] 526be1579e515beb7bfb04b154b23450eb6589cb Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@gmail.com>
* [configs/releng] Fix efitools path #2Gerardo Exequiel Pozzi2016-05-151-4/+4
| | | | Thanks Daniel Hillenbrand.
* [configs/releng] Oops, fix efitools pathGerardo Exequiel Pozzi2016-05-141-4/+4
| | | | | | Thanks Philip Müller. Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@gmail.com>
* [configs/releng] prebootloader -> efitoolsGerardo Exequiel Pozzi2016-05-121-5/+5
| | | | Should be fixed FS#49314 first
* update to match upstream binary name mkfs.fatChristian Hesse2016-05-121-1/+1
| | | | | | Starting with dosfstools 4.0-1 the mkfs executable is called 'mkfs.fat'. Signed-off-by: Christian Hesse <mail@eworm.de>
* [archiso] Increase EFI image size for El Torito boot methodGerardo Exequiel Pozzi2016-03-011-1/+1
| | | | | | | | | | | | Current build leaves ~800K free of 31M in the FAT filesystem, adding 9M. Going beyond 65535 sectors of 512-byte is a bit special, but works for EFI. Image size is reported a zero in boot catalog, but xorriso does a good job, and writes right value in hybrid-partition. Tested booting in qemu in both modes (cd-rom and hybrid) and works fine. Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@gmail.com>
* Fix non-signed buildsGerardo Exequiel Pozzi2016-03-011-0/+1
| | | | FS#48382
* Optionally sign the squashfs files with gpg and add the gpg key to the initramfsThomas Bächler2016-02-281-3/+12
| | | | | | | | | A new option -g <keyid> is added to build.sh set the key id. If it is set, the squashfs files will be signed by gpg and the gpg key will be added to archiso.img. In order to use this option, a gpg agent must be running. Since build.sh is executed as root, it may be necessary to set the GNUPGHOME environment variable, for example $ su -c "GNUPGHOME=/home/youruser/.gnupg /path/to/build.sh -g yourkeyid"
* [configs/releng] Fix EFI shells URLGerardo Exequiel Pozzi2015-07-201-2/+2
| | | | Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@gmail.com>
* [configs/releng] Update EFI Shells URLGerardo Exequiel Pozzi2015-07-181-4/+4
| | | | Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@gmail.com>
* [configs/releng] refind-efi is not used for ISO build, move to packagesGerardo Exequiel Pozzi2015-06-241-1/+1
| | | | Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@gmail.com>
* [configs/releng] Move on gummiboot -> systemd-bootGerardo Exequiel Pozzi2015-06-241-3/+3
| | | | Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@gmail.com>
* explicitly detach loop device on umountChristian Hesse2015-04-211-1/+1
| | | | | | | | | I see cases where a stale loop device stays around and fills up my partition as image file is still in use and does not get unlinked. Explicitly detach loop device on umount to fix that. Signed-off-by: Christian Hesse <mail@eworm.de>
* [configs/releng] Fix pacman.conf location when non-default work_dir is usedGerardo Exequiel Pozzi2015-04-171-8/+7
| | | | | | Fix FS#44620, reported by Lukas B. Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@gmail.com>
* [configs/releng] Always install needed pkgs from build.shGerardo Exequiel Pozzi2014-12-211-1/+11
| | | | Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@gmail.com>
* [configs/releng] Always load intel-ucode in early boot stageGerardo Exequiel Pozzi2014-10-311-0/+4
| | | | Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@gmail.com>
* [configs/*] Install archiso initcpio files in /etc/initcpioGerardo Exequiel Pozzi2014-10-291-4/+7
| | | | Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@gmail.com>