You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

24 lines
815 B

MENDER_COMPRESS_DISK_IMAGE="none"
MENDER_ARTIFACT_COMPRESSION="none"
# Install the mender-client
MENDER_CLIENT_INSTALL="y"
# Enable sshd
function enable_sshd() {
log_warn "Enabling sshd by default"
touch work/boot/ssh
}
PLATFORM_MODIFY_HOOKS+=(enable_sshd)
# Allow root ssh logins
function allow_root_ssh_logins() {
log_warn "Allowing ssh root logins"
echo "PermitRootLogin yes" >> work/rootfs/etc/ssh/sshd_config
}
PLATFORM_MODIFY_HOOKS+=(allow_root_ssh_logins)
# Configure the ssh key permissions in the overlay
function set_root_ssh_permissions() {
sudo chown -R root:root work/rootfs/root
sudo chmod 755 work/rootfs/root
sudo chmod 700 work/rootfs/root/.ssh
sudo chmod 600 work/rootfs/root/.ssh/authorized_keys
}
OVERLAY_MODIFY_HOOKS+=(set_root_ssh_permissions)