[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#751716: [debian-installer] Patch



On Sun, 2014-07-13 at 12:26 +0200, Bastien ROUCARIES wrote:

Sorry the delay, I was procrastinating on responding because I'm wasn't
really sure what to suggest.

> On Sun, Jul 13, 2014 at 9:39 AM, Ian Campbell <ijc@hellion.org.uk> wrote:
> > On Sun, 2014-07-13 at 00:58 +0200, Bastien ROUCARIES wrote:
> >> On Sun, Jul 13, 2014 at 12:14 AM, Martin Michlmayr <tbm@cyrius.com> wrote:
> >> > * Bastien ROUCARIES <roucaries.bastien@gmail.com> [2014-07-12 19:05]:
> >> >> Hi UImage is too big to get into mtd :S You said that it it is a
> >> >> trimmed down version ? Any idea to trim more ?
> >> >
> >> > I believe we said the initramfs generated by initramfs-tools is
> >> > trimmed down.  How big is the uimage and how much space do you have?
> >>
> >> 5242880 byte or 5M

How big is the current uImage you are building? Looking at other similar
installer images I'm guessing it's a little over 5M, so I'm wondering
how much space we need to be clawing back.

You will probably need to take a look through
debian-installer.git/build/pkg-lists/* and the resulting list of udebs
which are included in this image to see if there is anything which can
be dropped to save some space.

It might also be useful to unpack the initrd and see if you can spot
anything which is unnecessary.

Given that the kernels can now (I think) handle xz compressed initrd
perhaps that might also be something to investigate?

> > I always thought that this was the default behaviour of the
> > network-console flavour images, is it not?
> 
> No it is not. It ask for hostaname and password for ssh

I didn't know this. As Martin says though it looks like oldsys-preseed
is the fix. 

Looks at the code it looks like even without the machine specific hooks
it should be enough to preseed the networking (letting DHCP take
precedence) and set a default password, but it will be aborting because
it doesn't recognise the platform.

So at a minimum you will need to make it recognise your platform
allowing it to take the default actions, but since there is a stanza
there for DNS-323 though you might want to consider adding full support
for grabbing the existing firmware cfg for DNS-320 too.

Ian.


Reply to: