Skip to content

Commit

Permalink
Increase stack on OpenBSD and include bash
Browse files Browse the repository at this point in the history
  • Loading branch information
mtelvers committed Nov 25, 2024
1 parent c8f7092 commit 284ef5c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
13 changes: 13 additions & 0 deletions qemu/busybox.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#cloud-config
users:
- name: opam
groups: [sudo]
sudo: ALL=(ALL) NOPASSWD:ALL
shell: /bin/bash
ssh_authorized_keys:
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIA09mqKPpMJ4tyOpl4l+KTTl1DqjFT2mRD29HW8VwnmB root@alpha
runcmd:
- echo "AcceptEnv=*" > /etc/ssh/sshd_config.d/acceptenv.conf
- apt update
- apt upgrade -y
- poweroff
8 changes: 7 additions & 1 deletion qemu/install.site.m4
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,15 @@ echo "permit nopass keepenv :wheel" >> /etc/doas.conf

cat <<EOF >> /etc/rc.firsttime
syspatch
usermod -G staff opam
sed -i'' '/^staff:/a\\
:stacksize-cur=32M:\\\\
' /etc/login.conf
sed -i"" -e 's/rw,/rw,softdep,noatime,/g' /etc/fstab
mount -o update,noatime,softdep /home
echo "AcceptEnv=*" >> /etc/ssh/sshd_config
echo "PermitUserEnvironment=yes" >> /etc/ssh/sshd_config
pkg_add curl-- gmake gtar-- gpatch unzip-- rsync-- git
pkg_add curl-- gmake gtar-- gpatch unzip-- rsync-- git bash
/usr/local/bin/curl -L https://github.com/ocaml/opam/releases/download/2.3.0/opam-2.3.0-x86_64-openbsd -o /usr/bin/opam-2.3
chmod +x /usr/bin/opam-2.3
ln -s /usr/bin/opam-2.3 /usr/bin/opam
Expand Down

0 comments on commit 284ef5c

Please sign in to comment.