diff options
author | Andrew Cady <d@jerkface.net> | 2016-04-27 04:31:06 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2016-04-27 04:31:06 -0400 |
commit | 1dcfdec30a13b58ef3da9b6b7ee0bea23b8e6c47 (patch) | |
tree | 01e259099e07621b69b7d5b63a73754017202532 /old-school | |
parent | 5c2065ea789df2a0c1b98b2412e5f14711c9a49b (diff) |
fix: only remove root's password on new install
Diffstat (limited to 'old-school')
-rw-r--r-- | old-school/lvm-create.sh | 4 |
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 | ||