From 3584828db6d427dd49052d6ee6905fbf2320a5e7 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sat, 7 Dec 2019 12:54:52 +0200 Subject: Change: lock root password, but don't delete it --- sid.yml | 5 ++--- 1 file 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 -- cgit v1.2.1