Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • P PureBoot
  • Project information
    • Project information
    • Activity
    • Labels
    • Planning hierarchy
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 15
    • Issues 15
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • firmware
  • PureBoot
  • Merge requests
  • !13

Merged
Created Nov 04, 2021 by Kyle Rankin@kyle.rankinMaintainer

Detect added/removed files in root scan

  • Overview 0
  • Commits 2
  • Changes 2

Forum member Caliga made a feature request to detect not only hash changes, but also any time a file was added or removed, and provided a short snippet example to accomplish it.

I used that snippet as a starting point to implement this new feature. I also detected and fixed an edge case in kexec-select-boot where re-signing files would result in /tmp/kexec/ being wiped out, which triggered an error in kexec-select-boot as /tmp/kexec/kexec_menu_list.txt was missing.

With this feature, you will see both additions and removals. Additions will be prefaced by + and deletions by - in the resulting file list. I also implemented this scan before the hash check, so that it didn't disrupt the re-signing workflow already in place. It makes sense to scan, inform the user, but wait for re-signing until you also scan hashes.

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: root_check_new_files