Skip to content

Commit

Permalink
Adapted debirf Vagrantfile to Jammy
Browse files Browse the repository at this point in the history
  • Loading branch information
frzb committed Sep 27, 2022
1 parent 927b6d9 commit a8d9262
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions debirf/Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@


environment = {
'DEBIRF_KERNEL' => '5.3.0-29-generic',
'DEBIRF_SUITE' => 'eoan',
'DEBIRF_KERNEL' => '5.15.0-48-generic',
'DEBIRF_SUITE' => 'jammy',
'KERNEL' => '$DEBIRF_KERNEL',
'SUITE' => '$DEBIRF_SUITE',
'RELEASE' => '$(date +"%Y%m%d")',
Expand All @@ -38,7 +38,6 @@ fi
SCRIPT


Vagrant.configure(2) do |config|
# Dynamically allign number of core of the built VM with the host
# to speed up things as much as possible.
Expand All @@ -53,20 +52,18 @@ Vagrant.configure(2) do |config|
end

config.vm.define "make-rootfs" do |machine|
machine.vm.box = "ubuntu/eoan64"
machine.vm.box = "ubuntu/jammy64"
machine.vm.hostname = "make-rootfs"
machine.vm.synced_folder "./", "/mnt"
# FIXME: Have a look at this Kernel version issue in general.
# Take care that the built box is running on the most recent kernel.
# For that we have to reboot the Vagrant box which is achieved by
# the reload-plugin.
config.vm.provision "shell", inline: 'apt update; apt upgrade --yes'
config.vm.provision "shell", inline: 'source /vagrant/profiles/coinboot/debirf.conf && apt install linux-image-$DEBIRF_KERNEL virtualbox-guest-dkms --yes', env: environment
config.vm.provision "shell", inline: 'source /vagrant/profiles/coinboot/debirf.conf && apt install linux-image-$DEBIRF_KERNEL --yes', env: environment
config.vm.provision :reload
config.vm.provision "shell", inline: $setup_docker
config.vm.provision "shell", inline: 'env && /mnt/build_and_run_images', env: environment
# Dynamically allign number of core of the built VM with the host
# to speed up things as much as possible.
end
end

0 comments on commit a8d9262

Please sign in to comment.