fix: 区分 OSTree 可用性与完整性风险#8
Merged
Merged
Conversation
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
深入分析 linyaps 1.13.0 源码后,确认运行路径主要依赖 OSTree 仓库可打开、refs/cache/states 可读取,以及
/var/lib/linglong/layers/<commit>checkout 目录;ostree fsck不是启动或运行前置条件。远程 UOS 环境也验证了ostree fsck --quiet可发现 corrupted object,但ll-cli --json repo show/list/ps与ostree refs仍可正常执行。变更
ostree refs --repo=/var/lib/linglong/repo判断仓库运行可用性。ostree fsck --quiet作为深度对象完整性审计。验证
/home/hao/Flutter/flutter-stable/bin/flutter analyze --no-pub/home/hao/Flutter/flutter-stable/bin/flutter test --no-pub test/unit/data/repositories/linglong_cli_repository_impl_command_test.dart test/unit/application/services/linglong_environment_management_service_test.dart test/unit/application/providers/linglong_environment_management_provider_test.dart test/widget/presentation/widgets/linglong_environment_management_dialog_test.dart test/widget/presentation/pages/setting_page_test.dart/home/hao/Flutter/flutter-stable/bin/flutter test --no-pub