Hello,
  I am trying to follow this procedure on a Debian 9 machine that had a kernel panic error and how sort of works, but doesn't shut down 
properly.  I get this output for the command:

https://www.redhat.com/sysadmin/linux-kernel-panic

-rw-r--r-- 1 root root  4241184 Aug 11  2019 vmlinuz-4.9.0-9-amd64
walrus@debian:/boot$ ls -lrth /boot/
total 129M
-rw-r--r-- 1 root root 4.1M May  7  2018 vmlinuz-4.9.0-6-amd64
-rw-r--r-- 1 root root 3.1M May  7  2018 System.map-4.9.0-6-amd64
-rw-r--r-- 1 root root 183K May  7  2018 config-4.9.0-6-amd64
-rw-r--r-- 1 root root  19M Apr 18  2019 initrd.img-4.9.0-6-amd64
-rw-r--r-- 1 root root 4.1M Aug 11  2019 vmlinuz-4.9.0-9-amd64
-rw-r--r-- 1 root root 3.1M Aug 11  2019 System.map-4.9.0-9-amd64
-rw-r--r-- 1 root root 183K Aug 11  2019 config-4.9.0-9-amd64
-rw-r--r-- 1 root root  19M Aug 26  2020 initrd.img-4.9.0-9-amd64
-rw-r--r-- 1 root root 4.1M Dec 17  2020 vmlinuz-4.9.0-14-amd64
-rw-r--r-- 1 root root 3.1M Dec 17  2020 System.map-4.9.0-14-amd64
-rw-r--r-- 1 root root 183K Dec 17  2020 config-4.9.0-14-amd64
-rw-r--r-- 1 root root  19M Feb 11  2021 initrd.img-4.9.0-14-amd64
-rw-r--r-- 1 root root 4.1M Mar  7  2021 vmlinuz-4.9.0-15-amd64
-rw-r--r-- 1 root root 3.1M Mar  7  2021 System.map-4.9.0-15-amd64
-rw-r--r-- 1 root root 183K Mar  7  2021 config-4.9.0-15-amd64
-rw-r--r-- 1 root root  19M Mar 21  2021 initrd.img-4.9.0-15-amd64
-rw-r--r-- 1 root root 4.1M Jun 20  2021 vmlinuz-4.9.0-16-amd64
-rw-r--r-- 1 root root 3.1M Jun 20  2021 System.map-4.9.0-16-amd64
-rw-r--r-- 1 root root 183K Jun 20  2021 config-4.9.0-16-amd64
-rw-r--r-- 1 root root  19M Jun 26  2021 initrd.img-4.9.0-16-amd64
drwxr-xr-x 5 root root 4.0K Jun 26  2021 grub
walrus@debian:/boot$ uname -r
4.9.0-16-amd64


trying to make sense of this part in the procedure:

Step 3.2: Next, run the dracut command:

#dracut -f <initrd-image> <kernal-version>

Any ideas?
thanks,
Greg