欢迎您访问 最编程 本站为您分享编程语言代码,编程技术文章!
您现在的位置是: 首页

新手必看!最新Arch Linux安装指南

最编程 2024-02-24 09:00:56
...

介绍

    Arch Linux(或 Arch /ˈɑːrtʃ/))是一款基于 x86-64 架构的 Linux发行版 。系统主要由*和开源软件组成,支持社区参与。系统设计以 KISS原则(保持简单和愚蠢)为总体指导原则,注重代码正确、优雅和极简主义,期待用户愿意去理解系统的运作。Arch Linux 采用pacman作为默认的软件包管理器。

    Arch Linux 采用滚动发行模式,即没有所谓的大版本更新,每次常规更新都会将系统和软件保持在最新状态。Arch 发行的系统安装映像也只是简单地包含最新的基本系统组件。

    Arch Linux 以社区 Wiki 的形式提供文档,称为 ArchWiki(页面存档备份,存于互联网档案馆)。该 Wiki 经常编有特定主题的最新信息,受到了 Linux 社区的广泛认可,内容也应用在 Arch Linux 以外的领域。

下载 Arch Linux 镜像

https://www.archlinux.org/download/

815f56c8a77689340a2138e203d57891.png

验证启动模式

ls /sys/firmware/efi/efivars

如果 /sys/firmware/efi/efivars 目录不存在,则系统可能是从 BIOS 模式启动的,在主板设置里使用 UEFI 模式启动。

连接 internet

查看连接

root@archiso ~ # ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: ens33: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UNKNOWN group default qlen 1000
    link/ether 00:0c:29:cf:0f:60 brd ff:ff:ff:ff:ff:ff
    altname enp2s1
    inet 10.0.0.20/8 brd 10.255.255.255 scope global dynamic ens33
       valid_lft 28733sec preferred_lft 25133sec
    inet6 fe80::20c:29ff:fecf:f60/64 scope link 
       valid_lft forever preferred_lft forever
root@archiso ~ #

连接

对于有线网络,安装镜像启动的时候,默认会启动 dhcpcd,如果没有启动,可以手动启动:

root@archiso ~ # dhcpcd
dhcpcd-9.4.0 starting
dev: loaded udev
DUID 00:04:03:d6:4d:56:62:ba:a6:c8:43:8d:89:04:2f:cf:0f:60
ens33: IAID 29:cf:0f:60
ens33: soliciting an IPv6 router
ens33: soliciting a DHCP lease
ens33: offered 10.0.0.20 from 10.0.0.1
ens33: leased 10.0.0.20 for 28800 seconds
ens33: adding route to 10.0.0.0/8
ens33: adding default route via 10.0.0.5
forked to background, child pid 1107
root@archiso ~ #

验证连接

root@archiso ~ # ping www.chenby.cn
PING qv1jf0jr.slt-dk.sched.tdnsv8.com (27.221.54.169) 56(84) bytes of data.
64 bytes from 27.221.54.169 (27.221.54.169): icmp_seq=1 ttl=55 time=21.7 ms
From _gateway (10.0.0.5) icmp_seq=2 Redirect Host(New nexthop: 10.0.0.1 (10.0.0.1))
64 bytes from 27.221.54.169 (27.221.54.169): icmp_seq=2 ttl=55 time=19.7 ms
64 bytes from 27.221.54.169 (27.221.54.169): icmp_seq=3 ttl=55 time=17.0 ms
64 bytes from 27.221.54.169 (27.221.54.169): icmp_seq=4 ttl=55 time=18.2 ms
64 bytes from 27.221.54.169 (27.221.54.169): icmp_seq=5 ttl=55 time=17.4 ms
64 bytes from 27.221.54.169 (27.221.54.169): icmp_seq=6 ttl=55 time=17.6 ms
From _gateway (10.0.0.5) icmp_seq=7 Redirect Host(New nexthop: 10.0.0.1 (10.0.0.1))
64 bytes from 27.221.54.169 (27.221.54.169): icmp_seq=7 ttl=55 time=19.3 ms
64 bytes from 27.221.54.169 (27.221.54.169): icmp_seq=8 ttl=55 time=17.5 ms
64 bytes from 27.221.54.169 (27.221.54.169): icmp_seq=9 ttl=55 time=18.5 ms
^C
--- qv1jf0jr.slt-dk.sched.tdnsv8.com ping statistics ---
9 packets transmitted, 9 received, +2 errors, 0% packet loss, time 8986ms
rtt min/avg/max/mdev = 16.974/18.536/21.674/1.398 ms
root@archiso ~ #

更新系统时间

root@archiso ~ # timedatectl set-ntp true
root@archiso ~ # date
Sun Sep 19 04:19:16 AM UTC 2021
root@archiso ~ #

查看磁盘设备

root@archiso ~ # fdisk -l
Disk /dev/sda: 50 GiB, 53687091200 bytes, 104857600 sectors
Disk model: VMware Virtual S
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes




Disk /dev/loop0: 662.69 MiB, 694882304 bytes, 1357192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
root@archiso ~ #

新建分区表

fdisk /dev/sda

输入 g,新建 GPT 分区表

输入 w,保存修改

若不是efi 无需创建GPT

分区创建

创建一个512M的boot分区,并创建根目录分区

root@archiso ~ # fdisk /dev/sda 


Welcome to fdisk (util-linux 2.37.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.


Device does not contain a recognized partition table.
Created a new DOS disklabel with disk identifier 0xb6ebf3f5.


Command (m for help): n
Partition type
   p   primary (0 primary, 0 extended, 4 free)
   e   extended (container for logical partitions)
Select (default p): 


Using default response p.
Partition number (1-4, default 1): 
First sector (2048-104857599, default 2048): 
Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-104857599, default 104857599): +512M


Created a new partition 1 of type 'Linux' and of size 512 MiB.


Command (m for help): n
Partition type
   p   primary (1 primary, 0 extended, 3 free)
   e   extended (container for logical partitions)
Select (default p): 


Using default response p.
Partition number (2-4, default 2): 
First sector (1050624-104857599, default 1050624): 
Last sector, +/-sectors or +/-size{K,M,G,T,P} (1050624-104857599, default 104857599): 


Created a new partition 2 of type 'Linux' and of size 49.5 GiB.


Command (m for help): p
Disk /dev/sda: 50 GiB, 53687091200 bytes, 104857600 sectors
Disk model: VMware Virtual S
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xb6ebf3f5


