summaryrefslogtreecommitdiff
path: root/tests/integration_tests
diff options
context:
space:
mode:
authorMina Galić <me+git@igalic.co>2020-11-19 23:19:16 +0100
committerGitHub <noreply@github.com>2020-11-19 17:19:16 -0500
commit12ef7541c2d0c6b2cd510f95fda53ca9c8333064 (patch)
tree999c8ada4b030b555f5087715a9c5380361efc2a /tests/integration_tests
parent73e704e3690611625e3cda060a7a6a81492af9d2 (diff)
downloadvyos-cloud-init-12ef7541c2d0c6b2cd510f95fda53ca9c8333064.tar.gz
vyos-cloud-init-12ef7541c2d0c6b2cd510f95fda53ca9c8333064.zip
cc_resizefs on FreeBSD: Fix _can_skip_ufs_resize (#655)
On FreeBSD, if a UFS has trim: (-t) or MAC multilabel: (-l) flag, resize FS fail, because the _can_skip_ufs_resize check gets tripped up by the missing options. This was reported at FreeBSD Bugzilla: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=250496 and as LP: #1901958 Rather than fixing the parser as in the patches proposed there (and attempted in #636) this pull-request rips out all of it, and simplifies the code. We now use `growfs -N` and check if that returns an error. If it returns the correct kind of error, we can skip the resize, because we either are at the correct size, or the filesystem in question is broken or not UFS. If it returns the wrong kind of error, we just re-raise it. LP: #1901958
Diffstat (limited to 'tests/integration_tests')
0 files changed, 0 insertions, 0 deletions