Received: from smtp.smtpout.orange.fr (smtp01.smtpout.orange.fr [80.12.242.123]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 356AD782D6D for <~alpine/devel@lists.alpinelinux.org>; Tue, 28 Jan 2020 09:23:50 +0000 (UTC) Received: from postfix.malikania.fr ([5.135.187.121]) by mwinf5d53 with ME id vlPo2100f2dbEiD03lPpba; Tue, 28 Jan 2020 10:23:49 +0100 X-ME-Helo: postfix.malikania.fr X-ME-Auth: ZGVtZWxpZXIuZGF2aWRAb3JhbmdlLmZy X-ME-Date: Tue, 28 Jan 2020 10:23:49 +0100 X-ME-IP: 5.135.187.121 Received: from [167.3.108.158] (unknown [77.159.242.250]) by postfix.malikania.fr (Postfix) with ESMTPSA id B2A6F850B for <~alpine/devel@lists.alpinelinux.org>; Tue, 28 Jan 2020 10:23:48 +0100 (CET) To: ~alpine/devel@lists.alpinelinux.org From: David Demelier Subject: WIP: trying to add consolefont in mkinitfs Message-ID: Date: Tue, 28 Jan 2020 10:23:48 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: fr Content-Transfer-Encoding: 7bit Hello all, I'm trying to create an additional features for mkinitfs, including setfont + console fonts. Why? Because on some laptops with high dpi screens, the initramfs may ask passphrase for cryptsetup or show an emergency shell. On my laptop this is barely usable by default. Thus, I've created a /etc/mkinitfs/features.d/consolefont with /etc/conf.d/consolefont /usr/sbin/setfont /usr/share/consolefonts/*.psf.gz Then, updated initramfs-init just before the first message [0] --- initramfs-init.orig +++ initramfs-init @@ -353,6 +353,7 @@ done done +# Just for testing yet. +setfont /usr/share/consolefonts/ter-224n.psf.gz [ "$KOPT_quiet" = yes ] || echo "Alpine Init $VERSION" # enable debugging if requested I've enabled consolefont in my mkinitfs.conf and rebooted. At boot setfont complained that /dev/tty does not exist even though printing on the screen does not work and cryptsetup asks the passphrase so... I'm unable to understand how can I achieve this. Is it possible to create a /dev/tty node? Should mdev be enabled earlier? [0]: https://git.alpinelinux.org/mkinitfs/tree/initramfs-init.in#n355 Any help is welcomed. -- David