Device     Boot   Start       End   Sectors  Size Id Type
/dev/sda1          2048   1050623   1048576  512M 83 Linux
/dev/sda2       1050624 104857599 103806976 49.5G 83 Linux


Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.


root@archiso ~ #

磁盘格式化

格式化 EFI System 分区

root@archiso ~ # mkfs.fat -F32 /dev/sda1
mkfs.fat 4.2 (2021-01-31)
root@archiso ~ #

格式化 Linux root 分区

root@archiso ~ # mkfs.xfs /dev/sda2
meta-data=/dev/sda2              isize=512    agcount=4, agsize=3243968 blks
         =                       sectsz=512   attr=2, projid32bit=1
         =                       crc=1        finobt=1, sparse=1, rmapbt=0
         =                       reflink=1    bigtime=0 inobtcount=0
data     =                       bsize=4096   blocks=12975872, imaxpct=25
         =                       sunit=0      swidth=0 blks
naming   =version 2              bsize=4096   ascii-ci=0, ftype=1
log      =internal log           bsize=4096   blocks=6335, version=2
         =                       sectsz=512   sunit=0 blks, lazy-count=1
realtime =none                   extsz=4096   blocks=0, rtextents=0
root@archiso ~ #

挂载文件系统

root@archiso ~ # mount /dev/sda2 /mnt
root@archiso ~ # mkdir /mnt/boot
root@archiso ~ # mount /dev/sda1 /mnt/boot
root@archiso ~ #

配置 pacman mirror

需要根据自己的地区选择不同的源来加快下载的速度。

执行以下命令,用Vim来编辑/etc/pacman.d/mirrorlist这个文件

root@archiso ~ # cat /etc/pacman.d/mirrorlist
################################################################################
################# Arch Linux mirrorlist generated by Reflector #################
################################################################################


# With:       reflector @/etc/xdg/reflector/reflector.conf
# When:       2021-09-19 12:17:21 UTC
# From:       https://archlinux.org/mirrors/status/json/
# Retrieved:  2021-09-19 12:16:31 UTC
# Last Check: 2021-09-19 03:57:58 UTC


Server = https://mirror.f4st.host/archlinux/$repo/os/$arch
Server = https://mirror.chaoticum.net/arch/$repo/os/$arch
Server = https://mirror.pseudoform.org/$repo/os/$arch
Server = https://mirror.erickochen.nl/archlinux/$repo/os/$arch
Server = https://mirror.cyberbits.eu/archlinux/$repo/os/$arch
Server = https://archlinux.mailtunnel.eu/$repo/os/$arch
Server = https://mirror.osbeck.com/archlinux/$repo/os/$arch
Server = https://archmirror.it/repos/$repo/os/$arch
Server = https://archlinux.uk.mirror.allworldit.com/archlinux/$repo/os/$arch
Server = https://archlinux.za.mirror.allworldit.com/archlinux/$repo/os/$arch
Server = https://ftp.halifax.rwth-aachen.de/archlinux/$repo/os/$arch
Server = https://mirror.telepoint.bg/archlinux/$repo/os/$arch
Server = https://archlinux.thaller.ws/$repo/os/$arch
Server = https://mirror.pkgbuild.com/$repo/os/$arch
Server = https://europe.mirror.pkgbuild.com/$repo/os/$arch
Server = https://america.mirror.pkgbuild.com/$repo/os/$arch
Server = https://asia.mirror.pkgbuild.com/$repo/os/$arch
Server = https://arch.jensgutermuth.de/$repo/os/$arch
Server = https://mirror.cspacehostings.com/archlinux/$repo/os/$arch
Server = https://mirror.moson.org/arch/$repo/os/$arch
root@archiso ~ # 
root@archiso ~ #

可使用清华、浙大源:

Server = http://mirrors.tuna.tsinghua.edu.cn/archlinux/$repo/os/$arch
Server = http://mirrors.zju.edu.cn/archlinux/$repo/os/$arch

安装 Arch 和 Package Group

root@archiso ~ # pacstrap /mnt base base-devel linux linux-firmware
==> Creating install root at /mnt
==> Installing packages to /mnt
:: Synchronizing package databases...
 core                                                     136.9 KiB   113 KiB/s 00:01 [#################################################] 100%
 extra                                                   1567.8 KiB  2036 KiB/s 00:01 [#################################################] 100%
 community                                                  5.8 MiB  4.64 MiB/s 00:01 [#################################################] 100%
:: There are 24 members in group base-devel:
:: Repository core
   1) autoconf  2) automake  3) binutils  4) bison  5) fakeroot  6) file  7) findutils  8) flex  9) gawk  10) gcc  11) gettext  12) grep
   13) groff  14) gzip  15) libtool  16) m4  17) make  18) pacman  19) patch  20) pkgconf  21) sed  22) sudo  23) texinfo  24) which


Enter a selection (default=all): 
resolving dependencies...
:: There are 3 providers available for initramfs:
:: Repository core
   1) mkinitcpio
:: Repository extra
   2) booster  3) dracut


Enter a number (default=1): 
looking for conflicting packages...


