You are not logged in.

#1 2012-12-02 03:53:05

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 20,108
Website

[Solved] New mkinitcpio: consolefont error

mkinitcpio 0.12.0 introduces some changes; notably the block hook.

When I regenerated my initrd after having replaced sata with block, it threw a new error:

  -> Running build hook: [consolefont]
==> WARNING: consolefont: no font found in configuration

I set the consolefont in /etc/vconsole.conf, like so:

FONT=ter-116n
KEYMAP=/etc/caps2escape.kmap

This has worked since moving to systemd, is there something else that is required with the new mkinitcpio hooks, or has this change exposed some shortcoming in my setup?


Arch + dwm   •   Mercurial repos  •   Github

Registered Linux User #482438

Offline

#2 2012-12-02 04:27:16

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,097
Website

Re: [Solved] New mkinitcpio: consolefont error

Unrelated to the block hook changes, of course.

sed -i 's/CONSOLEFONT/FONT/' /lib/initcpio/install/consolefont

I'll fix it for 0.12.1. Thanks.

Offline

#3 2012-12-02 04:44:26

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 20,108
Website

Re: [Solved] New mkinitcpio: consolefont error

Thanks falconindy.


Arch + dwm   •   Mercurial repos  •   Github

Registered Linux User #482438

Offline

#4 2012-12-02 05:12:43

sl1pkn07
Member
From: Spanishtán
Registered: 2010-03-30
Posts: 314

Re: [Solved] New mkinitcpio: consolefont error

"Replace any and all of the deprecated hooks"

for example?

greetings

Offline

#5 2012-12-02 05:47:03

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 20,108
Website

Re: [Solved] New mkinitcpio: consolefont error


Arch + dwm   •   Mercurial repos  •   Github

Registered Linux User #482438

Offline

#6 2012-12-02 15:39:08

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,097
Website

Re: [Solved] New mkinitcpio: consolefont error

And more generally, 'mkinitcpio -L' will show you what hooks are deprecated:

$ mkinitcpio -L
==> Available hooks
autodetect	consolefont	keymap		mmc¹		sata¹		strip		usb¹
base		filesystems	mdadm		modconf		scsi¹		timestamp	usr
block		fsck		mdadm_udev	pata¹		shutdown	udev		virtio¹
btrfs		fw¹		memdisk		resume		sleep		usbinput

¹ This hook is deprecated in favor of 'block'

Offline

#7 2012-12-02 16:14:07

sl1pkn07
Member
From: Spanishtán
Registered: 2010-03-30
Posts: 314

Re: [Solved] New mkinitcpio: consolefont error

thanks

Offline

#8 2012-12-02 22:52:05

Rasi
Member
From: Germany
Registered: 2007-08-14
Posts: 1,862
Website

Re: [Solved] New mkinitcpio: consolefont error

that pacman message really is not helpful at all smile


He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.

Douglas Adams

Offline

#9 2012-12-02 23:10:14

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [Solved] New mkinitcpio: consolefont error

As you're here, falconindy, don't forget to close this - same issue, I posted it this morning.

And yeah, I agree with sl1pkn07 and Rasi - the post-install message assumes we know what hooks have been deprecated, couldn't it just tell us?

Offline

#10 2012-12-02 23:32:21

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,097
Website

Re: [Solved] New mkinitcpio: consolefont error

  if [ "$(vercmp 0.12.0 "$2")" -eq 1 ]; then
    printf '==> The "block" hook has replaced several hooks:\n'
    printf '       fw, sata, pata, scsi, virtio, mmc, usb\n'
    printf '    Replace any and all of these in /etc/mkinitcpio.conf with a single\n'
    printf '    instance of the "block" hook\n'
  fi

Better?

Offline

#11 2012-12-02 23:59:20

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 20,108
Website

Re: [Solved] New mkinitcpio: consolefont error

Yes. smile


Arch + dwm   •   Mercurial repos  •   Github

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB