Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix manager #130

Merged
merged 3 commits into from
Jan 9, 2025
Merged

Fix manager #130

merged 3 commits into from
Jan 9, 2025

Conversation

tagoylo
Copy link
Collaborator

@tagoylo tagoylo commented Jan 7, 2025

This fixes checking of empty files.
This also fixes the wrong boot partition folder dumped into properties.yaml.

@tagoylo tagoylo requested a review from kimpaller January 7, 2025 08:18
@@ -740,8 +740,7 @@ def _find_boot_files(self, folder):
res = []
for file in files:
path = os.path.join(folder, file)
filesize = os.stat(path).st_size
if filesize <= 80:
if os.stat(path).st_size == 0:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about the files that are not 0 bytes but are not valid, e.x files that are actually text just composed of "File Not Found" description. I believe this was set to 80 to address that specific issue.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh right, thanks for pointing that out. I reverted the commit and will create another PR instead to further address the issue.

@kimpaller kimpaller merged commit d164a4e into main Jan 9, 2025
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants