Commit 13022754 authored by Tom Gundersen's avatar Tom Gundersen Committed by Pierre Schmitz
Browse files

mkarchroot: do not create /etc/mtab



As of filesystem-2011.12 this is not needed anylonger, and indeed blocks the
chroot from being upgraded. As a workaround, recreating the chroot fixes the
problem.

Fixes FS#27640.

Reported-by: default avatarAndrea Scarpino <andrea@archlinux.org>
Signed-off-by: default avatarTom Gundersen <teg@jklm.no>
Signed-off-by: default avatarPierre Schmitz <pierre@archlinux.de>
parent 594f9726
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -126,7 +126,6 @@ chroot_mount() {
}

copy_hostconf () {
	chroot "${working_dir}" /bin/findmnt -rnu -o SOURCE,TARGET,FSTYPE,OPTIONS > "${working_dir}/etc/mtab"
	cp /etc/resolv.conf "${working_dir}/etc/resolv.conf"
	echo "Server = ${host_mirror}" > ${working_dir}/etc/pacman.d/mirrorlist