build fixes (#2275)

* move some install scripts to init

* handle fake-apt in init

* rename
This commit is contained in:
Aiden McClelland
2023-05-15 16:34:30 -06:00
committed by GitHub
parent f15a010e0e
commit 61445e0b56
8 changed files with 37 additions and 45 deletions

View File

@@ -94,19 +94,12 @@ main () {
return 1
fi
if ! make-ssl-cert generate-default-snakeoil --force-overwrite; then
FAIL_REASON="snakeoil cert generation failed"
return 1
fi
if ! ssh-keygen -A; then
FAIL_REASON="ssh host key generation failed"
return 1
fi
echo embassy > /etc/hostname
ln -sf /usr/lib/embassy/scripts/fake-apt /usr/local/bin/apt-get
echo start > /etc/hostname
return 0
}