tests/cases/api.sh: make /var at least 256MB

We (mistakenly) don't enforce a minimum size for /var,
so setting it to 1024 (1kB) causes the image build to fail.

CI does not expose this in a helpful way at the moment,
so this is a bit tricky to debug.

Also skip customizations for the AWS.S3 upload type. Not all the
image types with this upload type support filesystem customizations
and that's as expected. We could make a more fine-grained test in
the future, but testing with a coulpe of targets should be
sufficient.
This commit is contained in:
Tom Gundersen 2022-02-15 22:46:04 +00:00
parent 0619ffa588
commit 351d06aecf

View file

@ -515,7 +515,7 @@ function createReqFileAWS() {
"filesystem": [
{
"mountpoint": "/var",
"min_size": 1024
"min_size": 262144000
}
],
"payload_repositories": [
@ -563,12 +563,6 @@ function createReqFileAWSS3() {
{
"distribution": "$DISTRO",
"customizations": {
"filesystem": [
{
"mountpoint": "/var",
"min_size": 1024
}
],
"payload_repositories": [
{
"baseurl": "$PAYLOAD_REPO_URL"
@ -622,7 +616,7 @@ function createReqFileGCP() {
"filesystem": [
{
"mountpoint": "/var",
"min_size": 1024
"min_size": 262144000
}
],
"payload_repositories": [
@ -660,7 +654,7 @@ function createReqFileAzure() {
"filesystem": [
{
"mountpoint": "/var",
"min_size": 1024
"min_size": 262144000
}
],
"payload_repositories": [