Change swap creation command for CentOS
Changed the dd command arguments for swap file creation on CentOS 7 to use multiple smaller blocks that equal bootstrap_host_swap_size to work around a memory exhaustion issue Change-Id: I4f4750f74d31421c428cb75b7a2176d262ea79ec Closes-Bug: #1667747
This commit is contained in:
parent
ca826b02ae
commit
e56dc09cb3
@ -31,7 +31,7 @@ packages_install:
|
||||
|
||||
packages_remove: []
|
||||
|
||||
swap_create_command: "dd if=/dev/zero of=/openstack/swap.img bs={{ bootstrap_host_swap_size }}G count=1"
|
||||
swap_create_command: "dd if=/dev/zero of=/openstack/swap.img bs=1M count={{ bootstrap_host_swap_size*1024 }}"
|
||||
rc_local: /etc/rc.d/rc.local
|
||||
rc_local_insert_before: "^touch /var/lock/subsys/local$"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user