summaryrefslogtreecommitdiff
path: root/old-school/lvm-create.sh
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2016-04-27 04:31:06 -0400
committerAndrew Cady <d@jerkface.net>2016-04-27 04:31:06 -0400
commit1dcfdec30a13b58ef3da9b6b7ee0bea23b8e6c47 (patch)
tree01e259099e07621b69b7d5b63a73754017202532 /old-school/lvm-create.sh
parent5c2065ea789df2a0c1b98b2412e5f14711c9a49b (diff)
fix: only remove root's password on new install
Diffstat (limited to 'old-school/lvm-create.sh')
-rw-r--r--old-school/lvm-create.sh4
1 files changed, 4 insertions, 0 deletions
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()
72 72
73 [ -x /root/sbin/mdadm ] || cp /sbin/mdadm /root/sbin/ 73 [ -x /root/sbin/mdadm ] || cp /sbin/mdadm /root/sbin/
74 [ -e /root/sbin/mdadm-dup.sh ] || cp /bin/mdadm-dup.sh /root/sbin/ 74 [ -e /root/sbin/mdadm-dup.sh ] || cp /bin/mdadm-dup.sh /root/sbin/
75
76 sed -i -e 's/^root:x:/root::/' /root/etc/passwd
77 cp /patchroot/* /root/root/
78
75 true 79 true
76} 80}
77 81