From: Gordan B. <go...@bo...> - 2009-02-15 14:36:25
|
Marc Grimme wrote: >> So, if I may be so bold to ask - any chance of including pigz in the yum >> repository and adding a dependency on it for the comoonics-bootimage? >> >> I'd submit a create-gfs-initrd-lib.sh patch, but I can't help but feel >> that a patch as small as 2 lines would be a bit lame. :^) > > That's no problem. I will make a variable for the compression program that can > be overwritten in /etc/comoonics/bootimage/bootimage.cfg. > And yes that's only two lines. Awesome, thanks. :) > The more dramatic speed up I'm thinking about is the one with using only one > rpm process and dieting wherever possible and wherever needed. This reduces > the size of initrd and consequently the time for compressing it. Indeed, that was the other thing I was thinking about. It is possible to list multiple packages on the same query, as per what is being done in get_filelist_from_installed_rpm(): rpm -q <package1> <package2> ... <packageN> --dump > But I need to check if the filters are compatible with that concept. If so > that should be pretty easy if not the filters have to be rewritten. Which > should also be possible. I can't see how the current filtering could work with this approach. Only one big list is returned, so all filtering would have to operate on that unified list. This means that filtering would also have to be unified, rather than per-package, which is what I was referring to in the previous post. Filtering out everything under /usr/share/[doc | man], /usr/include, etc. is simple enough, but it isn't as flexible as per-package filtering. I can't see a way around that, though. Gordan |