Skip to content
Snippets Groups Projects

fix(arch-nspawn): add --timezone=off to avoid pollute build environment

Merged Celeste Liu requested to merge coelacanthus/devtools:fix/timezone-pollution into master
  1. Nov 09, 2024
    • Celeste Liu's avatar
      fix(arch-nspawn): add --timezone=off to avoid pollute build environment · 5c0f8d37
      Celeste Liu authored
      
      From systemd-nspawn(1),
      
      	--timezone=
      		Configures how /etc/localtime inside of the container (i.e. local timezone synchronization from host to container) shall be handled. Takes one of "off", "copy", "bind", "symlink", "delete" or "auto". If set to "off" the /etc/localtime file in the container
      		is left as it is included in the image, and neither modified nor bind mounted over. If set to "copy" the /etc/localtime file of the host is copied into the container. Similarly, if "bind" is used, the file is bind mounted from the host into the container. If
      		set to "symlink", a symlink is created pointing from /etc/localtime in the container to the timezone file in the container that matches the timezone setting on the host. If set to "delete", the file in the container is deleted, should it exist. If set to
      		"auto" and the /etc/localtime file of the host is a symlink, then "symlink" mode is used, and "copy" otherwise, except if the image is read-only in which case "bind" is used instead. Defaults to "auto".
      
      		Added in version 239.
      
      After this commit, we need to recreate all build environment to clean up
      pollution already existed.
      
      resolve #250
      
      Signed-off-by: default avatarCeleste Liu <CoelacanthusHex@gmail.com>
      Unverified
      5c0f8d37
Loading