From 61b7805b4dcf7472501cb13f5179f62d0258c13a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20B=C3=A4dorf?= Date: Mon, 14 Jun 2021 22:40:19 +0200 Subject: [PATCH] Create root in nixery containers --- .drone.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index a658fc31..84ae0433 100644 --- a/.drone.yml +++ b/.drone.yml @@ -15,9 +15,8 @@ steps: - echo "Host git.b12f.io" >> ~/.ssh/config - echo " Port 2222" >> ~/.ssh/config - chmod -R 600 ~/.ssh - - id - - whoami - - cat ~/.ssh/config + # This is a hack because nixery containers contain no passwd file, which openssh wants to read + - echo "root:x:0:0:System administrator:/root:/run/current-system/sw/bin/bash" >> /etc/passwd - git clone -b devos git@git.b12f.io:pub-solar/os - cd os - git remote add devos https://github.com/divnix/devos.git @@ -41,6 +40,8 @@ steps: - echo "Host git.b12f.io" >> ~/.ssh/config - echo " Port 2222" >> ~/.ssh/config - chmod -R 600 ~/.ssh + # This is a hack because nixery containers contain no passwd file, which openssh wants to read + - echo "root:x:0:0:System administrator:/root:/run/current-system/sw/bin/bash" >> /etc/passwd - git clone -b core git@git.b12f.io:pub-solar/os - cd os - git fetch