Skip to content
Snippets Groups Projects
Select Git revision
  • 89d0aeab4252adc2a7ea693637dd21c588bfa2d1
  • openEuler-1.0-LTS default protected
  • openEuler-22.09
  • OLK-5.10
  • openEuler-22.03-LTS
  • openEuler-22.03-LTS-Ascend
  • master
  • openEuler-22.03-LTS-LoongArch-NW
  • openEuler-22.09-HCK
  • openEuler-20.03-LTS-SP3
  • openEuler-21.09
  • openEuler-21.03
  • openEuler-20.09
  • 4.19.90-2210.5.0
  • 5.10.0-123.0.0
  • 5.10.0-60.63.0
  • 5.10.0-60.62.0
  • 4.19.90-2210.4.0
  • 5.10.0-121.0.0
  • 5.10.0-60.61.0
  • 4.19.90-2210.3.0
  • 5.10.0-60.60.0
  • 5.10.0-120.0.0
  • 5.10.0-60.59.0
  • 5.10.0-119.0.0
  • 4.19.90-2210.2.0
  • 4.19.90-2210.1.0
  • 5.10.0-118.0.0
  • 5.10.0-106.19.0
  • 5.10.0-60.58.0
  • 4.19.90-2209.6.0
  • 5.10.0-106.18.0
  • 5.10.0-106.17.0
33 results

usr

  • Clone with SSH
  • Clone with HTTPS
  • user avatar
    Florian Fainelli authored and Linus Torvalds committed
    This is a follow-up to commit 57ddfdaa ("initramfs: fix disabling of
    initramfs (and its compression)").  This particular commit fixed the use
    case where we build the kernel with an initramfs with no compression,
    and then we build the kernel with no initramfs.
    
    Now this still left us with the same case as described here:
    
      http://lkml.kernel.org/r/20170521033337.6197-1-f.fainelli@gmail.com
    
    not working with initramfs compression.  This can be seen by the
    following steps/timestamps:
    
      https://www.spinics.net/lists/kernel/msg2598153.html
    
    .initramfs_data.cpio.gz.cmd is correct:
    
      cmd_usr/initramfs_data.cpio.gz := /bin/bash
      ./scripts/gen_initramfs_list.sh -o usr/initramfs_data.cpio.gz  -u 1000 -g 1000  /home/fainelli/work/uclinux-rootfs/romfs /home/fainelli/work/uclinux-rootfs/misc/initramfs.dev
    
    and was generated the first time we did generate the gzip initramfs, so
    the command has not changed, nor its arguments, so we just don't call
    it, no initramfs cpio is re-generated as a consequence.
    
    The fix for this problem is just to properly keep track of the
    .initramfs_cpio_data.d file by suffixing it with the compression
    extension.  This takes care of properly tracking dependencies such that
    the initramfs get (re)generated any time files are added/deleted etc.
    
    Link: http://lkml.kernel.org/r/20170930033936.6722-1-f.fainelli@gmail.com
    
    
    Fixes: db2aa7fd ("initramfs: allow again choice of the embedded initramfs compression algorithm")
    Fixes: 9e3596b0 ("kbuild: initramfs cleanup, set target from Kconfig")
    Signed-off-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
    Cc: "Francisco Blas Izquierdo Riera (klondike)" <klondike@xiscosoft.net>
    Cc: Nicholas Piggin <npiggin@gmail.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    e08b1877
    History
    Name Last commit Last update
    ..