mirror of
https://bitbucket.org/gwenhael/pine64-slackware.git
synced 2024-12-25 09:58:38 +01:00
preconfigure authorized ssh key
This commit is contained in:
parent
eba1f84632
commit
98007e1b61
1 changed files with 4 additions and 0 deletions
|
@ -25,6 +25,7 @@ LINUX_VERSION=${LINUX_VERSION:-"latest"}
|
|||
SLACKWARE_VERSION=${SLACKWARE_VERSION:-"current"}
|
||||
SLACKWARE_MINIROOTFS_VERSION=${SLACKWARE_MINIROOTFS_VERSION:-"30Aug18"}
|
||||
|
||||
SSH_PUB_KEY=${SSH_PUB_KEY:-~/.ssh/id_ed25519.pub}
|
||||
|
||||
echo "Going further will wipe ${SD_DEV} and you _will_ lose all data on it !"
|
||||
echo "/!\\ LAST CHANCE TO HIT Ctrl-C /!\\"
|
||||
|
@ -75,6 +76,9 @@ EOF
|
|||
|
||||
cp $CWD/pine64-kernel.SlackBuild $SD_MOUNT_POINT/root
|
||||
|
||||
mkdir -p $SD_MOUNT_POINT/root/.ssh/
|
||||
cp $SSH_PUB_KEY $SD_MOUNT_POINT/root/.ssh/authorized_keys
|
||||
|
||||
umount $SD_MOUNT_POINT/bootenv
|
||||
umount $SD_MOUNT_POINT
|
||||
sync
|
||||
|
|
Loading…
Reference in a new issue