Skip to content
Snippets Groups Projects
  1. Mar 23, 2022
  2. Mar 22, 2022
  3. Mar 13, 2021
  4. Jan 07, 2021
  5. Dec 13, 2020
    • Ben Hutchings's avatar
      scripts/functions: Fix indentation for recently added functions · ac2243bd
      Ben Hutchings authored
      
      Ident with tabs instead of 4 spaces.
      
      Gbp-Dch: ignore
      Signed-off-by: default avatarBen Hutchings <benh@debian.org>
      ac2243bd
    • Ben Hutchings's avatar
      Merge branch 'net-wait' into 'master' · 9e13d886
      Ben Hutchings authored
      configure_networking(): Wait for specified network device
      
      See merge request kernel-team/initramfs-tools!32
      9e13d886
    • dann frazier's avatar
      configure_networking(): Wait for specified network device · 947717dc
      dann frazier authored
      
      configure_networking() will issue a `udevadm settle` before trying to
      configure an interface. However that's just a "best effort" mechanism
      for waiting until all NICs have been discovered. There is no way to
      *actually* know that all NICs have been discovered. The USB protocol sets
      no time limit on enumeration, for example, and I have a USB NIC that
      is consistently discovered after this point.
      
      However, in the case that the user has told us which interface they expect
      to be used in the initramfs (via ip=), we can just wait for it specifically.
      Bail only if it hasn't appeared within 3 minutes. We can perhaps allow that
      timeout to be overridden from the command line in the future.
      
      Closes: #965935
      Signed-off-by: default avatardann frazier <dannf@debian.org>
      947717dc
    • dann frazier's avatar
      Add time_elapsed() function, subsuming $local_top_time · 35177dbe
      dann frazier authored
      
      Generalize the elapsed time tracking in local-top so that it can be used
      elsewhere. This requires some additional quoting in local_device_setup()
      comparisons to pass shellcheck.
      
      Now that the reference time is recorded earlier (in init vs. local-top),
      the rootdev wait time will now be reduced by however long it it takes to
      process init-premount. The belief is that our wait time is sufficiently
      long for that to be negligible. Also, this could potentially break any
      local-top scripts that use $local_top_time directly. A survey of
      the current packages in sid shows no packages that contain a file under
      /usr/share/initramfs-tools/scripts/local-top/ that contain "local_top_time".
      
      Signed-off-by: default avatardann frazier <dannf@debian.org>
      35177dbe
  6. Dec 12, 2020
  7. Dec 09, 2020
  8. Dec 02, 2020
  9. Sep 13, 2020
  10. Sep 11, 2020
  11. Sep 07, 2020
    • Jann Horn's avatar
      Add firmware for built-in drivers · a7718dcc
      Jann Horn authored
      There's an old bug report from 2017 (#857054) complaining that firmware for
      built-in drivers is not automatically added to initramfs; and back then,
      the kernel did not collect information about such dependencies in a place
      where initramfs-tools could access it (#857055).
      
      However, since Linux 5.2 (released in mid-2019), the kernel actually
      provides this information via modules.builtin.modinfo; you can see at e.g.
      <https://packages.debian.org/bullseye/amd64/linux-image-5.7.0-3-amd64/filelist>
      that the buster kernel package ships this file. (There aren't actually any
      firmware dependencies listed in there though; I guess the upstream Debian
      kernel config just has no built-in code with firmware dependencies?)
      
      Wire it up, so that people with custom kernel configs don't have to waste
      time figuring out that their devices don't work properly because the
      firmware wasn't available at boot.
      
      Closes: #857054
      a7718dcc
  12. Sep 06, 2020
  13. Aug 31, 2020
  14. Aug 19, 2020
Loading