mirror of
https://github.com/opnsense/src.git
synced 2026-04-29 18:32:49 -04:00
bsdinstall/zfsboot: Do not mirror swap when swapsize is 0
PR: 209415 Submitted by: Ganael LAPLANCHE <ganael.laplanche@corp.ovh.com> MFC after: 2 weeks
This commit is contained in:
parent
ebf75b599a
commit
06445fc0fa
1 changed files with 1 additions and 1 deletions
|
|
@ -1233,7 +1233,7 @@ zfs_create_boot()
|
|||
#
|
||||
# Create the gmirror(8) GEOMS for swap
|
||||
#
|
||||
if [ "$ZFSBOOT_SWAP_MIRROR" ]; then
|
||||
if [ ${swapsize:-0} -gt 0 -a "$ZFSBOOT_SWAP_MIRROR" ]; then
|
||||
for disk in $disks; do
|
||||
swap_devs="$swap_devs $disk$swappart"
|
||||
done
|
||||
|
|
|
|||
Loading…
Reference in a new issue