From 6cb1a8772364e96e62cfda74490db9848c885635 Mon Sep 17 00:00:00 2001 From: Sam Thursfield Date: Fri, 19 Sep 2014 12:22:35 +0100 Subject: Allow replacing a file with a compatibility symlink This means we can do stuff like moving /etc/os-release into /usr/lib and leaving a compatibility symlink where the file was. Previously baserock-system-config-sync would fail with the following: ERROR: found two different types for 'os-release': regular and symlink One of the 'failure' test cases now passes, and I've added a specific test for our 'os-release' case to the 'symblinks' test case too. --- .../symblinks.in/systems/version2/run/usr/lib/os-release | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 tests/bscs-merge.pass/symblinks.in/systems/version2/run/usr/lib/os-release (limited to 'tests/bscs-merge.pass/symblinks.in/systems/version2/run/usr/lib/os-release') diff --git a/tests/bscs-merge.pass/symblinks.in/systems/version2/run/usr/lib/os-release b/tests/bscs-merge.pass/symblinks.in/systems/version2/run/usr/lib/os-release new file mode 100644 index 0000000..39715ee --- /dev/null +++ b/tests/bscs-merge.pass/symblinks.in/systems/version2/run/usr/lib/os-release @@ -0,0 +1,2 @@ +Hi, I'm 'os-release'. I start out living in /etc, but then I get moved to +/usr/lib and I'm replaced with a compatibility symlink. -- cgit v1.2.1