Skip to content

Commit

Permalink
build(vm): stretch
Browse files Browse the repository at this point in the history
  • Loading branch information
2moe committed Apr 9, 2024
1 parent 4a955f2 commit aa081b2
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/vm-minimal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -260,11 +260,8 @@ jobs:
sshd_cfg=ssh/vm.sshd.conf
case ${{env.CODENAME}} {
(buster|stretch|jessie|wheezy|squeeze|lenny|etch|sarge|woody|potato|slink|hamm)
cat $sshd_cfg | sudo tee -a rootfs/etc/ssh/sshd_config
;;
(*)
sudo install -Dm600 $sshd_cfg rootfs/etc/ssh/sshd_config.d/vm.conf
;;
cat $sshd_cfg | sudo tee -a rootfs/etc/ssh/sshd_config ;;
(*) sudo install -Dm600 $sshd_cfg rootfs/etc/ssh/sshd_config.d/vm.conf ;;
}
unlink $sshd_cfg
Expand All @@ -286,6 +283,13 @@ jobs:
(mipsbe|mipsle) kernel=4kc-malta ;;
(*) kernel=${{matrix.deb_arch}} ;;
}
case ${{env.CODENAME}} {
(stretch|jessie|wheezy|squeeze|lenny|etch|sarge|woody|potato|slink|hamm)
case ${{matrix.arch}} {
(arm64|x64) kernel=${{matrix.deb_arch}} ;;
}
;;
}
sudo cp -a rootfs kernel_r
sudo systemd-nspawn -D kernel_r sh -c "apt-install linux-image-${kernel}"
Expand Down Expand Up @@ -403,7 +407,10 @@ jobs:
ssh/vm.sshconf
run: |
set -fexo pipefail
apt-install ifupdown udev fdisk parted
# fix stretch, allow failure
apt-install fdisk ||:
apt-install ifupdown udev parted
apt-install qemu-guest-agent dosfstools ||:
network_iface=${{matrix.net}}
tty_serial=${{matrix.tty}}
Expand Down

0 comments on commit aa081b2

Please sign in to comment.