Commit Graph

405 Commits

Author SHA1 Message Date
nl6720 bec99e2919 Install all packages in one go and don't copy pacman.conf to airootfs
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.
2020-07-28 11:50:25 +03:00
nl6720 796ac31655 Set root user's shell and password with custom /etc/passwd and /etc/shadow
Correct shadow file permissions from build.sh.
2020-07-20 13:39:41 +03:00
Justin Kromlinger bc7d39ccdf Fix unexpected script_path behaviour
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
```
2020-07-16 22:54:16 +02:00
nl6720 aff8b83113 Explicitly add linux and mkinitcpio to packages.x86_64
linux only gets pulled in because of broadcom-wl and mkinitcpio (usually) gets pulled in by linux.
2020-07-12 17:54:31 +03:00
nl6720 0cdad28f63 Don't hardcode packages in build.sh
Move all required packages to packages.x86_64.
Test file availability before copying them.
2020-07-12 16:28:38 +03:00
nl6720 9906475575 Remove lynx usage in configs/releng/build.sh
/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.
2020-07-11 17:08:44 +03:00
nl6720 04c3b86601 Remove unnecessary dialog package
dialog was only added because it was needed for netctl's wifi-menu.
Now that netctl is removed, nothing requires dialog.
2020-07-11 17:00:51 +03:00
nl6720 dc1c81e446 Use /usr/bin/env in shebangs 2020-07-11 16:31:18 +03:00
nl6720 422311a30c Remove unneded ReadOnlyPaths from reflector.service
configs/releng/airootfs/etc/systemd/system/reflector.service:
Remove references to a nonexistent file.
2020-07-11 16:31:17 +03:00
nl6720 157333ba89 Keep /root permissions as 750
The filesystem package installs /root as 750 not 700.

Move chmod from customize_airootfs.sh to build.sh.
2020-07-11 16:30:25 +03:00
nl6720 97d45306c4 Update pacman.conf to the current version shipped by the pacman package 2020-07-11 16:28:31 +03:00
nl6720 0a5079cc54 Sort packages.x86_64
Additionally update names of renamed packages:
https://git.archlinux.org/svntogit/packages.git/commit/trunk?h=packages/bind&id=1b097b9bcaddd65c7af4f92efef175f959395a7e
https://git.archlinux.org/svntogit/packages.git/commit/trunk?h=packages/vim&id=807b49bf022a6d523ca6215d5b34cd1e37457bd5
2020-07-11 16:28:27 +03:00
nl6720 577378fd28 Warn about Syslinux's reboot.c32 and poweroff.c32 requiring APM
configs/releng/syslinux/archiso_tail.cfg:
APM is old and some motherboard firmwares have removed support for it.
reboot.c32 and poweroff.c32 will not work on such firmwares.
Add a help text to "Reboot" and "Power Off" boot menu entries that warns about requiring APM.
2020-07-11 15:10:34 +03:00
nl6720 90ed5260e3 Add terminus-font
When built with CONFIG_FONT_TER16x32, the Linux kernel includes a TER16x32 font based on ter-i32b from terminus-font. The kernel will automatically choose this font on screen resolutions larger than 1920×1080.
The terminus-font package includes fonts for other character sets, which may be useful during installation.
2020-07-11 15:06:37 +03:00
nl6720 4f97bcf3e0 Add *-terminfo packages to ease installation via SSH 2020-07-11 13:28:17 +03:00
nl6720 c85b94e9d6 Automatically boot the installation environment from syslinux
Timeout is 3 seconds to match systemd-boot's configuration.
2020-07-11 10:45:22 +03:00
nl6720 783bd352bc Allow systemd-networkd-wait-online to succeed with one interface
It is enough if one network interface is online, there is no need to wait for all of them.
Without this, when connecting with Wi-Fi and leaving Ethernet disconnected, the network-online.target will get unnecessarily delayed.
2020-06-30 20:53:00 +03:00
David Runge e800bd884a Fixing issues with variable quoting and arrays
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".
2020-06-30 19:35:56 +02:00
nl6720 7baf4bf135 Move choose-mirror script to /usr/local/bin/
/etc/systemd/scripts/ is not a standard directory.

Run shellchek on the choose-mirror script.
2020-06-30 18:10:55 +03:00
nl6720 0868000955 Do not download a mirrorlist durring build
Pacman's mirrolist will be updated by reflector.service in the live system.
2020-06-30 18:10:45 +03:00
nl6720 77ed5a391d Add reflector and enable reflector.service
reflector.service will update pacman's mirrorlist after a network connection is established in the live system.
Fixes https://gitlab.archlinux.org/archlinux/archiso/-/issues/26 .
2020-06-30 18:09:44 +03:00
David Runge d16f20c9df Standardizing boot loader entry format
{configs/releng/efiboot/loader/entries/archiso-x86_64-{cd,usb}.conf,configs/releng/syslinux/archiso_{pxe,sys}.cfg}:
Standardizing the boot loader entry format by switching all entries to the form:
"Arch Linux install medium (<CARCH>[, <PROPERTY>])".
This removes the distinction between "CD" and "USB" when booting in UEFI "el-torito" (as the information is not useful).
Changing some of the syslinux help text as well to reflect this change. This also drops the specific <CARCH> from the
syslinux help text as it is duplicated information.

Closes #24
2020-06-30 14:57:26 +02:00
nl6720 4897636939 Add efibootmgr
It was previously pulled in as a dependency of refind. Now that refind is removed, add efibootmgr explicitly.
2020-06-30 14:38:08 +03:00
nl6720 3cde5039c2 Add back lsscsi
It cannot be fully replaced by lsblk.
2020-06-30 12:10:09 +03:00
nl6720 150eb3bc0f Clear the screen after syslinux exits
Reduce the time where boot loader artifacts linger on screen after the boot loader has done its job.
2020-06-30 10:43:08 +03:00
nl6720 44d1d5c5a6 Set timezone from outside chroot 2020-06-30 06:25:43 +03:00
nl6720 8f3976775e Enable systemd units with symlinks instead of doing it via systemctl in chroot 2020-06-30 06:25:43 +03:00
nl6720 a0a6aa38c1 Use drop-in files for journald and logind configuration 2020-06-30 06:25:43 +03:00
David Runge fe8e2f0729 Introducing shellcheck in gitlab CI
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
2020-06-29 20:10:23 +02:00
David Runge bb866f6fc0 IPv6 DHCP
configs/releng/airootfs/etc/systemd/network/20-{ethernet,wirless}.network:
Making sure that systemd-networkd enables DHCP capabilities also for
IPv6 ('DHCP=yes' and unsetting IPv6AcceptRA - see `man 5
systemd.network` for further information).

Closes #23
2020-06-29 16:58:19 +02:00
David Runge a9c8059086 Adding systemd-resolvconf
configs/releng/packages.x86_64:
Due to dropping netctl from the image, no packgae currently directly
pulls in a resolvconf provider.
The systemd-resolvconf package is compatible with systemd-resolved which
is in use on the image now and the preferred choice.

Closes #22
2020-06-24 09:42:08 +02:00
David Runge 402a6ac3fb Enabling iwd
configs/releng/airootfs/etc/systemd/system/multi-user.target.wants/iwd.service:
Adding a symlink to /usr/lib/systemd/system/iwd.service to enable iwd in
airootfs (and thus on the image).

Closes #18
2020-06-24 00:19:53 +02:00
David Runge b9eb1f5802 Removin unneeded packages
configs/releng/packages.x86_64:
Removing packages:
* grub :rescue/ installation actions for grub should be run from within
  a chroot
* lsscsi: lsblk provides the same functionality
* netctl: we have systemd-networkd enabled by default
* ntp: we have systemd-timesyncd
* refind: rescue/ installation actions for refind should be run from
  within a chroot
* vi: we have vim

Closes #15
2020-06-23 23:29:55 +02:00
David Runge 5e1e7fc3d7 Fixing ownership in airootfs customization
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
2020-06-23 22:16:16 +02:00
David Runge 50132246a2 Adding nvme-cli to package list
configs/releng/packages.x86_64:
Adding nvme-cli to the list of packages for working with NVME drives in
a live environment (as discussed in FS#63769).

Closes #20
2020-06-23 21:46:16 +02:00
David Runge 4ebf993690 Removing wget in favor of curl
configs/releng/airootfs/root/.automated_script.sh:
Replacing wget with curl for the use-case of downloading a
pre-specified remote startup script (changing flags where needed).

configs/releng/packages.x86_64:
Removing wget from the list of installed packages, as
.automated_script.sh was the only reason for it being installed.

Closes #16
2020-06-23 21:38:39 +02:00
David Runge bb76ba82be Numerical prefix for systemd-networkd configuration
Adding a numerical prefix ('20-') to the ethernet.network and
wireless.network configuration files for systemd-networkd.
This way overriding them can become more predictable e.g. by providing
files with a '30-' prefix.

Closes #13
2020-06-23 21:10:17 +02:00
David Runge 9274ed07b4 Removing custom UEFI shell boot loader configs
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
2020-06-23 20:44:29 +02:00
David Runge 5ec4f97c78 Removing efitools
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
2020-06-23 20:08:57 +02:00
David Runge 04389e73b4 Replacing dhcpcd with systemd-networkd and systemd-resolved
configs/releng/airootfs/etc/udev/rules.d/81-dhcpcd.rules:
Removing the udev rule for starting dhcpcd@.service on interfaces of the
form eth* and en*.

configs/releng/airootfs/etc/systemd/network/{ethernet,wireless}.network:
Adding default DHCP configurations for en*, eth*, wlp* and wlan*
interfaces.

configs/releng/airootfs/etc/resolv.conf:
Adding a symlink from /run/systemd/resolve/stub-resolv.conf to
/etc/resolv.conf (in airootfs).

configs/releng/airootfs/root/customize_airootfs.sh:
Adding systemd-networkd and systemd-resolved to the list of services
that are being enabled during airootfs customization.
2020-05-31 21:41:57 +02:00
David Runge ec74019b6c Unsetting the root password
Due to changes in the filesystem package [1] the current /etc/passwd
does not allow login without an empty root password anymore.
This becomes apparent, when switching to another TTY than the one
autologin is activated for.

By running passwd -d root we unset the password.
In the future this should go to a custom /etc/passwd file.

[1] https://git.archlinux.org/svntogit/packages.git/commit/trunk?h=packages/filesystem&id=0320c909f3867d47576083e853543bab1705185b
2020-05-31 00:27:15 +02:00
David Runge dc5f16f3ae Fixing default bootloader menu selection.
configs/releng/efiboot/loader/loader.conf:
The 'default' bootloader selection of systemd-boot is based on a glob
pattern. The previous pattern was not sufficient to select anything,
which is why it is now made explicit (pointing to archiso-x86_64.conf).
2020-05-30 20:03:52 +02:00
David Runge 5f4b86a57e Simplifying regex for script download
configs/releng/airootfs/root/.automated_script.sh:
Using only one regex to match http://, https:// or ftp:// endpoints.
2020-05-30 19:55:03 +02:00
David Runge 9a47bad4a4 Using edk2-shell for UEFI shell
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.
2020-05-30 19:30:52 +02:00
David Runge f5b814df12 Renaming refind-efi to refind
configs/releng/packages.x86_64:
As the refind-efi package has been renamed to refind, the package
required for the releng image needs to be renamed as well.
2020-05-30 18:17:15 +02:00
David Runge 19c2ae686b Revert "Renaming refind package"
This reverts commit c16612401e.
2020-05-30 18:02:18 +02:00
David Runge 6584c2b5d1 Renaming refind package
configs/releng/packages.x86_64:
refind-efi has been renamed to refind
2020-04-23 08:02:31 +02:00
Pierre Schmitz 78c61ffb78 FS#64049: Re-add missing packages reflecting the base group to package transition 2019-10-16 13:09:21 +02:00
Gerardo Exequiel Pozzi 7c4d16f9c4 [configs/releng] Re-add wpa_supplicant 2019-05-01 18:35:17 -03:00
Christian Hesse b57425125f update download url for Shell.efi
Signed-off-by: Christian Hesse <mail@eworm.de>
2019-04-26 11:47:15 -03:00