Merge "maas-region: option to always use GPT"
This commit is contained in:
commit
2989bbb4a2
|
@ -52,5 +52,10 @@ done
|
||||||
if [[ $sh_set = false ]]; then
|
if [[ $sh_set = false ]]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
{{- if .Values.conf.maas.force_gpt }}
|
||||||
|
# Forcing the use of GPT irrespective of boot disk size
|
||||||
|
# https://github.com/maas/maas/blob/2.3/src/maasserver/models/partitiontable.py#L51-L53
|
||||||
|
sed -i '/^GPT_REQUIRED_SIZE =/c\GPT_REQUIRED_SIZE = 0' /usr/lib/python3/dist-packages/maasserver/models/partitiontable.py
|
||||||
|
{{- end }}
|
||||||
set -e
|
set -e
|
||||||
exec /sbin/init --log-target=console 3>&1
|
exec /sbin/init --log-target=console 3>&1
|
||||||
|
|
|
@ -235,6 +235,12 @@ conf:
|
||||||
secret:
|
secret:
|
||||||
namespace: maas
|
namespace: maas
|
||||||
name: maas-api-key
|
name: maas-api-key
|
||||||
|
# By default, MAAS will use MBR for boot disks smaller than 2 TiB.
|
||||||
|
# Set force_gpt: true to always use GPT.
|
||||||
|
# NOTE: This is not a standard MAAS setting, and enabling it will cause
|
||||||
|
# modification of a file during maas-region pod startup:
|
||||||
|
# /usr/lib/python3/dist-packages/maasserver/models/partitiontable.py
|
||||||
|
force_gpt: false
|
||||||
extra_settings:
|
extra_settings:
|
||||||
# Additional settings available via maas $PROFILE maas set-config
|
# Additional settings available via maas $PROFILE maas set-config
|
||||||
# Marks if the initial intro has been completed: true or false
|
# Marks if the initial intro has been completed: true or false
|
||||||
|
|
Loading…
Reference in New Issue