Skip to content
Snippets Groups Projects
  1. Oct 01, 2017
  2. Aug 22, 2017
  3. Aug 20, 2017
    • Erik Stromdahl's avatar
      functions: add_full_dir: path prefix strip-off · 172ca644
      Erik Stromdahl authored
      
      Add third argument to add_full_dir: strip_prefix.
      The strip_prefix will be stripped off from the destination
      path (path in the initramfs image) when adding files.
      
      Rationale: Make it easier to add rootfs overlay hooks when
      generating images.
      
      add_full_dir can be invoked in this way:
      
      add_full_dir /path/on/parent/rootfs-overlay * /path/on/parent/rootfs-overlay
      
      The above invocation will add all content of */path/on/parent/rootfs-overlay*
      into */* in the initramfs image.
      
      Signed-off-by: default avatarErik Stromdahl <erik.stromdahl@gmail.com>
      172ca644
    • Erik Stromdahl's avatar
      functions: add_full_dir: recursive filter · cee04994
      Erik Stromdahl authored
      
      By passing the filter glob in all recursive invocations of
      add_full_dir, the filtering is performed on all subdirs and
      not just the top dir.
      
      This makes the implementation correspond to the documented
      behavior in the man page.
      
      Signed-off-by: default avatarErik Stromdahl <erik.stromdahl@gmail.com>
      cee04994
  4. Mar 19, 2017
  5. Mar 17, 2017
  6. Mar 14, 2017
  7. Mar 11, 2017
  8. Mar 10, 2017
  9. Nov 27, 2016
  10. Nov 26, 2016
  11. Nov 25, 2016
  12. Nov 22, 2016
  13. Nov 20, 2016
  14. Sep 09, 2016
  15. Jul 17, 2016
  16. Jul 12, 2016
  17. Jul 07, 2016
    • Dave Reisner's avatar
      refactor parse_cmdline into something more readable · b9308a52
      Dave Reisner authored
      This refactors parse_cmdline into a few chunks of code, mainly to
      separate the work of parsing from the handling of the actual parsed
      parameters. By default, parse_cmdline_item is used as the callback for
      handling the parameters, but this could be overriden by other code
      sourcing init_functions if desirable.
      
      Our test harness passes more tests, but we leave behind some expected
      failures to describe the cases where it still fails. Fortunately I've
      not yet been able to find any cases which warrant --expect-parse-fail.
      b9308a52
    • Dave Reisner's avatar
      add test harness for parse_cmdline · a089c862
      Dave Reisner authored
      Some of these tests currently fail including hard failures where the
      shell quits entirely (this would lead to a kernel panic). A followup
      commit will rewrite the parse_cmdline function to improve it and fix
      these deficiencies.
      a089c862
  18. Jul 02, 2016
  19. Jun 27, 2016
    • Dave Reisner's avatar
    • Dave Reisner's avatar
      handle the case of modinfo returning multiple modules · 73189f95
      Dave Reisner authored
      This is true of more and more modules with the advent of aliases, e.g.
      
        $ modinfo -F filename crc32c
        /lib/modules/4.6.2-rampage/kernel/arch/x86/crypto/crc32c-intel.ko.gz
        /lib/modules/4.6.2-rampage/kernel/crypto/crc32c_generic.ko.gz
      73189f95
    • Dave Reisner's avatar
      Handle softdeps in modules · 97ac4d37
      Dave Reisner authored
      modinfo outputs softdeps which we can add if they exist (failing
      quietly on not-found). this obviates the need for some of our own
      module quirks.
      
      The output of modinfo can take many forms, as it's nearly freeform text
      in the  .modinfo section of the kernel module. The basic form is:
      
        softdep:        pre: foo
      
      But it might also be:
      
        softdep:        pre: foo bar post: baz
      
      Or:
      
        softdep:        pre: foo
        softdep:        post: bar
      
      So just parse the entire line, discarding anything that ends with a ':'.
      97ac4d37
  20. Jan 20, 2016
  21. Dec 28, 2014
Loading