tweaks
This commit is contained in:
@@ -139,7 +139,7 @@ for disk in `echo "$boots"`; do
|
|||||||
pending="0"
|
pending="0"
|
||||||
while ! [ -e "/dev/disk/by-id/${disk}-part3" ]; do
|
while ! [ -e "/dev/disk/by-id/${disk}-part3" ]; do
|
||||||
partprobe 2>/dev/null 1>/dev/null
|
partprobe 2>/dev/null 1>/dev/null
|
||||||
if [ "$pending" = "0" ]; then echo "" && echo "Waiting for ${disk} partition 3 to update..."; pending="1"; fi
|
if [ "$pending" = "0" ]; then echo "" && echo "Waiting for ${disk} boot partition to update..."; pending="1"; fi
|
||||||
sleep 3
|
sleep 3
|
||||||
done
|
done
|
||||||
if [ "$pending" = "1" ]; then echo "Done."; fi
|
if [ "$pending" = "1" ]; then echo "Done."; fi
|
||||||
@@ -163,6 +163,17 @@ else
|
|||||||
raidtype=" $raidtype"
|
raidtype=" $raidtype"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# wait for the partitions to show up
|
||||||
|
for disk in `echo "$disks"`; do
|
||||||
|
pending="0"
|
||||||
|
while ! [ -e "/dev/disk/by-id/${disk}-part4" ]; do
|
||||||
|
partprobe 2>/dev/null 1>/dev/null
|
||||||
|
if [ "$pending" = "0" ]; then echo "" && echo "Waiting for ${disk} storage partition to update..."; pending="1"; fi
|
||||||
|
sleep 3
|
||||||
|
done
|
||||||
|
if [ "$pending" = "1" ]; then echo "Done."; fi
|
||||||
|
done
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Creating main zpool..."
|
echo "Creating main zpool..."
|
||||||
error=`zpool create -f -o ashift=12 -O acltype=posixacl -O canmount=off -O compression=lz4 -O dnodesize=auto -O normalization=formD -O relatime=on -O xattr=sa -O mountpoint=/ -R /mnt rpool${raidtype}${rootraidz} 2>&1 1>/dev/null`
|
error=`zpool create -f -o ashift=12 -O acltype=posixacl -O canmount=off -O compression=lz4 -O dnodesize=auto -O normalization=formD -O relatime=on -O xattr=sa -O mountpoint=/ -R /mnt rpool${raidtype}${rootraidz} 2>&1 1>/dev/null`
|
||||||
|
|||||||
Reference in New Issue
Block a user