coreos / coreos/coreos-assembler

Docs: Using the provided alias with `COREOS_ASSEMBLER_CONFIG_GIT` leave FS with dangling files

Open
#3,817 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
393
Forks
193
Avg merge
17h 6m
Merged PRs (30d)
5

Description

If you set COREOS_ASSEMBLER_CONFIG_GIT=/some/path/ the current alias will mount /some/path into /srv/src/config into the container.

This allow having a clone of fedora-coreos-config wherever you want. It works well, but leaves some stuff on your FS.
Indeed, the alias also have -v ${PWD}:/srv set up. Which cause a weird file created in your local FS.

To reproduce:

cd ~
cosa shell #because you just want to check a rpm version or something
exit

# back in the host ~
ls -l 
drwxr-xr-t. 1 nobody nobody      12 May 28 16:06  src
ls -l src/
drwxr-xr-t. 1 nobody nobody 0 May 28 16:06 config

I can only delete those using root. I realize it's a bit of a corner case but I don't really know how it can be fixed 🤷
I'm referencing this alias : https://coreos.github.io/coreos-assembler/building-fcos/#define-a-bash-alias-to-run-cosa

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the bash alias shown in the linked CoreOS Assembler documentation and reproduce it from a home directory using cosa shell with COREOS_ASSEMBLER_CONFIG_GIT set. Trace the two mounts and verify that exiting the container no longer leaves dangling src/config entries requiring root removal.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, shell
Domain
build-system, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.