Create root in nixery containers

This commit is contained in:
Benjamin Bädorf 2021-06-14 22:40:19 +02:00
parent 7e5ff25740
commit 61b7805b4d
No known key found for this signature in database
GPG key ID: 4406E80E13CD656C

View file

@ -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