summaryrefslogtreecommitdiff
path: root/old-school/lvm-create.sh
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2016-04-28 00:21:24 -0400
committerAndrew Cady <d@jerkface.net>2016-04-28 00:21:24 -0400
commit3d24cae4b9897c17ddcfc4c4d8f150931d2d1f98 (patch)
tree4fab631dd40e06670469ac4ec7679fcc8079205c /old-school/lvm-create.sh
parent7cc1d2e6379fde13193f98114c1bfe4a8ec5f6d8 (diff)
more samizdat-eject fixes
also, copy samizdat-eject from the initramfs to the new rootfs (into /sbin)
Diffstat (limited to 'old-school/lvm-create.sh')
-rw-r--r--old-school/lvm-create.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/old-school/lvm-create.sh b/old-school/lvm-create.sh
index 916b888..d1ffc51 100644
--- a/old-school/lvm-create.sh
+++ b/old-school/lvm-create.sh
@@ -88,6 +88,8 @@ initialize_root_filesystem()
88 btrfs subvolume create /root/root || return 88 btrfs subvolume create /root/root || return
89 mv /gpg/gnupghome /root/root/.gnupg || return 89 mv /gpg/gnupghome /root/root/.gnupg || return
90 90
91 rmdir /root/srv
92 btrfs subvolume create /root/srv
91 rm -r /root/var/cache/apt/archives 93 rm -r /root/var/cache/apt/archives
92 btrfs subvolume create /root/var/cache/apt/archives || return 94 btrfs subvolume create /root/var/cache/apt/archives || return
93 95
@@ -95,7 +97,10 @@ initialize_root_filesystem()
95 btrfs subvolume create /root/home || return 97 btrfs subvolume create /root/home || return
96 98
97 [ -x /root/sbin/mdadm ] || cp /sbin/mdadm /root/sbin/ 99 [ -x /root/sbin/mdadm ] || cp /sbin/mdadm /root/sbin/
98 [ -e /root/sbin/mdadm-dup.sh ] || cp /bin/mdadm-dup.sh /root/sbin/ 100 # Copy these over unconditionally, because they ought to remain in sync with
101 # the initrd.
102 cp /bin/mdadm-dup.sh /root/sbin/
103 cp /bin/samizdat-eject.sh /root/sbin/
99 104
100 sed -i -e 's/^root:x:/root::/' /root/etc/passwd 105 sed -i -e 's/^root:x:/root::/' /root/etc/passwd
101 cp /patchroot/* /root/root/ 106 cp /patchroot/* /root/root/