tweaks
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
#IFS=$'\n'
|
#IFS=$'\n'
|
||||||
|
|
||||||
# fresh update on apt in Ubuntu
|
# fresh update on apt in Ubuntu
|
||||||
|
echo ""
|
||||||
echo "Updating local packages..."
|
echo "Updating local packages..."
|
||||||
apt-add-repository universe >/dev/null 2>/dev/null && apt update >/dev/null 2>/dev/null
|
apt-add-repository universe >/dev/null 2>/dev/null && apt update >/dev/null 2>/dev/null
|
||||||
if [ "$?" = "0" ]; then
|
if [ "$?" = "0" ]; then
|
||||||
@@ -38,7 +39,7 @@ nicdevices=""; for nic in $(ip -o link show | awk -F': ' '{print $2}' | grep -v
|
|||||||
nics=`dialog --separate-output --no-cancel --no-items --title "Network devices for bridge" --checklist "Select the network devices to be bridged" $height $width ${window}$nicdevices 2>&1 1>/dev/tty`
|
nics=`dialog --separate-output --no-cancel --no-items --title "Network devices for bridge" --checklist "Select the network devices to be bridged" $height $width ${window}$nicdevices 2>&1 1>/dev/tty`
|
||||||
|
|
||||||
|
|
||||||
for disk in `echo $disks`; do
|
for disk in `echo "$disks"`; do
|
||||||
# remove echo for testing
|
# remove echo for testing
|
||||||
echo "Partitioning disk $disk..."
|
echo "Partitioning disk $disk..."
|
||||||
# collect the return values, check them for errors and display them
|
# collect the return values, check them for errors and display them
|
||||||
@@ -51,8 +52,8 @@ for disk in `echo $disks`; do
|
|||||||
done
|
done
|
||||||
|
|
||||||
# create boot mirror list
|
# create boot mirror list
|
||||||
bootmirror=""; for disk in `echo $disks`: do bootmirror="$bootmirror /dev/disk/by-id/${disk}-part3"; done
|
bootmirror=""; for disk in `echo "$disks"`; do bootmirror="$bootmirror /dev/disk/by-id/${disk}-part3"; done
|
||||||
rootraidz=""; for disk in `echo $disks`; do rootraidz="$rootraidz /dev/disk/by-id/${disk}-part4"; done
|
rootraidz=""; for disk in `echo "$disks"`; do rootraidz="$rootraidz /dev/disk/by-id/${disk}-part4"; done
|
||||||
|
|
||||||
echo "zpool create -f -o ashift=12 -d -o feature@async_destroy=enable -o feature@bookmarks=enabled -o feature@embedded_data=enabled -o feature@empty_bpobj=enabled -o feature@enabled_txg=enabled -o feature@extensible_dataset=enabled -o feature@filesystem_limits=enabled -o feature@hole_birth=enabled -o feature@large_blocks=enabled -o feature@lz4_compress=enabled -o feature@spacemap_histogram=enabled -o feature@userobj_accounting=enabled -O acltype=posixacl -O canmount=off -O compression=lz4 -O devices=off -O normalization=formD -O relatime=on -O xattr=sa -O mountpoint=/ -R /mnt bpool mirror$bootmirror"
|
echo "zpool create -f -o ashift=12 -d -o feature@async_destroy=enable -o feature@bookmarks=enabled -o feature@embedded_data=enabled -o feature@empty_bpobj=enabled -o feature@enabled_txg=enabled -o feature@extensible_dataset=enabled -o feature@filesystem_limits=enabled -o feature@hole_birth=enabled -o feature@large_blocks=enabled -o feature@lz4_compress=enabled -o feature@spacemap_histogram=enabled -o feature@userobj_accounting=enabled -O acltype=posixacl -O canmount=off -O compression=lz4 -O devices=off -O normalization=formD -O relatime=on -O xattr=sa -O mountpoint=/ -R /mnt bpool mirror$bootmirror"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user