LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 08-10-2019, 09:48 PM   #1
METROIDHunter_
LQ Newbie
 
Registered: Jan 2019
Location: USA
Distribution: Artix, Gentoo, Ubuntu 18.04, Slackware 14.2 -current
Posts: 8

Rep: Reputation: 0
[LFS 8.4] rcS.d/S70console fails: mapscrn: cannot open map file _8859-1_


Hello LQ.org, I'm a fairly new Linux user (Started with Ubuntu almost a year ago now, tiny bit of Linux Mint before that) making my way through Linux From Scratch.

I've finished the LFS book and I'm trying to boot into the new system. During the init process I find this error:

Code:
Setting up Linux console...mapscrn: cannot open map file _8859-1_

FAILURE:

You should not be reading this error message.
It means that an unforeseen error took place in 
/etc/rc.d/rcS.d/S70console,
which exited with a return value of 1.
It asks me to "Press Enter to continue" and the system finishes booting without any problems. I'm able to log in and do whatever I want.

I'm not sure how to fix this. I was concerned that my /etc/sysconfig/console file was set up incorrectly, as I was a bit confused by those instructions in LFS, but I'm really not sure.

What is going on here? What exactly is the mapscrn program, what's it trying to do, and why can't it do it? Any advice on where to start troubleshooting?

I use a standard qwerty keyboard in the US, nothing special. My /etc/sysconfig/console:
Code:
# Begin /etc/sysconfig/console

KEYMAP="us"
FONT="lat1-16 -m 8859-1"

# End /etc/sysconfig/console
 
Old 08-11-2019, 07:33 AM   #2
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,681
Blog Entries: 19

Rep: Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492
mapscrn is part of setfont. Did you try googling it?

I think the problem is that the -m option is meant to work with utf-8 but you haven't got utf-8 set in your console file.
Quote:
Originally Posted by Linux From Scratch 8.4
FONT
In UTF-8 mode, the kernel uses the application character map for conversion of composed 8-bit key codes in the keymap to UTF-8, and thus the argument of the "-m" parameter should be set to the encoding of the composed key codes in the keymap.
UNICODE
Set this variable to “1”, “yes” or “true” in order to put the console into UTF-8 mode. This is useful in UTF-8 based locales and harmful otherwise.
Try adding UNICODE=1 to your configuration.

Incidentally, it's useful in this kind of query to say whether you are using sysvinit or systemd LFS.

Last edited by hazel; 08-11-2019 at 07:34 AM.
 
Old 08-11-2019, 12:09 PM   #3
METROIDHunter_
LQ Newbie
 
Registered: Jan 2019
Location: USA
Distribution: Artix, Gentoo, Ubuntu 18.04, Slackware 14.2 -current
Posts: 8

Original Poster
Rep: Reputation: 0
Hi, thank you for your reply, hazel.

Maybe I'm misunderstanding the book? In section 7.6.5, under "FONT", it says:
Code:
Typically, this includes the font name, “-m”, and thename of the application character map to load. E.g., in order to load the “lat1-16” font together with the “8859-1”application character map (as it is appropriate in the USA), set this variable to “lat1-16 -m 8859-1”.
My understanding is that UNICODE=1 is only necessary if I plan to use a UTF-8 based locale, but I set my locale in /etc/profile with:
Code:
export LANG=en_US.ISO-8859-1
Adding "UNICODE=1" changed nothing, and interestingly, removing "-m 8859-1" changed the error to "Cannot open font file lat1-16", with or without "UNICODE=1".
I checked /usr/share/consolefonts and found "lat1-16.psfu.gz", so I'm not sure why that won't work.
On another note, not sure whether I should use "KEYMAP=qwerty" or "KEYMAP=us" but it hasn't made a difference so far.

I feel like I made a configuration or setup error somewhere, but I don't know where. I'll keep looking.

EDIT: I'm sorry, I shoulda mentioned, I'm using LFS 8.4 with SysVInit, not SystemD

Last edited by METROIDHunter_; 08-11-2019 at 12:26 PM.
 
  


Reply

Tags
console, init, locale



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] trying to understand /etc/rc.d/rcS.d/S70console lup_378 Linux From Scratch 3 09-24-2015 06:32 AM
[SOLVED] sendmail permission issues? Getting dbm map "Alias0": unsafe map file /etc/mail/alias exxoid AIX 3 08-23-2014 06:47 AM
Fails to boot - rcS /dev/tty1: No such file or directory Spearhawk Debian 1 03-29-2007 09:05 AM
SYSERR(root): hash map "generics": missing map file /etc/mail/genericstable.db? singying304 Linux - Networking 4 02-28-2005 06:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 09:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration