Skip to content

cmd/mkpkg: support adding empty directories.#350

Merged
dshynkev merged 1 commit intomasterfrom
dshynkev/mkpkg-emptydirs
May 4, 2020
Merged

cmd/mkpkg: support adding empty directories.#350
dshynkev merged 1 commit intomasterfrom
dshynkev/mkpkg-emptydirs

Conversation

@dshynkev
Copy link
Copy Markdown
Contributor

@dshynkev dshynkev commented May 4, 2020

This eventually fixes #341, pending update to the packaging script.

As suggested in this comment, it turns out that adding an empty directory at /var/cache/tailscale to the %files section of the rpm package fixes the issue (tested on a clean CentOS 8.1.1911 VM).

Since this may be useful for other directories in the future, this patch implements a generic way of adding empty directories to a package. In particular, it works for an empty list of empty directories, which is the default. This is not the case for --files and --configs, which always expect a nonempty list as an argument; hence the special treatment of "" in parseEmptyDirs.

@dshynkev dshynkev requested a review from danderson May 4, 2020 20:24
@dshynkev dshynkev self-assigned this May 4, 2020
@dshynkev dshynkev force-pushed the dshynkev/mkpkg-emptydirs branch from 7e68b2f to 10de7fc Compare May 4, 2020 20:27
Signed-off-by: Dmytro Shynkevych <dmytro@tailscale.com>
@dshynkev dshynkev force-pushed the dshynkev/mkpkg-emptydirs branch from 10de7fc to a24e72a Compare May 4, 2020 20:29
@dshynkev dshynkev merged commit 68a173b into master May 4, 2020
@dshynkev dshynkev deleted the dshynkev/mkpkg-emptydirs branch May 4, 2020 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SELinux in enforcing mode on CentOS 8 breaks tailscaled

2 participants