plymouth-update-initrd assumes you are running the kernel that needs an initrd
Submitted by Mads Kiilerich
Assigned to Ray Strode @halfline
## Description
(17:58:31) halfline: warren: might be an ordering issue durin gupgrade
(17:58:40) halfline: warren: run /usr/libexec/plymouth/plymouth-update-initrd
(18:04:16) kiilerix: halfline: could you add options for something like v=$(rpm -q kernel --qf="%{version}-%{release}.%{arch}\n"|tail -n1); mkinitrd -v -f /boot/initrd-$v.img $v to it?
(18:14:17) halfline: kiilerix: thing is, the only reason the script exists at all is because it used to do a lot more to bolt on plymouth to an existing system
(18:14:35) halfline: kiilerix: then we integrated plymouth straight up and i didn't remove the script, but people kept using it
(18:14:51) halfline: kiilerix: so i gutted the script and made it do something reasonable
(18:15:02) halfline: kiilerix: file a bug in bugs.freedesktop.org
Perhaps something like
#!/bin/bash
if [ "$1" == "--running" -o "$1" == "" ]; then
kernel="$(uname -r)"
elif [ "$1" == "--latest" ]; then
kernel="$(rpm -q kernel --qf="%{version}-%{release}.%{arch}\n"|tail -n1)"
else
kernel="$1"
fi
initrdimg=/boot/initrd-$kernel.img
echo updating $initrdimg >&2
mkinitrd -f $initrdimg $kernel
Edited by Ray Strode