diff options
Diffstat (limited to 'scripts/zpool-config/lo-raid0.cfg')
-rw-r--r-- | scripts/zpool-config/lo-raid0.cfg | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/scripts/zpool-config/lo-raid0.cfg b/scripts/zpool-config/lo-raid0.cfg index ce011f0b3..f306d57e9 100644 --- a/scripts/zpool-config/lo-raid0.cfg +++ b/scripts/zpool-config/lo-raid0.cfg @@ -10,12 +10,10 @@ DEVICES="/tmp/zpool-vdev0 \ /tmp/zpool-vdev4" for DEV in ${DEVICES}; do - local DEV_LO=`/sbin/losetup -f` - rm -f ${DEV} || exit 1 dd if=/dev/zero of=${DEV} bs=1024k count=512 || exit 1 - losetup ${DEV_LO} ${DEV} || exit 1 + losetup `/sbin/losetup -f` ${DEV} || exit 1 done -${CMDDIR}/zpool/zpool create ${ZPOOL_NAME} ${DEVICES} || exit 1 +${CMDDIR}/zpool/zpool create -f ${ZPOOL_NAME} ${DEVICES} || exit 1 |