[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1049898: debootstrap: change /usr-merge implementation to merge after unpack



Hi,

Quoting Simon McVittie (2023-08-16 17:19:42)
> On Wed, 16 Aug 2023 at 17:07:39 +0200, Helmut Grohne wrote:
> > The other aspect is that we want to ship the
> > aliasing symlinks in a package (base-files probably).
> ...
> > Is there any prerequisite you see missing before we can merge and upload
> > this change? Any aspect to be analyzed? Any situation to be tested? Any
> > conceptual aspect I am missing?
> 
> You probably have, but: have you tried bootstrapping sid with a
> locally-hacked base-files that adds the aliasing symlinks to its data.tar, to
> check that this has the desired effect?

independent of Helmut I have written my own set of patches to the Essential:yes
set which installs to /usr instead of / as well as a patcher which takes
existing *.deb files and moves files around from /usr to /. With the modified
packages and unpatched debootstrap I get:

I: Retrieving util-linux-extra 2.38.1-5
I: Validating util-linux-extra 2.38.1-5
I: Retrieving zlib1g 1:1.2.13.dfsg-1
I: Validating zlib1g 1:1.2.13.dfsg-1
I: Chosen extractor for .deb packages: dpkg-deb
I: Extracting base-files...
E: Tried to extract package, but file already exists. Exit...

With Helmut's patch debootstrap finishes successfully and leaves me with a
chroot that I was able to successfully run a shell in. The symlinks from bin,
lib and sbin into /usr exist.

I have not done very extensive testing yet but it looks like it does what it
should.

Thanks!

cheers, josch

Attachment: signature.asc
Description: signature


Reply to: