git://git.onelab.eu
/
bootcd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
bc41f5d
)
open early ssh access to myplc's debug key
author
Thierry Parmentelat
<thierry.parmentelat@inria.fr>
Tue, 23 Jun 2015 11:21:59 +0000
(13:21 +0200)
committer
Thierry Parmentelat
<thierry.parmentelat@inria.fr>
Tue, 23 Jun 2015 11:21:59 +0000
(13:21 +0200)
build.sh
patch
|
blob
|
history
diff --git
a/build.sh
b/build.sh
index
29aa5bf
..
a68e9d4
100755
(executable)
--- a/
build.sh
+++ b/
build.sh
@@
-353,6
+353,13
@@
EOF
# build/passwd copied out by prep.sh
sed -e "s@^root:[^:]*:\(.*\)@root:$ROOT_PASSWORD:\1@" ${VARIANT}/passwd >$OVERLAY/etc/passwd
# build/passwd copied out by prep.sh
sed -e "s@^root:[^:]*:\(.*\)@root:$ROOT_PASSWORD:\1@" ${VARIANT}/passwd >$OVERLAY/etc/passwd
+ # recent bootCDs rely on a standard systemd startup sequence
+ # so allow debug key to enter in this context whenever that makes sense
+ mkdir -p $OVERLAY/root/.ssh
+ chmod 700 $OVERLAY/root/.ssh
+ cp $PLC_DEBUG_SSH_KEY_PUB $OVERLAY/root/.ssh/authorized_keys
+ chmod 600 $OVERLAY/root/.ssh/authorized_keys
+
# Install node configuration file (e.g., if node has no floppy disk or USB slot)
if [ -f "$NODE_CONFIGURATION_FILE" ] ; then
echo "* Installing node configuration file $NODE_CONFIGURATION_FILE -> /usr/boot/plnode.txt of the bootcd image"
# Install node configuration file (e.g., if node has no floppy disk or USB slot)
if [ -f "$NODE_CONFIGURATION_FILE" ] ; then
echo "* Installing node configuration file $NODE_CONFIGURATION_FILE -> /usr/boot/plnode.txt of the bootcd image"