Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • M mkinitcpio
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Graph
    • Compare revisions
    • Locked files
  • Issues 39
    • Issues 39
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 11
    • Merge requests 11
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Releases
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Arch LinuxArch Linux
  • Mkinitcpio
  • mkinitcpio
  • Issues
  • #196
Closed
Open
Issue created Jun 15, 2023 by Damon Harris@thedcoder

Stop exporting a sane PATH

Currently the script exports a "sane" PATH which causes trouble if there are conflicting utilities under one of those sane path directories (especially /usr/local/bin).

The issue I had was that the build process was failing because I had Rust uutils in /usr/local/bin, but being a diligent user I had removed it from the PATH and it was still failing. I was baffled and did not find out the issue until I had manually removed od from /usr/local/bin.

I highly recommend removing this archaic bandaid, mkinitcpio isn't supposed to be a rescue tool which works in a broken environment. If for some reason you (the developers) do not like doing this, at the very least please remove /usr/local/bin from this "sane" list! It is highly unsafe (maybe even insane) to source coreutils from the local user's bin directory.

Thank you in advance!

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking