forked from kinvolk/kube-spawn
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pkg: improve support for systemd >= 240 and native btrfs parititions
Systemd prior to version 240 was creating /var/lib/machines.raw as btrfs volume for storing machined disks. However, this functionality is now remove and now it stores it as regular files. More details here: https://github.com/systemd/systemd/blob/401faa3533280b05fee972e0c64885caf4b31e4c/units/var-lib-machines.mount#L10 Additionally, it someone already have /var/lib/machines baked by btrfs, machined won't create machines.raw, which will also cause setting up cluster to fail. This patch adds check, if machineImage exists and it not, it fallbacks to just checking disk space available for /var/lib/machines. Refs kinvolk#339 kinvolk#293 Signed-off-by: Mateusz Gozdek <[email protected]>
- Loading branch information
Showing
2 changed files
with
44 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters