diff options
author | Lars Wirzenius <liw@liw.fi> | 2019-12-07 12:54:52 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2019-12-07 12:54:52 +0200 |
commit | 3584828db6d427dd49052d6ee6905fbf2320a5e7 (patch) | |
tree | 5d1eb0e72bc5898395ce652590ca7c7eb3cd196a | |
parent | 92c7978d559123b275c603c893ee5a9ae8172037 (diff) | |
download | base-image-specs-3584828db6d427dd49052d6ee6905fbf2320a5e7.tar.gz |
Change: lock root password, but don't delete it
-rw-r--r-- | sid.yml | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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 |