Update /boot/uInitrd automatically after update-initramfsPut the following to /etc/initramfs/post-update.d/99-uInitrd
, and chmod +x
to make it executable:
1234567 #!/bin/shset -e# $1 = version, $2 = full path to initrd.img-xxxecho "update-initramfs: Converting to /boot/uInitrd" >&2temp="/boot/uInitrd-$1"mkimage -A arm64 -O linux -T ramdisk -C gzip -n uInitrd -d $2 $temp 1> /dev/nullmv $temp /boot/uInitrd
This is how update-initramfs -u
looks like now:
123 # update-initramfs -uupdate-initramfs: Generating /boot/initrd.img-4.20.0update-initramfs: Converting to /boot/uInitrd
Reference: Chapter 8. Package maintainer scripts and hooks.
Put the following to /etc/initramfs/post-update.d/99-uInitrd
, and chmod +x
to make it executable:
1 2 3 4 5 6 7 | #!/bin/sh set -e # $1 = version, $2 = full path to initrd.img-xxx echo "update-initramfs: Converting to /boot/uInitrd" >&2 temp="/boot/uInitrd-$1" mkimage -A arm64 -O linux -T ramdisk -C gzip -n uInitrd -d $2 $temp 1> /dev/null mv $temp /boot/uInitrd |
This is how update-initramfs -u
looks like now:
1 2 3 | # update-initramfs -u update-initramfs: Generating /boot/initrd.img-4.20.0 update-initramfs: Converting to /boot/uInitrd |
Reference: Chapter 8. Package maintainer scripts and hooks.