Skip to content

simp environment new creates rsync/CentOS unconditionally, so the rsync skeleton cannot ship it #244

Done

Description

@hcaballero2

Problem

copy_rsync_skeleton_files creates the rsync/CentOS -> RedHat link itself after copying the rsync skeleton (lib/simp/cli/environment/secondary_dir_env.rb:148):

FileUtils.ln_s('RedHat', 'CentOS') # C.5.2

simp/simp-rsync-skeleton#64 adds AlmaLinux, OracleLinux and Rocky links to the skeleton, so the per-distribution aliases now live in two places. The skeleton can't take over the CentOS link while this call is unconditional: if the copied skeleton already contains CentOS -> RedHat, ln_s follows it and creates a RedHat/RedHat -> RedHat loop inside the tree instead.

Someone who copies the skeleton by hand, as the simp-rsync-skeleton README describes, also gets no CentOS link at all.

Suggested fix

  • Create the link only when CentOS doesn't already exist.
  • Once a release with that change is out, ship CentOS in simp-rsync-skeleton with the other links, and then remove the call here.

Activity

  1. moved this from New to In Progress in Org Triageon Nov 24, 2026
  2. moved this from In Progress to In Review in Org Triageon Nov 24, 2026
  3. moved this from In Review to Done in Org Triageon Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions