mirror of
https://salsa.debian.org/kernel-team/initramfs-tools.git
synced 2026-01-27 01:44:25 +00:00
When installing/upgrading packages (e. g. a kernel and initramfs-tools), the same initrd is generated twice: ``` $ apt-get install --no-install-recommends -y zstd initramfs-tools linux-image-generic [...] Setting up initramfs-tools-core (0.145) ... Setting up initramfs-tools (0.145) ... update-initramfs: deferring update (trigger activated) Setting up linux-image-6.12.16-amd64 (6.12.16-1) ... I: /vmlinuz.old is now a symlink to boot/vmlinuz-6.12.16-amd64 I: /initrd.img.old is now a symlink to boot/initrd.img-6.12.16-amd64 I: /vmlinuz is now a symlink to boot/vmlinuz-6.12.16-amd64 I: /initrd.img is now a symlink to boot/initrd.img-6.12.16-amd64 /etc/kernel/postinst.d/initramfs-tools: update-initramfs: Generating /boot/initrd.img-6.12.16-amd64 Setting up linux-image-amd64 (6.12.16-1) ... Processing triggers for libc-bin (2.40-7) ... Processing triggers for initramfs-tools (0.145) ... update-initramfs: Generating /boot/initrd.img-6.12.16-amd64 ``` Add a `-s` parameter to `update-initramfs` to set a Unix time stamp (seconds since 1970) for the update mode. An existing initramfs will only be updated if it is not newer than the specified Unix time stamp. This feature is the first step to avoid generating the initrd twice. LP: #1466965
Description
initramfs-tools
Languages
Shell
68.3%
Roff
22.3%
C
9.3%