summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2019-12-07 12:54:52 +0200
committerLars Wirzenius <liw@liw.fi>2019-12-07 12:54:52 +0200
commit3584828db6d427dd49052d6ee6905fbf2320a5e7 (patch)
tree5d1eb0e72bc5898395ce652590ca7c7eb3cd196a
parent92c7978d559123b275c603c893ee5a9ae8172037 (diff)
downloadbase-image-specs-3584828db6d427dd49052d6ee6905fbf2320a5e7.tar.gz
Change: lock root password, but don't delete it
-rw-r--r--sid.yml5
1 files changed, 2 insertions, 3 deletions
diff --git a/sid.yml b/sid.yml
index a1a858c..87aacc1 100644
--- a/sid.yml
+++ b/sid.yml
@@ -30,6 +30,7 @@ steps:
packages:
- linux-image-amd64
- python
+ - ssh
tag: rootfs
unless: rootfs_unpacked
@@ -39,9 +40,7 @@ steps:
- chroot: rootfs
shell: |
set -eu
- # passwd -l root
- # remove root password - temporary for dev/test
- sed -i 's/^root:[^:]*:/root::/' /etc/passwd
+ passwd -l root
echo sid > /etc/hostname
mkdir -p -m 0755 /etc/network/interfaces.d
printf 'auto eth0\niface eth0 inet dhcp\n' > /etc/network/interfaces.d/eth0