diff --git a/debian-uncloud-image.sh b/debian-uncloud-image.sh index a3d462b..d696a72 100755 --- a/debian-uncloud-image.sh +++ b/debian-uncloud-image.sh @@ -144,5 +144,9 @@ rm -f /var/lib/systemd/random-seed # Remove temporary files and reclaim freed disk space. run_root apt-get clean +# FIXME: add fnux's SSH key for testing purposes. +mkdir -p /mnt/root/.ssh +curl https://key.wf/fnux > /mnt/root/.ssh/authorized_keys + # Make sure everything is written to disk before exiting. sync diff --git a/fedora-uncloud-image.sh b/fedora-uncloud-image.sh index a60d687..795db33 100755 --- a/fedora-uncloud-image.sh +++ b/fedora-uncloud-image.sh @@ -146,5 +146,9 @@ rm -f /var/lib/systemd/random-seed # Note: build logs could be removed as well. run_root dnf clean all +# FIXME: add fnux's SSH key for testing purposes. +mkdir -p /mnt/root/.ssh +curl https://key.wf/fnux > /mnt/root/.ssh/authorized_keys + # Make sure everything is written to disk before exiting. sync diff --git a/ubuntu-unclound-image.sh b/ubuntu-unclound-image.sh index bfd5bc0..54e933f 100755 --- a/ubuntu-unclound-image.sh +++ b/ubuntu-unclound-image.sh @@ -141,5 +141,9 @@ rm -f /var/lib/systemd/random-seed # Remove temporary files and reclaim freed disk space. run_root apt-get clean +# FIXME: add fnux's SSH key for testing purposes. +mkdir -p /mnt/root/.ssh +curl https://key.wf/fnux > /mnt/root/.ssh/authorized_keys + # Make sure everything is written to disk before exiting. sync