#!/bin/bash set -euo pipefail if [ ! -e /root/.ssh/authorized_keys ]; then if mount -r LABEL=v-i-config /mnt; then if [ -e /mnt/authorized_keys ]; then cp /mnt/authorized_keys /root/.ssh/authorized_keys fi umount /mnt fi fi