• Benjamin Drung's avatar
    Create initrd for all installed kernels · d31be021
    Benjamin Drung authored
    When kdump-tools is installed, it will create initrd only for the
    running kernel. Kernels that are installed after kdump-tools have their
    initrd created by postinst hook script. Previously installed kernels,
    however, get their initrd created when kdump is loaded.
    
    When building an image with debootstrap and using chroot to install
    kdump-tools, no initrd will be generated on installation (and no
    /var/lib/kdump directory will be created). The first boot will causes
    error messages:
    
    kdump-tools[5751]: Starting kdump-tools: Creating symlink /var/lib/kdump/vmlinuz.
    kdump-tools[5751]: Starting kdump-tools: Creating symlink /var/lib/kdump/vmlinuz.
    kdump-tools[5751]: ln: failed to create symbolic link '/var/lib/kdump/vmlinuz': No such file or directory
    kdump-tools[5751]: ln: failed to create symbolic link '/var/lib/kdump/vmlinuz': No such file or directory
    kdump-tools[5751]: kdump-tools: Generating /var/lib/kdump/initrd.img-4.16.0-2-amd64
    kdump-tools[5751]: kdump-tools: Generating /var/lib/kdump/initrd.img-4.16.0-2-amd64
    
    To avoid the error messages and to speed up the initial boot (the image is
    created once, but multiple machines boot it), create initrds for all installed
    kernels.
    d31be021
Name
Last commit
Last update
arch Loading commit data...
debian Loading commit data...
eppic_scripts Loading commit data...
.gitignore Loading commit data...
COPYING Loading commit data...
IMPLEMENTATION Loading commit data...
Makefile Loading commit data...
README Loading commit data...
cache.c Loading commit data...
cache.h Loading commit data...
common.h Loading commit data...
diskdump_mod.h Loading commit data...
dwarf_info.c Loading commit data...
dwarf_info.h Loading commit data...
elf_info.c Loading commit data...
elf_info.h Loading commit data...
erase_info.c Loading commit data...
erase_info.h Loading commit data...
extension_eppic.c Loading commit data...
extension_eppic.h Loading commit data...
makedumpfile-R.pl Loading commit data...
makedumpfile.8 Loading commit data...
makedumpfile.c Loading commit data...
makedumpfile.conf Loading commit data...
makedumpfile.conf.5 Loading commit data...
makedumpfile.h Loading commit data...
makedumpfile.spec Loading commit data...
print_info.c Loading commit data...
print_info.h Loading commit data...
sadump_info.c Loading commit data...
sadump_info.h Loading commit data...
sadump_mod.h Loading commit data...