Comment 23 for bug 751531

Revision history for this message
Ricardo Salveti (rsalveti) wrote : Re: [Bug 751531] Re: Add support for rootfs post-processing in l-m-c

On Fri, Jan 20, 2012 at 9:08 AM, Mattias Backman
<email address hidden> wrote:
> On Thu, Jan 19, 2012 at 11:55 PM, Alexandros Frantzis <email address hidden> wrote:
>> In case "lb modify" implementation and deployment is too far away, and a
>> solution is needed now, I think the most versatile way forward is option
>> 1 as described in comment #2. That is, just call a user script providing
>> all the related paths in some way, and let it do whatever it wants,
>> including running "lb modify" if/when support for it lands.
>
> So this should be changed to just running a generic script then by
> just executing the file the user has supplied, would that be good
> enough?
>
>    sudo ${user-script} --chroot-path ${chroot_path}
>
> I re-read Ricardo's comment now about adding two separate hooks and
> that seems to be needed again. So we should be able to provide a
> pre-hwpack-install script as well as a post-install script. Any other
> options that we should pass to the hook scripts?

Don't think so, I believe we should just run the script as root at the
chroot, and that's about it.

Then to fix the snowball issue we'd just create a script to run as
pre-hwpack-install, that would create the needed license check files.