Merge "Update platform-backup to use 30GB partition"
This commit is contained in:
@@ -82,10 +82,11 @@
|
|||||||
ROOTFS_SIZE=20000
|
ROOTFS_SIZE=20000
|
||||||
LOG_VOL_SIZE=8000
|
LOG_VOL_SIZE=8000
|
||||||
SCRATCH_VOL_SIZE=16000
|
SCRATCH_VOL_SIZE=16000
|
||||||
PLATFORM_BACKUP_SIZE=10000
|
|
||||||
BOOT_SIZE=500
|
BOOT_SIZE=500
|
||||||
EFI_SIZE=300
|
EFI_SIZE=300
|
||||||
|
|
||||||
|
PLATFORM_BACKUP_SIZE=$persistent_size
|
||||||
|
|
||||||
# The default disk size thresholds must align with the ones in
|
# The default disk size thresholds must align with the ones in
|
||||||
# config/.../sysinv/common/constants.py
|
# config/.../sysinv/common/constants.py
|
||||||
# which are DEFAULT_SMALL_DISK_SIZE
|
# which are DEFAULT_SMALL_DISK_SIZE
|
||||||
|
@@ -5,10 +5,11 @@
|
|||||||
ROOTFS_SIZE=20000
|
ROOTFS_SIZE=20000
|
||||||
LOG_VOL_SIZE=8000
|
LOG_VOL_SIZE=8000
|
||||||
SCRATCH_VOL_SIZE=16000
|
SCRATCH_VOL_SIZE=16000
|
||||||
PLATFORM_BACKUP_SIZE=10000
|
|
||||||
BOOT_SIZE=500
|
BOOT_SIZE=500
|
||||||
EFI_SIZE=300
|
EFI_SIZE=300
|
||||||
|
|
||||||
|
PLATFORM_BACKUP_SIZE=$persistent_size
|
||||||
|
|
||||||
ROOTFS_OPTIONS="defaults"
|
ROOTFS_OPTIONS="defaults"
|
||||||
profile_mode=`cat /proc/cmdline |xargs -n1 echo |grep security_profile= | grep extended`
|
profile_mode=`cat /proc/cmdline |xargs -n1 echo |grep security_profile= | grep extended`
|
||||||
if [ -n "$profile_mode" ]; then
|
if [ -n "$profile_mode" ]; then
|
||||||
|
@@ -22,6 +22,10 @@ fi
|
|||||||
if [ -z "$rootfs_device" ]; then
|
if [ -z "$rootfs_device" ]; then
|
||||||
rootfs_device=$(get_disk_dev)
|
rootfs_device=$(get_disk_dev)
|
||||||
fi
|
fi
|
||||||
|
if [ -z "$persistent_size" ]; then
|
||||||
|
# Default backup partition size in MiB
|
||||||
|
persistent_size=30000
|
||||||
|
fi
|
||||||
|
|
||||||
# Get root and boot devices
|
# Get root and boot devices
|
||||||
orig_rootfs_device=$rootfs_device
|
orig_rootfs_device=$rootfs_device
|
||||||
|
Reference in New Issue
Block a user