]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
scripts: make plymouth-update-initrd somewhat more useful
authorRay Strode <rstrode@redhat.com>
Tue, 15 Oct 2013 13:52:46 +0000 (09:52 -0400)
committerRay Strode <rstrode@redhat.com>
Tue, 15 Oct 2013 13:52:46 +0000 (09:52 -0400)
plymouth-update-initrd is a script that should probably be eventually
dropped.  It was originally created to unpack and initrd and graft
plymouth in.  Later, it just became a thin wrapper around mkinitrd.

These days, very few (any?) distros use mkinitrd.  Change it to call
dracut instead.

Relevant irc log:

<newfo> this is SO WRONG:
http://cgit.freedesktop.org/plymouth/tree/scripts/plymouth-update-initrd
<newfo> it won't work on any distro
<newfo> would you mind updating that please?
<newfo> replace the mkinitrd line in
/usr/libexec/plymouth/plymouth-update-initrd to  dracut -f
/boot/initramfs-$(uname -r).img $(uname -r)
<-- newfo has quit (Client Quit)

scripts/plymouth-update-initrd

index 1403b8b6842e26ebbef22e16515e2a71e8d96c31..9ac0bfce47c662e4ae8d0649679fff06be271419 100755 (executable)
@@ -1,2 +1,2 @@
 #!/bin/bash
-mkinitrd -f /boot/initrd-$(uname -r).img $(uname -r)
+dracut -f /boot/initramfs-$(uname -r).img $(uname -r)