Add HAL, do not download /usr/src every time.

This commit is contained in:
Samuel Aubertin
2022-09-15 14:52:12 +02:00
parent b7fc6a248f
commit 406607ee98
12 changed files with 242 additions and 31 deletions

View File

@@ -10,6 +10,14 @@ Vagrant.configure("2") do |config|
config.ssh.extra_args = "-tt"
config.ssh.sudo_command = "doas env %c"
config.vm.synced_folder ".", "/vagrant", disabled: true
config.vm.synced_folder "./src/", "/root/trusting-make", type: "rsync",
:rsync__args => ["-a", "-e 'ssh -T -c arcfour -o Compression=no -x'"],
:rsync__rsync_path => "doas rsync",
:rsync__chown => false
config.vm.synced_folder "./openbsd_src/", "/usr/src", type: "rsync",
:rsync__args => ["-a", "-e 'ssh -T -c arcfour -o Compression=no -x'"],
:rsync__rsync_path => "doas rsync",
:rsync__chown => false
config.vm.provision "trusting-make", type: "shell" do |s|
s.inline = "echo hw.smt=1 >> /etc/sysctl.conf; \
echo vm.malloc_conf= >> /etc/sysctl.conf; \
@@ -20,13 +28,12 @@ Vagrant.configure("2") do |config|
sysctl kern.shminfo.shmmax=335544320; \
sysctl kern.shminfo.shmseg=1280; \
pkg_add -u; \
pkg_add git htop coreutils base64 tmux vim--no_x11; \
cd /usr; rm -rf src; git clone --depth 1 https://github.com/openbsd/src src; \
pkg_add git htop coreutils base64 radare2 vim--no_x11; \
"
end
config.vm.provider "libvirt" do |l|
l.cpus = 8
l.memory = 8192
l.cpus = 4
l.memory = 2048
# l.uri = 'qemu:///system'
end
end