aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/remove-boot-splash
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/remove-boot-splash')
-rw-r--r--scripts/remove-boot-splash8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/remove-boot-splash b/scripts/remove-boot-splash
index f7e7b63..c7317e5 100644
--- a/scripts/remove-boot-splash
+++ b/scripts/remove-boot-splash
@@ -13,12 +13,12 @@ if (!system("/bin/zcat $initrd 2> /dev/null | /bin/cpio -t &> /dev/null")) {
chomp(my $tmp_dir = `mktemp -d`);
chdir $tmp_dir;
system("/bin/zcat $initrd 2>/dev/null | /bin/cpio -id 2>/dev/null");
- if (-f "$tmp_dir/bootsplash") {
- unlink "$tmp_dir/bootsplash" or die "FATAL: removing of $tmp_dir/bootsplash failed";
- print STDERR "remove-boot-splash: removing bootsplash from initrd\n";
+ if (-d "$tmp_dir/usr/share/plymouth") {
+ system("rm -fr $tmp_dir/usr/share/plymouth $tmp_dir/usr/lib/plymouth $tmp_dir/usr/lib/libply* $tmp_dir/lib/libply* $tmp_dir/bin/plymouthd $tmp_dir/bin/plymouth");
+ print STDERR "remove-boot-splash: removing plymouth from initrd\n";
system("/bin/find . -print | /bin/cpio --quiet -c -o 2> /dev/null | gzip -c > $initrd")
} else {
- print STDERR "ERROR remove-boot-splash: bootsplash image not found in $initrd\n"
+ print STDERR "ERROR remove-boot-splash: plymouth not found in $initrd\n"
}
system("rm -rf $tmp_dir");
exit