On Wed, Apr 23, 2014 at 08:56:18PM -0000, Iain Lane wrote:
> On Wed, Apr 23, 2014 at 06:55:34PM -0000, Steve Langasek wrote:
> > Iain, I thought ubuntukylin-default-settings already had support for
> > removing packages that had previously been isntalled from the ubuntu-
> > desktop task; this is one of the facilities that ubuntu-defaults-builder
> > is supposed to provide. Am I missing some reason that this isn't
> > sufficient for the ubuntu-kylin-docs case?
> I've had a look and I don't see such a facility in
> ubuntu-defaults-builder. Hopefully I'm missing it, but I think that it
> wouldn't be very easy to add it properly.
> I guess though that ubuntukylin-default-settings could do such mangling
> as I suggested earlier in its hook, assuming it's appropriate for the
> hook to poke around in the internals of the image build process.
So maybe it's not part of the ubuntu-defaults-builder interfaces per se, but
I'm pretty sure that's what hooks/chroot in ubuntukylin-default-settings is
for.
On Wed, Apr 23, 2014 at 08:56:18PM -0000, Iain Lane wrote: default- settings already had support for defaults- builder
> On Wed, Apr 23, 2014 at 06:55:34PM -0000, Steve Langasek wrote:
> > Iain, I thought ubuntukylin-
> > removing packages that had previously been isntalled from the ubuntu-
> > desktop task; this is one of the facilities that ubuntu-
> > is supposed to provide. Am I missing some reason that this isn't
> > sufficient for the ubuntu-kylin-docs case?
> I've had a look and I don't see such a facility in defaults- builder. Hopefully I'm missing it, but I think that it
> ubuntu-
> wouldn't be very easy to add it properly.
> I guess though that ubuntukylin- default- settings could do such mangling
> as I suggested earlier in its hook, assuming it's appropriate for the
> hook to poke around in the internals of the image build process.
So maybe it's not part of the ubuntu- defaults- builder interfaces per se, but default- settings is
I'm pretty sure that's what hooks/chroot in ubuntukylin-
for.
rawlist=$(cat /usr/share/ ubuntukylin- default- settings/ remove- package. list)
list=$(dpkg -l $rawlist | awk '/^i/ {print $2}')
[ -z "$list" ] || apt-get purge --auto-remove -y $list
ubuntu-docs is already listed there, though.
It's possible this isn't fixable properly without moving ubuntukylin
handling to a seed + meta package.