В Wed, 18 Dec 2013 17:54:39 +0100 Leif Lindholm <leif.lindh...@linaro.org> пишет:
> > > > + 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. _______________________________________________ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel