Skip to content

Commit

Permalink
Start plymouth sooner and reload when gadget is available
Browse files Browse the repository at this point in the history
  • Loading branch information
valentindavid committed Jan 16, 2024
1 parent ce2bbf2 commit 8231c50
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 44 deletions.
84 changes: 43 additions & 41 deletions debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -6,47 +6,49 @@ include /usr/share/dpkg/default.mk
%:
dh $@

INSTALL_FILES_FROM_HOST= \
/bin/kmod \
/bin/mount \
/sbin/sulogin \
/bin/tar \
/lib/$(DEB_HOST_MULTIARCH)/libgcc_s.so.1 \
/lib/$(DEB_HOST_MULTIARCH)/libnss_compat.so.* \
/lib/$(DEB_HOST_MULTIARCH)/libnss_files.so.* \
/lib/systemd/system/dbus.service \
/lib/systemd/system/dbus.socket \
/lib/systemd/system/plymouth-start.service \
/lib/systemd/system/plymouth-switch-root.service \
/lib/systemd/systemd-bootchart \
/sbin/cryptsetup \
/sbin/dmsetup \
/sbin/e2fsck \
/sbin/fsck /bin/umount \
/sbin/fsck.vfat \
/sbin/fsck.vfat \
/sbin/mkfs.ext4 \
/sbin/mkfs.vfat \
/sbin/sfdisk \
/usr/bin/dbus-daemon \
/usr/bin/mountpoint \
/usr/bin/partx \
/usr/bin/plymouth \
/usr/bin/unsquashfs \
/usr/lib/$(DEB_HOST_MULTIARCH)/plymouth/label-ft.so \
/usr/lib/$(DEB_HOST_MULTIARCH)/plymouth/renderers/*.so \
/usr/lib/$(DEB_HOST_MULTIARCH)/plymouth/script.so \
/usr/lib/$(DEB_HOST_MULTIARCH)/plymouth/two-step.so \
/usr/sbin/depmod \
/usr/sbin/insmod \
/usr/sbin/lsmod \
/usr/sbin/modinfo \
/usr/sbin/modprobe \
/usr/sbin/plymouthd \
/usr/sbin/rmmod \
/usr/share/dbus-1/system.conf \
/usr/share/libdrm/amdgpu.ids \
/usr/share/plymouth/themes/bgrt/* \
INSTALL_FILES_FROM_HOST= \
/bin/kmod \
/bin/mount \
/sbin/sulogin \
/bin/tar \
/lib/$(DEB_HOST_MULTIARCH)/libgcc_s.so.1 \
/lib/$(DEB_HOST_MULTIARCH)/libnss_compat.so.* \
/lib/$(DEB_HOST_MULTIARCH)/libnss_files.so.* \
/lib/systemd/system/dbus.service \
/lib/systemd/system/dbus.socket \
/lib/systemd/system/plymouth-start.service \
/lib/systemd/system/plymouth-switch-root.service \
/lib/systemd/system/systemd-ask-password-plymouth.path \
/lib/systemd/system/systemd-ask-password-plymouth.service \
/lib/systemd/systemd-bootchart \
/sbin/cryptsetup \
/sbin/dmsetup \
/sbin/e2fsck \
/sbin/fsck /bin/umount \
/sbin/fsck.vfat \
/sbin/fsck.vfat \
/sbin/mkfs.ext4 \
/sbin/mkfs.vfat \
/sbin/sfdisk \
/usr/bin/dbus-daemon \
/usr/bin/mountpoint \
/usr/bin/partx \
/usr/bin/plymouth \
/usr/bin/unsquashfs \
/usr/lib/$(DEB_HOST_MULTIARCH)/plymouth/label-ft.so \
/usr/lib/$(DEB_HOST_MULTIARCH)/plymouth/renderers/*.so \
/usr/lib/$(DEB_HOST_MULTIARCH)/plymouth/script.so \
/usr/lib/$(DEB_HOST_MULTIARCH)/plymouth/two-step.so \
/usr/sbin/depmod \
/usr/sbin/insmod \
/usr/sbin/lsmod \
/usr/sbin/modinfo \
/usr/sbin/modprobe \
/usr/sbin/plymouthd \
/usr/sbin/rmmod \
/usr/share/dbus-1/system.conf \
/usr/share/libdrm/amdgpu.ids \
/usr/share/plymouth/themes/bgrt/* \
/usr/share/plymouth/themes/spinner/*

override_dh_auto_install:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
[Unit]
After=snap-initramfs-mounts.service

[Service]
ExecStart=
ExecStart=/usr/sbin/plymouthd --mode=boot --pid-file=/run/plymouth/pid --attach-to-session --ignore-serial-consoles
ExecReload=-/usr/sbin/plymouth reload
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[Unit]
Description=Reload Plymouth theme
DefaultDependencies=no
ConditionPathExists=/run/plymouth/pid
ConditionPathExists=/run/mnt/gadget/splash/plymouth/themes
After=snap-initramfs-mounts.service
Before=plymouth-switch-root.service

[Service]
Type=oneshot
ExecStart=/usr/bin/systemctl reload plymouth-start.service

0 comments on commit 8231c50

Please sign in to comment.