diff options
author | Christian Breunig <christian@breunig.cc> | 2025-03-17 20:30:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-17 20:30:34 +0100 |
commit | 30d687b5dc5ced1b302072bc575492ea817b9b5a (patch) | |
tree | 377c433be5af127805047bcfbe97e4e76f849103 | |
parent | 1d1105ccfde92ea729d10b93dfa3f4f985f0000f (diff) | |
parent | 452b17eaca4fc458c420e2cb94ee84a32cf8a292 (diff) | |
download | vyos-build-30d687b5dc5ced1b302072bc575492ea817b9b5a.tar.gz vyos-build-30d687b5dc5ced1b302072bc575492ea817b9b5a.zip |
Merge pull request #933 from dmbaturin/T7217-remove-dropbear-keys
hooks: T7217: remove Dropbear SSH host keys at image build time
-rw-r--r-- | data/live-build-config/hooks/live/100-remove-dropbear-keys.chroot | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/data/live-build-config/hooks/live/100-remove-dropbear-keys.chroot b/data/live-build-config/hooks/live/100-remove-dropbear-keys.chroot new file mode 100644 index 00000000..20d8a670 --- /dev/null +++ b/data/live-build-config/hooks/live/100-remove-dropbear-keys.chroot @@ -0,0 +1,7 @@ +#!/bin/sh + +# Delete Dropbear SSH keys that might be generated +# by postinst scripts +# to prevent non-unique keys from appearing in images + +rm -f /etc/dropbear/dropbear_*_host_key |