diff --git a/Technical_Decomp_Harvest.md b/Technical_Decomp_Harvest.md index 611207e..20ba091 100644 --- a/Technical_Decomp_Harvest.md +++ b/Technical_Decomp_Harvest.md @@ -6,7 +6,7 @@ - uses IgnorePolicy + PathFilter/CompiledPathPattern to decide what files are safe to copy - emits ServiceSnapshot, PackageSnapshot, UsersSnapshot, etc. - emits ManagedFile and ExcludedFile entries everywhere -- writes everything into state.json, and file copies into artifacts//... +- writes everything into state.json, and file copies into `artifacts//...` ### ManagedFile (dataclass) @@ -16,7 +16,7 @@ #### Fields: - path: absolute original path on host -- src_rel: relative path used inside artifacts//... (almost always path.lstrip("/")) +- src_rel: relative path used inside `artifacts//...` (almost always `path.lstrip("/")`) - owner, group, mode: captured from stat_triplet() - reason: classification string explaining why it was captured (examples): - systemd_dropin, systemd_envfile @@ -80,12 +80,12 @@ _____________________ - consider candidate /etc files from: - systemd dropins/envfiles (only under /etc) - modified dpkg conffiles or packaged files under /etc (by md5 compare) - - service-specific “unowned” files under /etc/ trees + - service-specific “unowned” files under `/etc/` trees - filter each candidate through: - user exclude patterns (PathFilter.is_excluded) - IgnorePolicy.deny_reason - readability + regular-file checks - - copy accepted files into artifacts// + - copy accepted files into `artifacts//` #### Why this class matters: @@ -110,7 +110,7 @@ ______________________ - For remaining packages: - detect modified conffiles / modified packaged files under /etc via hashes - capture associated timer overrides if the timer is attributable to that package - - scan for custom/unowned files under /etc/ trees for the package + - scan for custom/unowned files under `/etc/` trees for the package ______________