要在 Fedora 下创建自己的 Plymouth 主题并只显示一张图片,您可以按照以下步骤操作:

  1. 安装所需的软件包:

sudo dnf install plymouth plymouth-plugin-script


2. 创建一个新的 Plymouth 主题目录:

sudo mkdir /usr/share/plymouth/themes/mytheme


3. 在该目录下创建一个 Plymouth 主题脚本文件,例如'mytheme.script':

sudo nano /usr/share/plymouth/themes/mytheme/mytheme.script


4. 在脚本文件中添加以下内容:

ImageDir /usr/share/plymouth/themes/mytheme Image background.png


这将指定 Plymouth 主题使用的图像目录和显示的图像文件。

5. 将您的图像文件(例如'background.png')复制到 Plymouth 主题目录中:

sudo cp /path/to/your/image.png /usr/share/plymouth/themes/mytheme/background.png


6. 将 Plymouth 主题设置为默认主题:

sudo plymouth-set-default-theme mytheme


7. 更新 Plymouth 配置:

sudo dracut --force


8. 重新启动计算机以查看新的 Plymouth 主题效果:

sudo reboot


现在,您的 Fedora 系统将使用您创建的 Plymouth 主题,并且只会显示指定的图像。
Fedora 自定义 Plymouth 主题:仅显示一张图片

原文地址: https://www.cveoy.top/t/topic/qDKY 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录