diff options
author | Andrew Cady <d@jerkface.net> | 2016-04-26 04:10:01 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2016-04-26 04:10:01 -0400 |
commit | dc442988ffba9d0f34a21a364773252320fb3856 (patch) | |
tree | d21b2f166520c72f4f4178ff679f144e7602b50b /old-school/mdadm-dup.sh | |
parent | 19fc3ad482a467dbfcd27c8366ba026107498f4f (diff) |
fixup! Cdrom duplication
Diffstat (limited to 'old-school/mdadm-dup.sh')
-rw-r--r-- | old-school/mdadm-dup.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/old-school/mdadm-dup.sh b/old-school/mdadm-dup.sh index fa38b51..16e3dfd 100644 --- a/old-school/mdadm-dup.sh +++ b/old-school/mdadm-dup.sh | |||
@@ -130,7 +130,7 @@ mdadm_copy_eject() # NOT INITRD; uses non-busybox "losetup" | |||
130 | sectors=$(blockdev --getsz "$md_dev") || return | 130 | sectors=$(blockdev --getsz "$md_dev") || return |
131 | 131 | ||
132 | truncate -s $((sectors * 512)) "$output_file" || return | 132 | truncate -s $((sectors * 512)) "$output_file" || return |
133 | output_dev=$(losetup -f --show "$output_file") || return | 133 | output_dev=$(LoSetup -f --show "$output_file") || return |
134 | 134 | ||
135 | mdadm "$md_dev" --add "$output_dev" || return | 135 | mdadm "$md_dev" --add "$output_dev" || return |
136 | mdadm "$md_dev" --grow -n2 || return | 136 | mdadm "$md_dev" --grow -n2 || return |