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 | |
parent | 5c2065ea789df2a0c1b98b2412e5f14711c9a49b (diff) |
fix: only remove root's password on new install
-rw-r--r-- | initramfs-tools/scripts/samizdat | 9 | ||||
-rw-r--r-- | old-school/lvm-create.sh | 4 |
2 files changed, 4 insertions, 9 deletions
diff --git a/initramfs-tools/scripts/samizdat b/initramfs-tools/scripts/samizdat index 8265c45..232e3ac 100644 --- a/initramfs-tools/scripts/samizdat +++ b/initramfs-tools/scripts/samizdat | |||
@@ -10,15 +10,6 @@ mountroot() | |||
10 | bootmenu | 10 | bootmenu |
11 | bootwait root-mounted | 11 | bootwait root-mounted |
12 | chvt 1 | 12 | chvt 1 |
13 | patchroot | ||
14 | } | ||
15 | |||
16 | patchroot() | ||
17 | { | ||
18 | echo -n 'Patching root... ' >&2 | ||
19 | sed -i -e 's/^root:x:/root::/' /root/etc/passwd | ||
20 | cp /patchroot/* /root/root/ | ||
21 | echo 'done.' >&2 | ||
22 | } | 13 | } |
23 | 14 | ||
24 | samizdat_install_udev_rules() | 15 | samizdat_install_udev_rules() |
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 | ||