Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

Support type changes from directories to files and symlinks #50

Open
phmccarty opened this issue Nov 23, 2016 · 3 comments
Open

Support type changes from directories to files and symlinks #50

phmccarty opened this issue Nov 23, 2016 · 3 comments

Comments

@phmccarty
Copy link
Contributor

Type changes for directory->file and directory->symlink are currently not supported, but it will useful to support them.

@phmccarty
Copy link
Contributor Author

More background posted to the wiki: https://github.com/clearlinux/swupd-server/wiki/Type-changes

@pohly
Copy link
Contributor

pohly commented Dec 1, 2016

Can this be extended to also cover file->symlink?

We have that situation in Ostro OS 1.0 -> current release for /usr/lib/ssl/openssl.cnf. I'm not sure what further work is needed besides testing; it seems to work already with swupd client 2.87.

@phmccarty
Copy link
Contributor Author

@pohly file->symlink is already supported. Just the directory->N type changes are unsupported at the moment.

pohly added a commit to pohly/swupd-server that referenced this issue Sep 20, 2017
swupd client (tested with 2.87) supports replacing an empty directory
with a symlink, so the check in the server is overly restrictive.

Upstream wants to invest some more work before officially supporting
such a state change (clearlinux#50).

In the meantime we already need to support it for updates from Ostro
OS 1.0 because of /usr/lib/ssl/certs changing to a symlink.

Upstream-Status: Inappropriate [Workaround]

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>

%% original patch: 0001-type_change.c-allow-transition-dir-symlink.patch
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants