Skip to content

Commit

Permalink
make build system more robust - in failing :) (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
oetiker authored Jun 17, 2020
1 parent afc35de commit 587fbfb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ jobs:
- name: Build Image
id: build_image
run: |
set -xe
cd ubuntu
tar=lx-ubuntu-${{ matrix.RELEASE }}.tar
tag=release:$$
Expand Down
4 changes: 1 addition & 3 deletions ubuntu/helpers/build.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/bin/sh
set -e
set -x
set -ex
echo Installing Ubuntu $UBUNTU_RELEASE
export DEBIAN_FRONTEND=noninteractive
apt-get update
Expand Down Expand Up @@ -53,7 +52,6 @@ cp locale /etc/default/locale
# make sure we get fresh ssh keys on first boot
/bin/rm -f -v /etc/ssh/ssh_host_*_key*
cp regenerate_ssh_host_keys.service /etc/systemd/system
systemctl daemon-reload
systemctl enable regenerate_ssh_host_keys
# Remove the divert that disables services
rm -f /sbin/initctl
Expand Down
3 changes: 2 additions & 1 deletion ubuntu/helpers/regenerate_ssh_host_keys.service
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ ExecStart=/usr/bin/ssh-keygen -A -v
ExecStartPost=/bin/systemctl disable regenerate_ssh_host_keys

[Install]
WantedBy=multi-user.target
WantedBy=multi-user.target
# last line

0 comments on commit 587fbfb

Please sign in to comment.