[systemd-devel] [PATCH/resend] Use reflinking to copy kernel

Zbigniew Jędrzejewski-Szmek zbyszek at in.waw.pl
Sat May 16 15:16:04 PDT 2015


On Fri, May 08, 2015 at 05:11:15PM -0400, Josh Boyer wrote:
> On May 8, 2015 11:38 AM, "Zbigniew Jędrzejewski-Szmek" <zbyszek at in.waw.pl>
> wrote:
> >
> > On Thu, May 07, 2015 at 10:08:56PM -0400, Matthew Miller wrote:
> > > On Thu, May 07, 2015 at 04:29:11PM -0500, Ian Pilcher wrote:
> > > > Hmm.  If don't know off the top of my head if Fedora cloud images
> have a
> > > > separate /boot or not, but disk space is a big concern in such
> > > > environments.
> > >
> > > They don't have a separate boot, fwiw.
> > What about amending the patch to use
> >
> >    cp --reflink=auto ...
> >
> > ?
> 
> The kernel-install tool is what would need to be patched. It is what is
> doing the copying at install time.  Doing it in the spec is pointless as
> we're mucking around in the build root not the actual system.
Strictly speaking, using --reflink=auto would be useful in the spec
too, to avoid copying the files. In a build root it is very likely to
succeed too.

But you're right of course, it's kernel-install that counts.

Patches for kernel-install and dracut attached.

[Since this patch is for systemd, resending it to systemd-devel. I should
have done in the first place. If intend to push it in a few days if nobody
objects.]

Zbyszek


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Use-reflink-auto-in-more-places.patch
Type: text/x-diff
Size: 1505 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20150516/3d8f9b93/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-kernel-install-try-reflinking-if-possible.patch
Type: text/x-diff
Size: 923 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20150516/3d8f9b93/attachment-0001.patch>


More information about the systemd-devel mailing list