From c5cfce73cbda802a27ae22c850a9e87df73a2ab8 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Tue, 26 Jan 2021 12:53:10 -0800 Subject: [PATCH] Revert "Make sure Vagrant works with SELinux enabled" This reverts commit 5ad831fdf0eebb22271e811e6e9124cf88f67842 (part of #2395). This block is five years old and predates multiple Ubuntu upgrades and our switch from LXC to Docker; now it reportedly breaks provisioning on SELinux systems instead of fixing it. Signed-off-by: Anders Kaseorg --- Vagrantfile | 6 ------ 1 file changed, 6 deletions(-) diff --git a/Vagrantfile b/Vagrantfile index c644593c8a..0eee03f278 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -158,12 +158,6 @@ sudo dpkg --purge landscape-client landscape-common ubuntu-release-upgrader-core sudo dpkg-divert --add --rename /etc/default/motd-news sudo sh -c 'echo ENABLED=0 > /etc/default/motd-news' -# If the host is running SELinux remount the /sys/fs/selinux directory as read only, -# needed for apt-get to work. -if [ -d "/sys/fs/selinux" ]; then - sudo mount -o remount,ro /sys/fs/selinux -fi - # Set default locale, this prevents errors if the user has another locale set. if ! grep -q 'LC_ALL=en_US.UTF-8' /etc/default/locale; then echo "LC_ALL=en_US.UTF-8" | sudo tee -a /etc/default/locale