Skip to content

Commit

Permalink
vagrant: fixed build
Browse files Browse the repository at this point in the history
Signed-off-by: Vitaly Chipounov <vitaly@chipounov.fr>
  • Loading branch information
vitalych committed Mar 3, 2024
1 parent bdd5808 commit a938575
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion vagrant/Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

$boxes = ["debian/bullseye64", "generic/ubuntu2004", "alvistack/ubuntu-22.04"]
$boxes = ["debian/bullseye64", "generic/ubuntu2004", "generic/ubuntu2204"]

Vagrant.configure("2") do |config|
$boxes.to_enum.with_index(1).each do |box,i|
Expand Down
6 changes: 6 additions & 0 deletions vagrant/provision-root.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ fi

apt-get -y install git gcc python3 python3-dev python3-venv

# The Ubuntu image doesn't have enough space on the boot partition to install some packages.
# Cleanup unused kernels.
if uname -a | grep -q ubuntu2004; then
apt-get -y remove linux-image-5.4.0-42-generic linux-headers-5.4.0-42-generic linux-modules-5.4.0-42-generic
fi

chown -R vagrant:vagrant /mnt/disk/

su -c "source /vagrant/provision-user.sh" vagrant
2 changes: 1 addition & 1 deletion vagrant/provision-user.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ cd s2e-env

python3 -m venv venv
. venv/bin/activate
pip install --upgrade pip
pip install --upgrade pip wheel

pip install .

Expand Down

0 comments on commit a938575

Please sign in to comment.