mkarchroot: do not try to bind /etc/timezone from host
/etc/timezone is no longer used. We only need /etc/localtime. This fixes FS#31929
This commit is contained in:
parent
cfd81ab563
commit
1703b92e1a
|
@ -131,7 +131,7 @@ chroot_mount() {
|
|||
[[ -e "${working_dir}/run" ]] || mkdir "${working_dir}/run"
|
||||
mount -t tmpfs tmpfs "${working_dir}/run" -o mode=0755,nodev,nosuid,strictatime,size=64M
|
||||
|
||||
for host_config in resolv.conf timezone localtime; do
|
||||
for host_config in resolv.conf localtime; do
|
||||
bind_mount /etc/$host_config ro
|
||||
done
|
||||
fi
|
||||
|
@ -168,7 +168,7 @@ trap_chroot_umount () {
|
|||
[[ -n $host_mirror_path ]] && umount "${working_dir}/${host_mirror_path}"
|
||||
|
||||
if (( ! have_nspawn )); then
|
||||
for host_config in resolv.conf timezone localtime; do
|
||||
for host_config in resolv.conf localtime; do
|
||||
umount "${working_dir}/etc/${host_config}"
|
||||
done
|
||||
umount "${working_dir}/proc/sys"
|
||||
|
|
Loading…
Reference in New Issue