Packages (137) acl-2.3.1-1  archlinux-keyring-20210902-1  argon2-20190702-3  attr-2.5.1-1  audit-3.0.4-1  bash-5.1.008-1  brotli-1.0.9-4
               bzip2-1.0.8-4  ca-certificates-20210603-1  ca-certificates-mozilla-3.70-1  ca-certificates-utils-20210603-1  coreutils-8.32-1
               cryptsetup-2.4.1-1  curl-7.79.0-3  db-5.3.28-5  dbus-1.12.20-1  device-mapper-2.03.13-1  diffutils-3.8-1  e2fsprogs-1.46.4-1
               elfutils-0.185-1  expat-2.4.1-1  filesystem-2021.05.31-1  gc-8.0.4-4  gcc-libs-11.1.0-1  gdbm-1.21-1  glib2-2.68.4-1
               glibc-2.33-5  gmp-6.2.1-1  gnupg-2.2.29-1  gnutls-3.7.2-2  gpgme-1.16.0-1  guile-2.2.7-1  hwids-20210613-1
               iana-etc-20210728-1  icu-69.1-1  iproute2-5.14.0-1  iptables-1:1.8.7-1  iputils-20210722-1  json-c-0.15-1  kbd-2.4.0-2
               keyutils-1.6.3-1  kmod-29-1  krb5-1.19.2-1  less-1:590-1  libarchive-3.5.2-1  libassuan-2.5.5-1  libcap-2.57-1
               libcap-ng-0.8.2-3  libcroco-0.6.13-2  libelf-0.185-1  libffi-3.3-4  libgcrypt-1.9.4-1  libgpg-error-1.42-1  libidn2-2.3.2-1
               libksba-1.6.0-1  libldap-2.4.59-2  libmnl-1.0.4-3  libmpc-1.2.1-1  libnetfilter_conntrack-1.0.8-1  libnfnetlink-1.0.1-4
               libnftnl-1.2.0-1  libnghttp2-1.44.0-1  libnl-3.5.0-3  libp11-kit-0.24.0-1  libpcap-1.10.1-1  libpsl-0.21.1-1  libsasl-2.1.27-3
               libseccomp-2.5.2-1  libsecret-0.20.4-1  libssh2-1.9.0-3  libtasn1-4.17.0-1  libtirpc-1.3.2-1  libunistring-0.9.10-3
               libxcrypt-4.4.25-1  libxml2-2.9.12-2  licenses-20200427-1  linux-api-headers-5.12.3-1  lz4-1:1.9.3-2  mkinitcpio-30-2
               mkinitcpio-busybox-1.33.1-1  mpfr-4.1.0.p13-1  ncurses-6.2-2  nettle-3.7.3-1  npth-1.6-3  openssl-1.1.1.l-1  p11-kit-0.24.0-1
               pacman-mirrorlist-20210822-1  pam-1.5.2-1  pambase-20210605-2  pciutils-3.7.0-1  pcre-8.45-1  pcre2-10.37-1  perl-5.34.0-2
               pinentry-1.1.1-1  popt-1.18-1  procps-ng-3.3.17-1  psmisc-23.4-1  readline-8.1.001-1  shadow-4.8.1-4  sqlite-3.36.0-1
               systemd-249.4-1  systemd-libs-249.4-1  systemd-sysvcompat-249.4-1  tar-1.34-1  tzdata-2021a-2  util-linux-2.37.2-1
               util-linux-libs-2.37.2-1  xz-5.2.5-1  zlib-1:1.2.11-4  zstd-1.5.0-1  autoconf-2.71-1  automake-1.16.4-1  base-2-2
               binutils-2.36.1-3  bison-3.7.6-1  fakeroot-1.26-1  file-5.40-5  findutils-4.8.0-1  flex-2.6.4-3  gawk-5.1.0-1  gcc-11.1.0-1
               gettext-0.21-1  grep-3.7-1  groff-1.22.4-6  gzip-1.11-1  libtool-2.4.6+42+gb88cebd5-16  linux-5.14.5.arch1-1
               linux-firmware-20210818.c46b8c3-1  m4-1.4.19-1  make-4.3-3  pacman-6.0.1-2  patch-2.7.6-8  pkgconf-1.8.0-1  sed-4.8-1
               sudo-1.9.8.p1-1  texinfo-6.8-2  which-2.21-5


Total Download Size:    486.75 MiB
Total Installed Size:  1642.04 MiB


:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 iana-etc-20210728-1-any                                  392.2 KiB  1294 KiB/s 00:00 [#################################################] 100%
 filesystem-2021.05.31-1-x86_64                            30.0 KiB   152 KiB/s 00:00 [#################################################] 100%
 linux-api-headers-5.12.3-1-any                          1130.4 KiB  2.25 MiB/s 00:00 [#################################################] 100%
 tzdata-2021a-2-x86_64                                    388.7 KiB  1327 KiB/s 00:00 [#################################################] 100%
 glibc-2.33-5-x86_64                                        9.8 MiB  2.49 MiB/s 00:04 [#################################################] 100%
 gcc-libs-11.1.0-1-x86_64                                  30.5 MiB  2.51 MiB/s 00:12 [#################################################] 100%
 ncurses-6.2-2-x86_64                                    1141.7 KiB  2024 KiB/s 00:01 [#################################################] 100%
 readline-8.1.001-1-x86_64                                319.0 KiB  1089 KiB/s 00:00 [#################################################] 100%
 bash-5.1.008-1-x86_64                                   1693.6 KiB  2.19 MiB/s 00:01 [#################################################] 100%
 attr-2.5.1-1-x86_64                                       68.2 KiB   336 KiB/s 00:00 [#################################################] 100%
 acl-2.3.1-1-x86_64                                       136.4 KiB   650 KiB/s 00:00 [#################################################] 100%
 gmp-6.2.1-1-x86_64                                       438.4 KiB  1163 KiB/s 00:00 [#################################################] 100%
 util-linux-libs-2.37.2-1-x86_64                          411.9 KiB  1104 KiB/s 00:00 [#################################################] 100%
 e2fsprogs-1.46.4-1-x86_64                               1208.0 KiB  1662 KiB/s 00:01 [#################################################] 100%
 openssl-1.1.1.l-1-x86_64                                   3.6 MiB  2.01 MiB/s 00:02 [#################################################] 100%
 libsasl-2.1.27-3-x86_64                                  146.1 KiB   709 KiB/s 00:00 [#################################################] 100%
 libldap-2.4.59-2-x86_64                                  303.6 KiB  1036 KiB/s 00:00 [#################################################] 100%
 keyutils-1.6.3-1-x86_64                                  102.1 KiB   503 KiB/s 00:00 [#################################################] 100%
 krb5-1.19.2-1-x86_64                                    1308.7 KiB  1616 KiB/s 00:01 [#################################################] 100%
 libtirpc-1.3.2-1-x86_64                                  176.8 KiB   842 KiB/s 00:00 [#################################################] 100%
 pambase-20210605-2-any                                     3.0 KiB  15.5 KiB/s 00:00 [#################################################] 100%
 libcap-ng-0.8.2-3-x86_64                                  41.5 KiB   212 KiB/s 00:00 [#################################################] 100%
 audit-3.0.4-1-x86_64                                     381.2 KiB  1042 KiB/s 00:00 [#################################################] 100%
 libxcrypt-4.4.25-1-x86_64                                 88.6 KiB   239 KiB/s 00:00 [#################################################] 100%
 pam-1.5.2-1-x86_64                                       572.6 KiB  1055 KiB/s 00:01 [#################################################] 100%
 libcap-2.57-1-x86_64                                      78.4 KiB   381 KiB/s 00:00 [#################################################] 100%
 coreutils-8.32-1-x86_64                                    2.7 MiB  1548 KiB/s 00:02 [#################################################] 100%
 zlib-1:1.2.11-4-x86_64                                    81.5 KiB   394 KiB/s 00:00 [#################################################] 100%
 xz-5.2.5-1-x86_64                                        300.9 KiB  1017 KiB/s 00:00 [#################################################] 100%
 bzip2-1.0.8-4-x86_64                                      57.2 KiB   280 KiB/s 00:00 [#################################################] 100%
 libseccomp-2.5.2-1-x86_64                                 88.2 KiB   435 KiB/s 00:00 [#################################################] 100%
 file-5.40-5-x86_64                                       344.9 KiB   908 KiB/s 00:00 [#################################################] 100%
 findutils-4.8.0-1-x86_64                                 487.1 KiB  1059 KiB/s 00:00 [#################################################] 100%
 mpfr-4.1.0.p13-1-x86_64                                  403.9 KiB   871 KiB/s 00:00 [#################################################] 100%
 gawk-5.1.0-1-x86_64                                     1139.2 KiB   952 KiB/s 00:01 [#################################################] 100%
 pcre-8.45-1-x86_64                                       983.0 KiB   993 KiB/s 00:01 [#################################################] 100%
 grep-3.7-1-x86_64                                        248.1 KiB   665 KiB/s 00:00 [#################################################] 100%
 libgpg-error-1.42-1-x86_64                               236.7 KiB   640 KiB/s 00:00 [#################################################] 100%
 libgcrypt-1.9.4-1-x86_64                                 563.6 KiB   895 KiB/s 00:01 [#################################################] 100%
 libtasn1-4.17.0-1-x86_64                                 133.1 KiB   469 KiB/s 00:00 [#################################################] 100%
 libffi-3.3-4-x86_64                                       44.0 KiB   224 KiB/s 00:00 [#################################################] 100%
 libp11-kit-0.24.0-1-x86_64                               478.7 KiB   880 KiB/s 00:01 [#################################################] 100%
 lz4-1:1.9.3-2-x86_64                                     120.2 KiB   425 KiB/s 00:00 [#################################################] 100%
 zstd-1.5.0-1-x86_64                                      924.3 KiB  1035 KiB/s 00:01 [#################################################] 100%
 systemd-libs-249.4-1-x86_64                              575.1 KiB  1046 KiB/s 00:01 [#################################################] 100%
 procps-ng-3.3.17-1-x86_64                                516.6 KiB   951 KiB/s 00:01 [#################################################] 100%
 sed-4.8-1-x86_64                                         237.9 KiB   820 KiB/s 00:00 [#################################################] 100%
 tar-1.34-1-x86_64                                        817.2 KiB   470 KiB/s 00:02 [#################################################] 100%
 glib2-2.68.4-1-x86_64                                      2.7 MiB  1612 KiB/s 00:02 [#################################################] 100%
 libunistring-0.9.10-3-x86_64                             634.1 KiB  1313 KiB/s 00:00 [#################################################] 100%
 icu-69.1-1-x86_64                                         10.6 MiB  2.00 MiB/s 00:05 [#################################################] 100%
 libxml2-2.9.12-2-x86_64                                 1337.7 KiB  1776 KiB/s 00:01 [#################################################] 100%
 libcroco-0.6.13-2-x86_64                                 155.3 KiB   716 KiB/s 00:00 [#################################################] 100%
 gettext-0.21-1-x86_64                                      2.1 MiB  1287 KiB/s 00:02 [#################################################] 100%
 hwids-20210613-1-any                                     463.8 KiB   958 KiB/s 00:00 [#################################################] 100%
 kmod-29-1-x86_64                                         105.8 KiB   504 KiB/s 00:00 [#################################################] 100%
 pciutils-3.7.0-1-x86_64                                   99.6 KiB   453 KiB/s 00:00 [#################################################] 100%
 psmisc-23.4-1-x86_64                                     186.8 KiB   623 KiB/s 00:00 [#################################################] 100%
 shadow-4.8.1-4-x86_64                                   1194.2 KiB  1171 KiB/s 00:01 [#################################################] 100%
 util-linux-2.37.2-1-x86_64                                 2.5 MiB  1284 KiB/s 00:02 [#################################################] 100%
 pcre2-10.37-1-x86_64                                    1116.2 KiB  1008 KiB/s 00:01 [#################################################] 100%
 less-1:590-1-x86_64                                      115.1 KiB   538 KiB/s 00:00 [#################################################] 100%
 gzip-1.11-1-x86_64                                        82.0 KiB   390 KiB/s 00:00 [#################################################] 100%
 licenses-20200427-1-any                                   69.6 KiB   338 KiB/s 00:00 [#################################################] 100%
 expat-2.4.1-1-x86_64                                     114.5 KiB   511 KiB/s 00:00 [#################################################] 100%
 libarchive-3.5.2-1-x86_64                                504.3 KiB   901 KiB/s 00:01 [#################################################] 100%
 p11-kit-0.24.0-1-x86_64                                  141.7 KiB   477 KiB/s 00:00 [#################################################] 100%
 ca-certificates-utils-20210603-1-any                       8.2 KiB  40.6 KiB/s 00:00 [#################################################] 100%
 ca-certificates-mozilla-3.70-1-x86_64                    325.8 KiB   835 KiB/s 00:00 [#################################################] 100%
 ca-certificates-20210603-1-any                          2028.0   B  9.57 KiB/s 00:00 [#################################################] 100%
 brotli-1.0.9-4-x86_64                                    397.4 KiB   828 KiB/s 00:00 [#################################################] 100%
 libidn2-2.3.2-1-x86_64                                   140.2 KiB   463 KiB/s 00:00 [#################################################] 100%
 libnghttp2-1.44.0-1-x86_64                                94.9 KiB   431 KiB/s 00:00 [#################################################] 100%
 libpsl-0.21.1-1-x86_64                                    79.6 KiB   368 KiB/s 00:00 [#################################################] 100%
 libssh2-1.9.0-3-x86_64                                   213.3 KiB   635 KiB/s 00:00 [#################################################] 100%
 curl-7.79.0-3-x86_64                                    1098.8 KiB  1178 KiB/s 00:01 [#################################################] 100%
 npth-1.6-3-x86_64                                         24.5 KiB   118 KiB/s 00:00 [#################################################] 100%
 libksba-1.6.0-1-x86_64                                   137.9 KiB   445 KiB/s 00:00 [#################################################] 100%
 libassuan-2.5.5-1-x86_64                                 106.6 KiB   364 KiB/s 00:00 [#################################################] 100%
 libsecret-0.20.4-1-x86_64                                238.6 KiB   607 KiB/s 00:00 [#################################################] 100%
 pinentry-1.1.1-1-x86_64                                  114.9 KiB   379 KiB/s 00:00 [#################################################] 100%
 nettle-3.7.3-1-x86_64                                    424.7 KiB   856 KiB/s 00:00 [#################################################] 100%
 gnutls-3.7.2-2-x86_64                                      2.8 MiB  1187 KiB/s 00:02 [#################################################] 100%
 sqlite-3.36.0-1-x86_64                                  1741.8 KiB  1232 KiB/s 00:01 [#################################################] 100%
 gnupg-2.2.29-1-x86_64                                      2.4 MiB  1394 KiB/s 00:02 [#################################################] 100%
 gpgme-1.16.0-1-x86_64                                    446.0 KiB   949 KiB/s 00:00 [#################################################] 100%
 pacman-mirrorlist-20210822-1-any                           6.9 KiB  31.7 KiB/s 00:00 [#################################################] 100%
 archlinux-keyring-20210902-1-any                         976.7 KiB  1290 KiB/s 00:01 [#################################################] 100%
 pacman-6.0.1-2-x86_64                                    915.2 KiB  1380 KiB/s 00:01 [#################################################] 100%
 device-mapper-2.03.13-1-x86_64                           293.0 KiB   964 KiB/s 00:00 [#################################################] 100%
 popt-1.18-1-x86_64                                        67.7 KiB   298 KiB/s 00:00 [#################################################] 100%
 json-c-0.15-1-x86_64                                      53.9 KiB   211 KiB/s 00:00 [#################################################] 100%
 argon2-20190702-3-x86_64                                  33.1 KiB   138 KiB/s 00:00 [#################################################] 100%
 cryptsetup-2.4.1-1-x86_64                                588.1 KiB  1210 KiB/s 00:00 [#################################################] 100%
 dbus-1.12.20-1-x86_64                                    315.3 KiB  1027 KiB/s 00:00 [#################################################] 100%
 libmnl-1.0.4-3-x86_64                                     10.4 KiB  49.0 KiB/s 00:00 [#################################################] 100%
 libnftnl-1.2.0-1-x86_64                                   69.5 KiB   306 KiB/s 00:00 [#################################################] 100%
 libnl-3.5.0-3-x86_64                                     395.0 KiB   305 KiB/s 00:01 [#################################################] 100%
 libpcap-1.10.1-1-x86_64                                  276.5 KiB   768 KiB/s 00:00 [#################################################] 100%
 libnfnetlink-1.0.1-4-x86_64                               17.4 KiB  85.3 KiB/s 00:00 [#################################################] 100%
 libnetfilter_conntrack-1.0.8-1-x86_64                     49.4 KiB   256 KiB/s 00:00 [#################################################] 100%
 iptables-1:1.8.7-1-x86_64                                433.0 KiB   956 KiB/s 00:00 [#################################################] 100%
 kbd-2.4.0-2-x86_64                                      1221.0 KiB  1185 KiB/s 00:01 [#################################################] 100%
 libelf-0.185-1-x86_64                                    470.1 KiB  1035 KiB/s 00:00 [#################################################] 100%
 systemd-249.4-1-x86_64                                     6.5 MiB  1749 KiB/s 00:04 [#################################################] 100%
 systemd-sysvcompat-249.4-1-x86_64                          5.6 KiB  29.0 KiB/s 00:00 [#################################################] 100%
 iputils-20210722-1-x86_64                                127.8 KiB   600 KiB/s 00:00 [#################################################] 100%
 iproute2-5.14.0-1-x86_64                                1047.1 KiB  1331 KiB/s 00:01 [#################################################] 100%
 base-2-2-any                                               2.1 KiB  10.5 KiB/s 00:00 [#################################################] 100%
 m4-1.4.19-1-x86_64                                       258.3 KiB   698 KiB/s 00:00 [#################################################] 100%
 diffutils-3.8-1-x86_64                                   363.1 KiB   990 KiB/s 00:00 [#################################################] 100%
 gdbm-1.21-1-x86_64                                       227.6 KiB   813 KiB/s 00:00 [#################################################] 100%
 db-5.3.28-5-x86_64                                      1098.0 KiB  1277 KiB/s 00:01 [#################################################] 100%
 perl-5.34.0-2-x86_64                                      15.4 MiB  1787 KiB/s 00:09 [#################################################] 100%
 autoconf-2.71-1-any                                      645.2 KiB  1385 KiB/s 00:00 [#################################################] 100%
 automake-1.16.4-1-any                                    611.7 KiB  1139 KiB/s 00:01 [#################################################] 100%
 elfutils-0.185-1-x86_64                                  552.6 KiB  1228 KiB/s 00:00 [#################################################] 100%
 binutils-2.36.1-3-x86_64                                   6.2 MiB  1442 KiB/s 00:04 [#################################################] 100%
 bison-3.7.6-1-x86_64                                     756.4 KiB   979 KiB/s 00:01 [#################################################] 100%
 fakeroot-1.26-1-x86_64                                    70.5 KiB   358 KiB/s 00:00 [#################################################] 100%
 flex-2.6.4-3-x86_64                                      297.2 KiB   819 KiB/s 00:00 [#################################################] 100%
 libmpc-1.2.1-1-x86_64                                     70.5 KiB   352 KiB/s 00:00 [#################################################] 100%
 gcc-11.1.0-1-x86_64                                       34.0 MiB  1396 KiB/s 00:25 [#################################################] 100%
 groff-1.22.4-6-x86_64                                      2.1 MiB  1270 KiB/s 00:02 [#################################################] 100%
 libtool-2.4.6+42+gb88cebd5-16-x86_64                     409.6 KiB   910 KiB/s 00:00 [#################################################] 100%
 texinfo-6.8-2-x86_64                                    1418.4 KiB  1172 KiB/s 00:01 [#################################################] 100%
 gc-8.0.4-4-x86_64                                        234.7 KiB   652 KiB/s 00:00 [#################################################] 100%
 guile-2.2.7-1-x86_64                                       6.4 MiB  1362 KiB/s 00:05 [#################################################] 100%
 make-4.3-3-x86_64                                        481.6 KiB   887 KiB/s 00:01 [#################################################] 100%
 patch-2.7.6-8-x86_64                                      92.5 KiB   472 KiB/s 00:00 [#################################################] 100%
 pkgconf-1.8.0-1-x86_64                                    57.6 KiB   294 KiB/s 00:00 [#################################################] 100%
 sudo-1.9.8.p1-1-x86_64                                  1602.5 KiB  1159 KiB/s 00:01 [#################################################] 100%
 which-2.21-5-x86_64                                       15.8 KiB  81.4 KiB/s 00:00 [#################################################] 100%
 mkinitcpio-busybox-1.33.1-1-x86_64                       269.5 KiB   743 KiB/s 00:00 [#################################################] 100%
 mkinitcpio-30-2-any                                       41.6 KiB   171 KiB/s 00:00 [#################################################] 100%
 linux-5.14.5.arch1-1-x86_64                              126.2 MiB  1881 KiB/s 01:09 [#################################################] 100%
 linux-firmware-20210818.c46b8c3-1-any                    173.3 MiB  1967 KiB/s 01:30 [#################################################] 100%
 Total (137/137)                                          486.8 MiB  1543 KiB/s 05:23 [#################################################] 100%
(137/137) checking keys in keyring                                                    [#################################################] 100%
(137/137) checking package integrity                                                  [#################################################] 100%
(137/137) loading package files                                                       [#################################################] 100%
(137/137) checking for file conflicts                                                 [#################################################] 100%
(137/137) checking available disk space                                               [#################################################] 100%
:: Processing package changes...
(  1/137) installing iana-etc                                                         [#################################################] 100%
(  2/137) installing filesystem                                                       [#################################################] 100%
(  3/137) installing linux-api-headers                                                [#################################################] 100%
(  4/137) installing tzdata                                                           [#################################################] 100%
(  5/137) installing glibc                                                            [#################################################] 100%
Optional dependencies for glibc
    gd: for memusagestat
(  6/137) installing gcc-libs                                                         [#################################################] 100%
(  7/137) installing ncurses                                                          [#################################################] 100%
Optional dependencies for ncurses
    bash: for ncursesw6-config [pending]
(  8/137) installing readline                                                         [#################################################] 100%
(  9/137) installing bash                                                             [#################################################] 100%
Optional dependencies for bash
    bash-completion: for tab completion
( 10/137) installing attr                                                             [#################################################] 100%
( 11/137) installing acl                                                              [#################################################] 100%
( 12/137) installing gmp                                                              [#################################################] 100%
( 13/137) installing util-linux-libs                                                  [#################################################] 100%
( 14/137) installing e2fsprogs                                                        [#################################################] 100%
( 15/137) installing openssl                                                          [#################################################] 100%
Optional dependencies for openssl
    ca-certificates [pending]
    perl [pending]
( 16/137) installing libsasl                                                          [#################################################] 100%
( 17/137) installing libldap                                                          [#################################################] 100%
( 18/137) installing keyutils                                                         [#################################################] 100%
( 19/137) installing krb5                                                             [#################################################] 100%
( 20/137) installing libtirpc                                                         [#################################################] 100%
( 21/137) installing pambase                                                          [#################################################] 100%
( 22/137) installing libcap-ng                                                        [#################################################] 100%
( 23/137) installing audit                                                            [#################################################] 100%
( 24/137) installing libxcrypt                                                        [#################################################] 100%
( 25/137) installing pam                                                              [#################################################] 100%
( 26/137) installing libcap                                                           [#################################################] 100%
( 27/137) installing coreutils                                                        [#################################################] 100%
( 28/137) installing zlib                                                             [#################################################] 100%
( 29/137) installing xz                                                               [#################################################] 100%
( 30/137) installing bzip2                                                            [#################################################] 100%
( 31/137) installing libseccomp                                                       [#################################################] 100%
( 32/137) installing file                                                             [#################################################] 100%
( 33/137) installing findutils                                                        [#################################################] 100%
( 34/137) installing mpfr                                                             [#################################################] 100%
( 35/137) installing gawk                                                             [#################################################] 100%
( 36/137) installing pcre                                                             [#################################################] 100%
( 37/137) installing grep                                                             [#################################################] 100%
( 38/137) installing libgpg-error                                                     [#################################################] 100%
( 39/137) installing libgcrypt                                                        [#################################################] 100%
( 40/137) installing libtasn1                                                         [#################################################] 100%
( 41/137) installing libffi                                                           [#################################################] 100%
( 42/137) installing libp11-kit                                                       [#################################################] 100%
( 43/137) installing lz4                                                              [#################################################] 100%
( 44/137) installing zstd                                                             [#################################################] 100%
( 45/137) installing systemd-libs                                                     [#################################################] 100%
( 46/137) installing procps-ng                                                        [#################################################] 100%
( 47/137) installing sed                                                              [#################################################] 100%
( 48/137) installing tar                                                              [#################################################] 100%
( 49/137) installing glib2                                                            [#################################################] 100%
Optional dependencies for glib2
    python: gdbus-codegen, glib-genmarshal, glib-mkenums, gtester-report
    libelf: gresource inspection tool [pending]
( 50/137) installing libunistring                                                     [#################################################] 100%
( 51/137) installing icu                                                              [#################################################] 100%
( 52/137) installing libxml2                                                          [#################################################] 100%
( 53/137) installing libcroco                                                         [#################################################] 100%
( 54/137) installing gettext                                                          [#################################################] 100%
Optional dependencies for gettext
    git: for autopoint infrastructure updates
( 55/137) installing hwids                                                            [#################################################] 100%
( 56/137) installing kmod                                                             [#################################################] 100%
( 57/137) installing pciutils                                                         [#################################################] 100%
( 58/137) installing psmisc                                                           [#################################################] 100%
( 59/137) installing shadow                                                           [#################################################] 100%
( 60/137) installing util-linux                                                       [#################################################] 100%
Optional dependencies for util-linux
    python: python bindings to libmount
    words: default dictionary for look
( 61/137) installing pcre2                                                            [#################################################] 100%
( 62/137) installing less                                                             [#################################################] 100%
( 63/137) installing gzip                                                             [#################################################] 100%
( 64/137) installing licenses                                                         [#################################################] 100%
( 65/137) installing expat                                                            [#################################################] 100%
( 66/137) installing libarchive                                                       [#################################################] 100%
( 67/137) installing p11-kit                                                          [#################################################] 100%
( 68/137) installing ca-certificates-utils                                            [#################################################] 100%
( 69/137) installing ca-certificates-mozilla                                          [#################################################] 100%
( 70/137) installing ca-certificates                                                  [#################################################] 100%
( 71/137) installing brotli                                                           [#################################################] 100%
( 72/137) installing libidn2                                                          [#################################################] 100%
( 73/137) installing libnghttp2                                                       [#################################################] 100%
( 74/137) installing libpsl                                                           [#################################################] 100%
( 75/137) installing libssh2                                                          [#################################################] 100%
( 76/137) installing curl                                                             [#################################################] 100%
( 77/137) installing npth                                                             [#################################################] 100%
( 78/137) installing libksba                                                          [#################################################] 100%
( 79/137) installing libassuan                                                        [#################################################] 100%
( 80/137) installing libsecret                                                        [#################################################] 100%
Optional dependencies for libsecret
    org.freedesktop.secrets: secret storage backend
( 81/137) installing pinentry                                                         [#################################################] 100%
Optional dependencies for pinentry
    gtk2: gtk2 backend
    qt5-base: qt backend
    gcr: gnome3 backend
( 82/137) installing nettle                                                           [#################################################] 100%
( 83/137) installing gnutls                                                           [#################################################] 100%
Optional dependencies for gnutls
    guile: for use with Guile bindings [pending]
( 84/137) installing sqlite                                                           [#################################################] 100%
( 85/137) installing gnupg                                                            [#################################################] 100%
Optional dependencies for gnupg
    libldap: gpg2keys_ldap [installed]
    libusb-compat: scdaemon
    pcsclite: scdaemon
( 86/137) installing gpgme                                                            [#################################################] 100%
( 87/137) installing pacman-mirrorlist                                                [#################################################] 100%
( 88/137) installing archlinux-keyring                                                [#################################################] 100%
( 89/137) installing pacman                                                           [#################################################] 100%
Optional dependencies for pacman
    perl-locale-gettext: translation support in makepkg-template
( 90/137) installing device-mapper                                                    [#################################################] 100%
( 91/137) installing popt                                                             [#################################################] 100%
( 92/137) installing json-c                                                           [#################################################] 100%
( 93/137) installing argon2                                                           [#################################################] 100%
( 94/137) installing cryptsetup                                                       [#################################################] 100%
( 95/137) installing dbus                                                             [#################################################] 100%
( 96/137) installing libmnl                                                           [#################################################] 100%
( 97/137) installing libnftnl                                                         [#################################################] 100%
( 98/137) installing libnl                                                            [#################################################] 100%
( 99/137) installing libpcap                                                          [#################################################] 100%
(100/137) installing libnfnetlink                                                     [#################################################] 100%
(101/137) installing libnetfilter_conntrack                                           [#################################################] 100%
(102/137) installing iptables                                                         [#################################################] 100%
(103/137) installing kbd                                                              [#################################################] 100%
(104/137) installing libelf                                                           [#################################################] 100%
(105/137) installing systemd                                                          [#################################################] 100%
Initializing machine ID from random generator.
Creating group sys with gid 3.
Creating group mem with gid 8.
Creating group ftp with gid 11.
Creating group mail with gid 12.
Creating group log with gid 19.
Creating group smmsp with gid 25.
Creating group proc with gid 26.
Creating group games with gid 50.
Creating group lock with gid 54.
Creating group network with gid 90.
Creating group floppy with gid 94.
Creating group scanner with gid 96.
Creating group power with gid 98.
Creating group adm with gid 999.
Creating group wheel with gid 998.
Creating group utmp with gid 997.
Creating group audio with gid 996.
Creating group disk with gid 995.
Creating group input with gid 994.
Creating group kmem with gid 993.
Creating group kvm with gid 992.
Creating group lp with gid 991.
Creating group optical with gid 990.
Creating group render with gid 989.
Creating group sgx with gid 988.
Creating group storage with gid 987.
Creating group tty with gid 5.
Creating group uucp with gid 986.
Creating group video with gid 985.
Creating group users with gid 984.
Creating group systemd-journal with gid 983.
Creating group rfkill with gid 982.
Creating group bin with gid 1.
Creating user bin (n/a) with uid 1 and gid 1.
Creating group daemon with gid 2.
Creating user daemon (n/a) with uid 2 and gid 2.
Creating user mail (n/a) with uid 8 and gid 12.
Creating user ftp (n/a) with uid 14 and gid 11.
Creating group http with gid 33.
Creating user http (n/a) with uid 33 and gid 33.
Creating group nobody with gid 65534.
Creating user nobody (Nobody) with uid 65534 and gid 65534.
Creating group dbus with gid 81.
Creating user dbus (System Message Bus) with uid 81 and gid 81.
Creating group systemd-journal-remote with gid 981.
Creating user systemd-journal-remote (systemd Journal Remote) with uid 981 and gid 981.
Creating group systemd-network with gid 980.
Creating user systemd-network (systemd Network Management) with uid 980 and gid 980.
Creating group systemd-oom with gid 979.
Creating user systemd-oom (systemd Userspace OOM Killer) with uid 979 and gid 979.
Creating group systemd-resolve with gid 978.
Creating user systemd-resolve (systemd Resolver) with uid 978 and gid 978.
Creating group systemd-timesync with gid 977.
Creating user systemd-timesync (systemd Time Synchronization) with uid 977 and gid 977.
Creating group systemd-coredump with gid 976.
Creating user systemd-coredump (systemd Core Dumper) with uid 976 and gid 976.
Creating group uuidd with gid 68.
Creating user uuidd (n/a) with uid 68 and gid 68.
Created symlink /etc/systemd/system/getty.target.wants/getty@tty1.service → /usr/lib/systemd/system/getty@.service.
Created symlink /etc/systemd/system/multi-user.target.wants/remote-fs.target → /usr/lib/systemd/system/remote-fs.target.
:: Append 'init=/usr/lib/systemd/systemd' to your kernel command line in your
   bootloader to replace sysvinit with systemd, or install systemd-sysvcompat
Optional dependencies for systemd
    libmicrohttpd: remote journald capabilities
    quota-tools: kernel-level quota management
    systemd-sysvcompat: symlink package to provide sysvinit binaries [pending]
    polkit: allow administration as unprivileged user
    curl: machinectl pull-tar and pull-raw [installed]
    libfido2: unlocking LUKS2 volumes with FIDO2 token
    tpm2-tss: unlocking LUKS2 volumes with TPM2
(106/137) installing systemd-sysvcompat                                               [#################################################] 100%
(107/137) installing iputils                                                          [#################################################] 100%
(108/137) installing iproute2                                                         [#################################################] 100%
Optional dependencies for iproute2
    db: userspace arp daemon [pending]
    libcap: tipc [installed]
    linux-atm: ATM support
(109/137) installing base                                                             [#################################################] 100%
Optional dependencies for base
    linux: bare metal support [pending]
(110/137) installing m4                                                               [#################################################] 100%
(111/137) installing diffutils                                                        [#################################################] 100%
(112/137) installing gdbm                                                             [#################################################] 100%
(113/137) installing db                                                               [#################################################] 100%
(114/137) installing perl                                                             [#################################################] 100%
(115/137) installing autoconf                                                         [#################################################] 100%
(116/137) installing automake                                                         [#################################################] 100%
(117/137) installing elfutils                                                         [#################################################] 100%
(118/137) installing binutils                                                         [#################################################] 100%
(119/137) installing bison                                                            [#################################################] 100%
(120/137) installing fakeroot                                                         [#################################################] 100%
(121/137) installing flex                                                             [#################################################] 100%
(122/137) installing libmpc                                                           [#################################################] 100%
(123/137) installing gcc                                                              [#################################################] 100%
Optional dependencies for gcc
    lib32-gcc-libs: for generating code for 32-bit ABI
(124/137) installing groff                                                            [#################################################] 100%
Optional dependencies for groff
    netpbm: for use together with man -H command interaction in browsers
    psutils: for use together with man -H command interaction in browsers
    libxaw: for gxditview
    perl-file-homedir: for use with glilypond
(125/137) installing libtool                                                          [#################################################] 100%
(126/137) installing texinfo                                                          [#################################################] 100%
(127/137) installing gc                                                               [#################################################] 100%
(128/137) installing guile                                                            [#################################################] 100%
(129/137) installing make                                                             [#################################################] 100%
(130/137) installing patch                                                            [#################################################] 100%
Optional dependencies for patch
    ed: for patch -e functionality
(131/137) installing pkgconf                                                          [#################################################] 100%
(132/137) installing sudo                                                             [#################################################] 100%
(133/137) installing which                                                            [#################################################] 100%
(134/137) installing mkinitcpio-busybox                                               [#################################################] 100%
(135/137) installing mkinitcpio                                                       [#################################################] 100%
Optional dependencies for mkinitcpio
    gzip: Use gzip compression for the initramfs image [installed]
    xz: Use lzma or xz compression for the initramfs image [installed]
    bzip2: Use bzip2 compression for the initramfs image [installed]
    lzop: Use lzo compression for the initramfs image
    lz4: Use lz4 compression for the initramfs image [installed]
    mkinitcpio-nfs-utils: Support for root filesystem on NFS
(136/137) installing linux                                                            [#################################################] 100%
Optional dependencies for linux
    crda: to set the correct wireless channels of your country
    linux-firmware: firmware images needed for some devices [pending]
(137/137) installing linux-firmware                                                   [#################################################] 100%
:: Running post-transaction hooks...
( 1/14) Creating system user accounts...
( 2/14) Updating journal message catalog...
( 3/14) Reloading system manager configuration...
  Skipped: Running in chroot.
( 4/14) Updating udev hardware database...
( 5/14) Applying kernel sysctl settings...
  Skipped: Running in chroot.
( 6/14) Creating temporary files...
( 7/14) Reloading device manager configuration...
  Skipped: Running in chroot.
( 8/14) Arming ConditionNeedsUpdate...
( 9/14) Rebuilding certificate stores...
(10/14) Updating module dependencies...
(11/14) Updating linux initcpios...
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> Starting build: 5.14.5-arch1-1
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [filesystems]
  -> Running build hook: [keyboard]
  -> Running build hook: [fsck]
==> ERROR: file not found: `fsck.xfs'
==> WARNING: No fsck helpers found. fsck will not be run on boot.
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: /boot/initramfs-linux.img
==> WARNING: errors were encountered during the build. The image may not be complete.
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
==> Starting build: 5.14.5-arch1-1
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: aic94xx
==> WARNING: Possibly missing firmware for module: wd719x
==> WARNING: Possibly missing firmware for module: xhci_pci
  -> Running build hook: [filesystems]
  -> Running build hook: [keyboard]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: /boot/initramfs-linux-fallback.img
==> Image generation successful
error: command failed to execute correctly
(12/14) Reloading system bus configuration...
  Skipped: Running in chroot.
(13/14) Warn about old perl modules
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
  LANGUAGE = (unset),
  LC_ALL = (unset),
  LC_MESSAGES = "",
  LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
(14/14) Updating the info directory file...
pacstrap /mnt base base-devel linux linux-firmware  7.21s user 24.50s system 9% cpu 5:47.75 total
root@archiso ~ #

生成 fstab 文件

root@archiso ~ # genfstab -U /mnt >> /mnt/etc/fstab
root@archiso ~ # cat /mnt/etc/fstab
# Static information about the filesystems.
# See fstab(5) for details.


# <file system> <dir> <type> <options> <dump> <pass>
# /dev/sda2
UUID=2f235c04-a6a2-4652-9b1f-fea0f086dc5f  /           xfs         rw,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota     0 1


# /dev/sda1
UUID=AE66-4B21        /boot       vfat        rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro  0 2


root@archiso ~ #

切换至安装好的 Arch

root@archiso ~ # arch-chroot /mnt
[root@archiso /]#

安装编辑器 vim,修改 /etc/locale.gen,取消注释下面这两行配置

en_US.UTF-8 UTF-8

zh_CN.UTF-8 UTF-8

[root@archiso /]# pacman -S vim
resolving dependencies...
looking for conflicting packages...


Packages (3) gpm-1.20.7.r38.ge82d1a6-4  vim-runtime-8.2.3441-1  vim-8.2.3441-1


Total Download Size:    8.38 MiB
Total Installed Size:  34.97 MiB


:: Proceed with installation? [Y/n] y
:: Retrieving packages...
 vim-runtime-8.2.3441-1-x86_64                              6.4 MiB  1150 KiB/s 00:06 [#################################################] 100%
 vim-8.2.3441-1-x86_64                                   1844.0 KiB   406 KiB/s 00:05 [#################################################] 100%
 gpm-1.20.7.r38.ge82d1a6-4-x86_64                         139.5 KiB   105 KiB/s 00:01 [#################################################] 100%
 Total (3/3)                                                8.4