X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=build.sh;h=a68e9d42f846c51278f7e54bf8d26fd141e86455;hb=c6e4ceb4418b5dd0924d55949b41804d2e4dc035;hp=29aa5bf0d60eec71fd66395a0e361d0971d9cd38;hpb=e446dbf789817429d3648fec50bb0c7e1b605e43;p=bootcd.git diff --git a/build.sh b/build.sh index 29aa5bf..a68e9d4 100755 --- 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 + # 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"