From 1dcfdec30a13b58ef3da9b6b7ee0bea23b8e6c47 Mon Sep 17 00:00:00 2001 From: Andrew Cady Date: Wed, 27 Apr 2016 04:31:06 -0400 Subject: fix: only remove root's password on new install --- old-school/lvm-create.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'old-school') diff --git a/old-school/lvm-create.sh b/old-school/lvm-create.sh index 5a7657d..7f5bea4 100644 --- a/old-school/lvm-create.sh +++ b/old-school/lvm-create.sh @@ -72,6 +72,10 @@ initialize_root_filesystem() [ -x /root/sbin/mdadm ] || cp /sbin/mdadm /root/sbin/ [ -e /root/sbin/mdadm-dup.sh ] || cp /bin/mdadm-dup.sh /root/sbin/ + + sed -i -e 's/^root:x:/root::/' /root/etc/passwd + cp /patchroot/* /root/root/ + true } -- cgit v1.2.3