Skip to content

Commit f4b569c

Browse files
authored
Merge pull request #2826 from dirkmueller/overlayfs_supported
Add overlayfs as supported
2 parents 13ff00b + 896bf37 commit f4b569c

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

kiwi/runtime_checker.py

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -91,18 +91,21 @@ def check_target_dir_on_unsupported_filesystem(target_dir: str) -> None:
9191
ACLs or xattrs. The image build may fail or the resulting
9292
image misbehave.
9393
''')
94-
support_target_filesystem = [
95-
'tmpfs', 'btrfs', 'xfs', 'ext2', 'ext3', 'ext4', 'ext2/ext3'
96-
]
97-
stat = Command.run(
98-
['stat', '-f', '-c', '%T', target_dir]
99-
)
94+
stat = Command.run(['stat', '-f', '-c', '%T', target_dir])
10095
if stat:
10196
target_fs = stat.output.strip()
102-
if target_fs not in support_target_filesystem:
103-
raise KiwiRuntimeError(
104-
message.format(target_fs, target_dir)
105-
)
97+
supported_target_filesystem = (
98+
'btrfs',
99+
'ext2',
100+
'ext2/ext3',
101+
'ext3',
102+
'ext4',
103+
'overlayfs',
104+
'tmpfs',
105+
'xfs',
106+
)
107+
if target_fs not in supported_target_filesystem:
108+
raise KiwiRuntimeError(message.format(target_fs, target_dir))
106109

107110
def check_include_references_unresolvable(self) -> None:
108111
"""

0 commit comments

Comments
 (0)