Skip to content
Snippets Groups Projects
  1. Jan 07, 2020
    • Ben Hutchings's avatar
      mkinitramfs: Remove armhf dynamic linker hack · a9e5169f
      Ben Hutchings authored
      
      This reverts commit da64d1a1, which
      was a workaround for the inconsistent choices of interpreter path in
      the early days of armhf and the limitations of copy_file at the time.
      Now that copy_file automatically replicates symlinks and their
      targets, we don't need to do anything special about the dynamic
      linker.
      
      An initramfs built for Debian 10 on armhf currently contains:
      
      /lib/arm-linux-gnueabihf/ld-2.28.so           regular file
      /lib/arm-linux-gnueabihf/ld-linux-armhf.so.3  link to ld-2.28.so
      /lib/arm-linux-gnueabihf/ld-linux.so.3        link to /lib/ld-linux-armhf.so.3
      /lib/ld-linux-armhf.so.3                      regular file
      
      There are two *copies* of the dynamic linker as well as two symlinks
      to one or the other of them.
      
      After this commit, the initramfs contains:
      
      /lib/arm-linux-gnueabihf/ld-2.28.so           regular file
      /lib/arm-linux-gnueabihf/ld-linux-armhf.so.3  link to ld-2.28.so
      /lib/ld-linux-armhf.so.3                      link to arm-linux-gnueabihf/ld-2.28.so
      
      The /lib/…/ld-linux.so.3 symlink is no longer created, because Debian
      armhf binaries all use /lib/ld-linux-armhf.so.3 as the interpreter
      path, but it would be created if we ever switched over.
      
      Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
      a9e5169f
    • Ben Hutchings's avatar
      mkinitramfs: Remove special case for Arm OABI ports · 2b55aca6
      Ben Hutchings authored
      
      This reverts commit 879602b2.  The
      arm (OABI little-endian) port was replaced by armel and was last
      released in Debian 5.0.  The armeb (OABI big-endian) port never made
      it into a Debian release and has died off completely.
      
      Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
      2b55aca6
    • Ben Hutchings's avatar
      mkinitramfs: Remove workaround for old udev versions · 9d8b6908
      Ben Hutchings authored
      
      Remove the temporary hack introduced by commit ab913066 "init:
      Take over handling of rootdelay parameter from udev boot script".
      
      Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
      9d8b6908
  2. Nov 19, 2019
  3. Nov 18, 2019
  4. Oct 27, 2019
  5. Oct 08, 2019
    • Alper Nebi Yasak's avatar
      hook-functions: Include modules for Chromebook Plus display · da851903
      Alper Nebi Yasak authored
      
      On Samsung Chromebook Plus (v1), messages and prompts printed during an
      initramfs run aren't visible to the user unless the pwm_bl, rockchipdrm,
      pwm-cros-ec and panel-simple modules are included. This commit includes
      these when MODULES=dep and when MODULES=most.
      
      For MODULES=dep: adds backlight and pwm to the dep_modules_add sys-walk.
      Walking backlight includes pwm_bl and pwm includes pwm-cros-ec. Since
      panel-simple isn't reachable from /sys/class/**, but it can be reached
      from /sys/devices/platform/edp-panel, that path is sys-walked if it
      exists.
      
      When {efi,platform,simple,vesa}-framebuffer cannot provide a working
      framebuffer device, graphics is sys-walked as well. Walking drm works
      for rockchipdrm too, but also includes panfrost, so graphics was chosen
      instead.
      
      For MODULES=most: the modules are included in a new case 'fb' in the
      auto_add_modules intended for modules providing framebuffer support
      for machines where generic drivers don't provide one.
      
      Signed-off-by: default avatarAlper Nebi Yasak <alpernebiyasak@gmail.com>
      da851903
    • Alper Nebi Yasak's avatar
      hook-functions: Handle dw_mmc-rockchip hidden dependency on rockchip-io-domain · ded7214c
      Alper Nebi Yasak authored
      
      Without rockchip-io-domain, I'm getting the following errors when
      plugging micro SD cards to a rk3399-gru-kevin:
      
          dwmmc_rockchip fe320000.dwmmc: All phases bad!
          mmc1: tuning execution failed: -5
          mmc1: error -5 whilst initialising SD card
      
      In that case the relevant /dev/mmcblk* device isn't available either,
      so we can't boot from the external SD card.
      
      Signed-off-by: default avatarAlper Nebi Yasak <alpernebiyasak@gmail.com>
      ded7214c
  6. Sep 14, 2019
  7. Sep 03, 2019
  8. Aug 21, 2019
  9. Aug 11, 2019
  10. Jul 28, 2019
    • Ben Hutchings's avatar
      Merge branch 'fix-dev-and-run-mount-flags' into 'master' · 953d80c5
      Ben Hutchings authored
      init: /dev can be noexec and /run nodev
      
      This change *will* be visible in systemd units that use the
      InaccessiblePaths option to hide device files.  systemd creates a
      dummy file of each type in /run/systemd/inaccessible/<type> and
      bind-mounts them over the paths specified in this option.  If a
      process in such a unit attempts to access a device that is made
      inaccessible, it will now fail with error EPERM and not ENODEV.
      Hopefully this won't cause breakage.
      
      See merge request kernel-team/initramfs-tools!9
      953d80c5
    • Ben Hutchings's avatar
      Releasing version 0.134. · ef3f0a5e
      Ben Hutchings authored
      
      Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
      v0.134
      ef3f0a5e
  11. Jul 27, 2019
  12. Jun 21, 2019
  13. Jun 19, 2019
  14. May 04, 2019
  15. Apr 30, 2019
  16. Apr 13, 2019
    • Topi Miettinen's avatar
      init: /dev can be noexec and /run nodev · eb98d2ea
      Topi Miettinen authored
      
      /dev used to be mounted with "exec" flag due to /dev/MAKEDEV script
      but that's history and it's now located in /sbin. mmap() with file
      descriptor to "/dev/zero" (instead of modern mmap(,,,MAP_ANON...))
      will still work.
      
      There's no reason to have (char/block) device nodes in /run, so let's
      mount it with "nodev". This does not affect sockets, fifos etc.
      
      Signed-off-by: default avatarTopi Miettinen <toiwoton@gmail.com>
  17. Mar 05, 2019
  18. Feb 11, 2019
  19. Feb 10, 2019
    • Ben Hutchings's avatar
      hooks/resume: Disable resume when there are no suitable swap devices · 8aeae9f3
      Ben Hutchings authored
      
      In 0.131 the automatic selection of a resume device was changed to
      disable resume if the largest swap device was encrypted with a
      ephemeral key.
      
      In 0.132 I changed the automatic selection to also reject zram
      devices, but I also changed it to loop over all swap devices since
      zram might well be used alongside a conventional swap device that we
      could use.  Unfortunately, in case swap devices are available but none
      are suitable, this results in selecting the last one.
      
      Closes: #916696
      Thanks: Trek <trek00@inbox.ru>
      Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
      8aeae9f3
  20. Feb 06, 2019
Loading