summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--initramfs-tools/scripts/samizdat9
-rw-r--r--old-school/lvm-create.sh4
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
16patchroot()
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
24samizdat_install_udev_rules() 15samizdat_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