public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Uladzimir Bely <ubely@ilbers.de>
To: "Roberto A. Foglietta" <roberto.foglietta@gmail.com>,
	"isar-users@googlegroups.com" <isar-users@googlegroups.com>
Subject: Re: [PATCH v2 0/3] Improving apt cache
Date: Fri, 20 Jan 2023 10:23:44 +0300	[thread overview]
Message-ID: <2575969.vYhyI6sBWr@hp> (raw)
In-Reply-To: <CAJGKYO4ZPDP1gCDtbTW82DiU=Gm_Yg+s=ynWhEmySzSQeAcKyg@mail.gmail.com>

In mail from пятница, 20 января 2023 г. 10:12:31 +03 user Roberto A. Foglietta 
wrote:
> On Fri, 20 Jan 2023 at 08:00, Uladzimir Bely <ubely@ilbers.de> wrote:
> > In mail from пятница, 20 января 2023 г. 08:08:03 +03 user Moessbauer,
> > Felix
> > 
> > wrote:
> > > On Fri, 2023-01-20 at 07:44 +0300, Uladzimir Bely wrote:
> > > > In mail from четверг, 19 января 2023 г. 17:52:37 +03 user Roberto A.
> > > > 
> > > > 
> > > > I see the following possible solutions that allows to save space.
> > > > 1. Since hardlinks don't work, try to use symlinks.
> > > 
> > > If that works, it clearly is the simplest solution.
> > 
> > Yes, approach with symlinks inside sbuild chroot seems to be working, so
> > I'm
> > going to use it in patchset v3.
> 
> The symlink or software link does not work for exportation... I presume,
> did you check?

Of course, if symlinks work inside sbuild chroot, whey won't work outside it 
(dl_dir import/export). So, that's how it's supposed to work:
- dl_dir_export: DL_DIR => hardlink => WORKDIR/rootfs
- sbuild chroot : WORKDIR/rootfs => symlink => /var/cache/apt/*.deb
- sbuild chroot: building the package, new .deb files downloaded
- sbuild chroot: /var/cache/apt/*.deb => copy => WORKIDIR/rootfs
- dl_dir_import: WORKDIR/rootfs => hardlink => DL_DIR
- remove WORKDIR/rootfs

> Without changing anything it is easy to confuse an old-built package with
> the nwer.
> 
> Best regards,





      reply	other threads:[~2023-01-20  7:23 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-06  6:48 Uladzimir Bely
2023-01-06  6:48 ` [PATCH v2 1/3] Clean apt cache from debootstrapped rootfs dirs Uladzimir Bely
2023-01-06  6:48 ` [PATCH v2 2/3] Use hardlinks in deb-dl-dir functions Uladzimir Bely
2023-01-06  6:48 ` [PATCH v2 3/3] Changes for a faster build using less disk space Uladzimir Bely
2023-01-06 15:58   ` Henning Schild
2023-01-06 17:38     ` Uladzimir Bely
2023-01-06 17:52       ` Roberto A. Foglietta
2023-01-06 18:11       ` Henning Schild
2023-01-09  6:32 ` [PATCH v2 0/3] Improving apt cache Moessbauer, Felix
2023-01-09  7:39   ` Uladzimir Bely
2023-01-19  7:36     ` Uladzimir Bely
2023-01-19 14:52       ` Roberto A. Foglietta
2023-01-19 16:30         ` Roberto A. Foglietta
2023-01-20  4:44         ` Uladzimir Bely
2023-01-20  5:08           ` Moessbauer, Felix
2023-01-20  7:01             ` Uladzimir Bely
2023-01-20  7:12               ` Roberto A. Foglietta
2023-01-20  7:23                 ` Uladzimir Bely [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2575969.vYhyI6sBWr@hp \
    --to=ubely@ilbers.de \
    --cc=isar-users@googlegroups.com \
    --cc=roberto.foglietta@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox