FreeBSD Bugzilla – Attachment 168330 Details for
Bug 208094
installer requirement that disks be at least half zfs is unjustified
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to remove the 'max 50% swap' conditional
bsdinstall_maxswap.patch (text/plain), 2.14 KB, created by
Allan Jude
on 2016-03-17 17:48:47 UTC
(
hide
)
Description:
Patch to remove the 'max 50% swap' conditional
Filename:
MIME Type:
Creator:
Allan Jude
Created:
2016-03-17 17:48:47 UTC
Size:
2.14 KB
patch
obsolete
>Index: usr.sbin/bsdinstall/scripts/zfsboot >=================================================================== >--- usr.sbin/bsdinstall/scripts/zfsboot (revision 296987) >+++ usr.sbin/bsdinstall/scripts/zfsboot (working copy) >@@ -302,7 +302,7 @@ > msg_swap_size="Swap Size" > msg_swap_size_help="Customize how much swap space is allocated to each selected disk" > msg_swap_toosmall="The selected swap size (%s) is to small. Please enter a value greater than 100MB or enter 0 for no swap" >-msg_these_disks_are_too_small="These disks are too small given the amount of requested\nswap (%s) and/or geli(8) (%s) partitions, which would\ntake 50%% or more of each of the following selected disk\ndevices (not recommended):\n\n %s\n\nRecommend changing partition size(s) and/or selecting a\ndifferent set of devices." >+msg_these_disks_are_too_small="These disks are smaller than the amount of requested\nswap (%s) and/or geli(8) (%s) partitions, which would\ntake 100%% or more of each of the following selected disks:\n\n %s\n\nRecommend changing partition size(s) and/or selecting a\ndifferent set of disks." > msg_unable_to_get_disk_capacity="Unable to get disk capacity of \`%s'" > msg_unsupported_partition_scheme="%s is an unsupported partition scheme" > msg_user_cancelled="User Cancelled." >@@ -1483,11 +1483,12 @@ > # NB: dialog_menu_layout supports running non-interactively > dialog_menu_layout || continue > >- # Make sure each disk will be at least 50% ZFS >+ # Make sure each disk will have room for ZFS > if f_expand_number "$ZFSBOOT_SWAP_SIZE" swapsize && >- f_expand_number "$ZFSBOOT_BOOT_POOL_SIZE" bootsize >+ f_expand_number "$ZFSBOOT_BOOT_POOL_SIZE" bootsize && >+ f_expand_number "1g" zpoolmin > then >- minsize=$swapsize teeny_disks= >+ minsize=$(( $swapsize + $zpoolmin )) teeny_disks= > [ "$ZFSBOOT_BOOT_POOL" ] && > minsize=$(( $minsize + $bootsize )) > for disk in $ZFSBOOT_DISKS; do >@@ -1495,7 +1496,6 @@ > $disk $DEVICE_TYPE_DISK device > $device get capacity disksize || continue > [ ${disksize:-0} -ge 0 ] || disksize=0 >- disksize=$(( $disksize - $minsize )) > [ $disksize -lt $minsize ] && > teeny_disks="$teeny_disks $disk" > done
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 208094
: 168330