[elbe-devel] [PATCH] archive: mv /lib to /usr/lib

John Ogness john.ogness at linutronix.de
Fri Apr 26 15:43:15 CEST 2019


On 2019-04-26, Torben Hohn <torben.hohn at linutronix.de> wrote:
> On Fri, Apr 26, 2019 at 09:03:08AM +0200, John Ogness wrote:
>> On 2019-04-26, Torben Hohn <torben.hohn at linutronix.de> wrote:
>> >> > in buster /lib is a link to /usr/lib. When the archive is unpacked,
>> >> > this link is deleted, and /lib only contains the archive contents,
>> >> > and /lib/ld-linux.so becomes inaccessible.
>> >> 
>> >> IMO the correct solution is to not overwrite existing directory
>> >> symlinks. The archive should be unpacked with -h (or --dereference) so
>> >> that existing symlinks to directories are respected. Usage of /lib in
>> >> archives can be quite common, especially with systemd. Debian still uses
>> >> /lib/systemd/ as the official path, even if /lib is now a symlink.
>> >
>> > a) i would not like to change this behaviour, because we dont know, what
>> >    we would break with this behaviour change.
>> 
>> Valid point. Although I cannot imagine people prefer the current
>> behavior. In my opinion it is broken.
>
> when  -h is specified, its not possible anymore to remove a symlink.

Is that really supposed to be a feature of the archive? 

> or maybe change the link target.

I think with finetuning it is possible to do whatever you need. My
concern is that the _default_ behavior will seriously break buster. So
rather than forcing everyone to use exceptions (like putting systemd
files in /usr/lib/systemd), let's just fix the default.

John Ogness



More information about the elbe-devel mailing list