grub-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] add arm64 UEFI Linux loader


From: Andrey Borzenkov
Subject: Re: [PATCH] add arm64 UEFI Linux loader
Date: Wed, 18 Dec 2013 21:12:37 +0400

В Wed, 18 Dec 2013 17:54:39 +0100
Leif Lindholm <address@hidden> пишет:

> 
> > > +  if (!loaded)
> > > +    {
> > > +      grub_error (GRUB_ERR_BAD_ARGUMENT,
> > > +           N_("you need to load the kernel first"));
> > > +      goto fail;
> > > +    }
> > > +
> > > +  files = grub_zalloc (argc * sizeof (files[0]));
> > > +  if (!files)
> > > +    goto fail;
> > > +
> > > +  for (i = 0; i < argc; i++)
> > > +    {
> > > +      grub_file_filter_disable_compression ();
> > > +      files[i] = grub_file_open (argv[i]);
> > > +      if (!files[i])
> > > + goto fail;
> > > +      nfiles++;
> > > +      size += ALIGN_UP (grub_file_size (files[i]), 4);
> > > +    }
> > > +
> > Why don't you use methods from loader/linux.c ?
> 
[...]
> ARM* do not even support multiple initrds.
> 

Is this arch dependant? I mean, kernel gets buffer that holds initramfs
and just tries to cpio extract it; if there are multiple concatenated
archives it will simply process them all. I thought this was pretty
much arch-independent.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]