diff options
author | Andrew Cady <d@jerkface.net> | 2016-04-28 00:21:24 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2016-04-28 00:21:24 -0400 |
commit | 3d24cae4b9897c17ddcfc4c4d8f150931d2d1f98 (patch) | |
tree | 4fab631dd40e06670469ac4ec7679fcc8079205c /samizdat-eject.sh | |
parent | 7cc1d2e6379fde13193f98114c1bfe4a8ec5f6d8 (diff) |
more samizdat-eject fixes
also, copy samizdat-eject from the initramfs to the new rootfs (into
/sbin)
Diffstat (limited to 'samizdat-eject.sh')
-rwxr-xr-x | samizdat-eject.sh | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/samizdat-eject.sh b/samizdat-eject.sh index 0f4e117..bfd8e1c 100755 --- a/samizdat-eject.sh +++ b/samizdat-eject.sh | |||
@@ -44,13 +44,8 @@ done | |||
44 | copy() | 44 | copy() |
45 | { | 45 | { |
46 | mdadm_copy_eject_crypt /dev/md55 "$temp_target" && | 46 | mdadm_copy_eject_crypt /dev/md55 "$temp_target" && |
47 | dd if=/dev/md55 of="$target".part && | 47 | mdadm_copy_eject /dev/md55 "$target".part && |
48 | mv "$target".part "$target" | 48 | mv "$target".part "$target" |
49 | |||
50 | # I suppose at this point $target should be made the backing device of | ||
51 | # /dev/md55 | ||
52 | |||
53 | # Alternatively: mdadm --stop /dev/md55 | ||
54 | } | 49 | } |
55 | 50 | ||
56 | remove() | 51 | remove() |