diff options
Diffstat (limited to 'airootfs/etc')
-rw-r--r-- | airootfs/etc/fstab | 0 | ||||
-rw-r--r-- | airootfs/etc/hostname | 1 | ||||
-rw-r--r-- | airootfs/etc/locale.conf | 1 | ||||
-rw-r--r-- | airootfs/etc/machine-id | 0 | ||||
-rw-r--r-- | airootfs/etc/systemd/network/10-ethernet.network | 5 | ||||
-rwxr-xr-x | airootfs/etc/systemd/scripts/choose-mirror | 26 | ||||
-rw-r--r-- | airootfs/etc/systemd/system/choose-mirror.service | 10 | ||||
-rw-r--r-- | airootfs/etc/systemd/system/etc-pacman.d-gnupg.mount | 8 | ||||
-rw-r--r-- | airootfs/etc/systemd/system/getty@tty1.service.d/autologin.conf | 3 | ||||
-rw-r--r-- | airootfs/etc/systemd/system/pacman-init.service | 15 | ||||
-rw-r--r-- | airootfs/etc/udev/rules.d/81-dhcpcd.rules | 0 |
11 files changed, 69 insertions, 0 deletions
diff --git a/airootfs/etc/fstab b/airootfs/etc/fstab new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/airootfs/etc/fstab diff --git a/airootfs/etc/hostname b/airootfs/etc/hostname new file mode 100644 index 0000000..2dbe21e --- /dev/null +++ b/airootfs/etc/hostname @@ -0,0 +1 @@ +archiso diff --git a/airootfs/etc/locale.conf b/airootfs/etc/locale.conf new file mode 100644 index 0000000..01ec548 --- /dev/null +++ b/airootfs/etc/locale.conf @@ -0,0 +1 @@ +LANG=en_US.UTF-8 diff --git a/airootfs/etc/machine-id b/airootfs/etc/machine-id new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/airootfs/etc/machine-id diff --git a/airootfs/etc/systemd/network/10-ethernet.network b/airootfs/etc/systemd/network/10-ethernet.network new file mode 100644 index 0000000..f2578d1 --- /dev/null +++ b/airootfs/etc/systemd/network/10-ethernet.network @@ -0,0 +1,5 @@ +[Match] +Name=e* + +[Network] +DHCP=yes diff --git a/airootfs/etc/systemd/scripts/choose-mirror b/airootfs/etc/systemd/scripts/choose-mirror new file mode 100755 index 0000000..0ae0806 --- /dev/null +++ b/airootfs/etc/systemd/scripts/choose-mirror @@ -0,0 +1,26 @@ +#!/bin/bash + +get_cmdline() { + local param + for param in $(< /proc/cmdline); do + case "${param}" in + $1=*) echo "${param##*=}"; + return 0 + ;; + esac + done +} + +mirror=$(get_cmdline mirror) +[[ $mirror = auto ]] && mirror=$(get_cmdline archiso_http_srv) +[[ $mirror ]] || exit 0 + +mv /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.orig +cat >/etc/pacman.d/mirrorlist << EOF +# +# Arch Linux repository mirrorlist +# Generated by archiso +# + +Server = ${mirror%%/}/\$repo/os/\$arch +EOF diff --git a/airootfs/etc/systemd/system/choose-mirror.service b/airootfs/etc/systemd/system/choose-mirror.service new file mode 100644 index 0000000..1e4d771 --- /dev/null +++ b/airootfs/etc/systemd/system/choose-mirror.service @@ -0,0 +1,10 @@ +[Unit] +Description=Choose mirror from the kernel command line +ConditionKernelCommandLine=mirror + +[Service] +Type=oneshot +ExecStart=/etc/systemd/scripts/choose-mirror + +[Install] +WantedBy=multi-user.target diff --git a/airootfs/etc/systemd/system/etc-pacman.d-gnupg.mount b/airootfs/etc/systemd/system/etc-pacman.d-gnupg.mount new file mode 100644 index 0000000..4eab551 --- /dev/null +++ b/airootfs/etc/systemd/system/etc-pacman.d-gnupg.mount @@ -0,0 +1,8 @@ +[Unit] +Description=Temporary /etc/pacman.d/gnupg directory + +[Mount] +What=tmpfs +Where=/etc/pacman.d/gnupg +Type=tmpfs +Options=mode=0755 diff --git a/airootfs/etc/systemd/system/getty@tty1.service.d/autologin.conf b/airootfs/etc/systemd/system/getty@tty1.service.d/autologin.conf new file mode 100644 index 0000000..d1d8474 --- /dev/null +++ b/airootfs/etc/systemd/system/getty@tty1.service.d/autologin.conf @@ -0,0 +1,3 @@ +[Service] +ExecStart= +ExecStart=-/sbin/agetty --autologin root --noclear %I 38400 linux diff --git a/airootfs/etc/systemd/system/pacman-init.service b/airootfs/etc/systemd/system/pacman-init.service new file mode 100644 index 0000000..23b8144 --- /dev/null +++ b/airootfs/etc/systemd/system/pacman-init.service @@ -0,0 +1,15 @@ +[Unit] +Description=Initializes Pacman keyring +Wants=haveged.service +After=haveged.service +Requires=etc-pacman.d-gnupg.mount +After=etc-pacman.d-gnupg.mount + +[Service] +Type=oneshot +RemainAfterExit=yes +ExecStart=/usr/bin/pacman-key --init +ExecStart=/usr/bin/pacman-key --populate archlinux + +[Install] +WantedBy=multi-user.target diff --git a/airootfs/etc/udev/rules.d/81-dhcpcd.rules b/airootfs/etc/udev/rules.d/81-dhcpcd.rules new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/airootfs/etc/udev/rules.d/81-dhcpcd.rules |