diff options
author | Andrew Cady <d@jerkface.net> | 2016-04-22 13:45:13 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2016-04-22 18:50:58 -0400 |
commit | f609b54511e04770950c9fbf6407977828f4d426 (patch) | |
tree | 27f2d6a78823af72c20520c6ed721c457b9d7460 /initramfs-tools/scripts/samizdat | |
parent | 95973675ae78e9c9eaefb4472072275493371cdf (diff) |
add some scripts into root's homedir
Diffstat (limited to 'initramfs-tools/scripts/samizdat')
-rw-r--r-- | initramfs-tools/scripts/samizdat | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/initramfs-tools/scripts/samizdat b/initramfs-tools/scripts/samizdat index 2bc16f8..374d95d 100644 --- a/initramfs-tools/scripts/samizdat +++ b/initramfs-tools/scripts/samizdat | |||
@@ -9,8 +9,15 @@ mountroot() | |||
9 | bootmenu | 9 | bootmenu |
10 | bootwait root-mounted | 10 | bootwait root-mounted |
11 | chvt 1 | 11 | chvt 1 |
12 | patchroot | ||
13 | } | ||
12 | 14 | ||
15 | patchroot() | ||
16 | { | ||
17 | echo -n 'Patching root... ' >&2 | ||
13 | sed -i -e 's/^root:x:/root::/' /root/etc/passwd | 18 | sed -i -e 's/^root:x:/root::/' /root/etc/passwd |
19 | cp /patchroot/* /root/root/ | ||
20 | echo 'done.' >&2 | ||
14 | } | 21 | } |
15 | 22 | ||
16 | samizdat_install_udev_rules() | 23 | samizdat_install_udev_rules() |