pacman 7.0.0 lanlock issue in systemd-nspawn containers

Description:

pacman emits error message under systemd-nspawn containers.

Additional info:

  • package version(s): pacman=7.0.0.r3.g7736133-1
  • config and/or log files: nil
  • link to upstream bug report, if any: nil

Steps to reproduce:

  1. machinectl shell user@host
  2. sudo pacman -Syyu
  3. got something similar to:
:: Synchronizing package databases...
 core                        117.7 KiB  1472 KiB/s 00:00 [##############################] 100%
 extra                         7.5 MiB  11.4 MiB/s 00:01 [##############################] 100%
error: restricting filesystem access failed because landlock is not supported by the kernel!
:: Starting full system upgrade...
 there is nothing to do

note the error message error: restricting filesystem access failed because landlock is not supported by the kernel!.