Commit 1703b92e authored by Pierre Schmitz's avatar Pierre Schmitz
Browse files

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
parent cfd81ab5
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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"