]> git.ipfire.org Git - thirdparty/hostap.git/commit
tests: Make /etc/alternatives work in VM
authorJohannes Berg <johannes.berg@intel.com>
Sat, 2 Feb 2019 22:38:35 +0000 (23:38 +0100)
committerJouni Malinen <j@w1.fi>
Tue, 5 Feb 2019 21:51:37 +0000 (23:51 +0200)
commite5a410f4726cc978781692a7eb9a2e2ceee9c076
treeaa96f6757af6765a3639bb9c4ab4115efc13a986
parent4b1cc1391426e7727c5d29aa0f0f10b8615ce2cd
tests: Make /etc/alternatives work in VM

In recent Debian versions, ebtables is an alias managed by
the alternatives(8) mechanism. This means /usr/sbin/ebtables
is a symlink to /etc/alternatives/ebtables, which in turn
links to the real binary.

As we mount a tmpfs over /etc, we cannot access this.

Fix this by bind-mounting the real /etc to /tmp/etc and
adding a symlink from /etc/alternatives to this.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
tests/hwsim/vm/inside.sh