You are not logged in.

#1 2023-09-19 16:39:06

barnd3
Member
Registered: 2023-02-07
Posts: 165

apply patch

I have a .patch here
"consolefont-hook.patch"

--- /usr/lib/initcpio/hooks/consolefont	2020-01-20 20:22:59.524290082 +0100
+++ consolefont	2020-01-20 20:22:45.256734256 +0100
@@ -3,11 +3,15 @@
 run_hook() {
     if [ -e /consolefont.psfu ]; then
         msg -n ":: Loading console font..."
+	ls -lu /consolefont.psfu >> /run/initramfs/consolefont.log
         setfont -C /dev/console /consolefont.psfu
+	ls -lu /consolefont.psfu >> /run/initramfs/consolefont.log
         msg "done."
     elif [ -e /consolefont.psf ]; then
         msg -n ":: Loading console font..."
+	ls -lu /consolefont.psf >> /run/initramfs/consolefont.log
         setfont -C /dev/console /consolefont.psf
+	ls -lu /consolefont.psf >> /run/initramfs/consolefont.log
         msg "done."
     else
         msg "No consolefont found despite added hook."

Wie wende ich diesen patch an und auf welche Datei?

Offline

#2 2023-09-19 16:48:01

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,484
Website

Re: apply patch

The file it is applied to is specified in the patch /usr/lib/initcpio/hooks/consolefont.

As to how, you can use the `patch` binary, but if it were me, I'd just add those lines manually (i.e., in your text editor of choice).

If you want more help, some context would be helpful.  Where is this patch from, and what is your end goal?  Why do you think you should use this patch if you don't even know what it is for?

Last edited by Trilby (2023-09-19 16:50:03)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2023-09-19 16:58:09

barnd3
Member
Registered: 2023-02-07
Posts: 165

Re: apply patch

I get the message "kdfontop Function not implemented" when booting.
I had found a patch, I do not know if this is the right one.
In any case, it worked the other day, but unfortunately I no longer have the patch.

Offline

#4 2023-09-19 17:04:56

barnd3
Member
Registered: 2023-02-07
Posts: 165

Re: apply patch

i found a fix that works.
https://gitlab.archlinux.org/archlinux/ … 8468446bbe

vielen Dank

Offline

Board footer

Powered by FluxBB