Re: [lfs-support] Why does the udevadm settle command drive my video card crazy?

2017-02-14 Thread Hazel Russman
On Thu, 9 Feb 2017 17:31:36 +
Hazel Russman  wrote:

> I've just completed LFS on my laptop, a Samsung machine with Vaio
> electronics. The video card is a Vaio Chrome 9.
> 
> I already knew that this card has compatibility issues. I had
> problems after installing NuTyX, because the NuTyX initrd tried to
> set up a framebuffer console which the card objected to. It went
> black, then cycled slowly through the other available solid colours
> (white, red, green...) until I rebooted. Thierry Nutt advised me to
> blacklist the fb module and rebuild the kernel so as to bypass the
> initrd, and this solved the problem.
> 
> I didn't expect the same kind of trouble with lfs, but I got
> identical symptoms during the startup process. The kernel booted
> successfully and the init scripts started to run; then while the udev
> script was running, everything went black. I checked the logs
> afterwards and they showed that the initialisation had in fact run to
> completion. It was only the video output that had failed.
> 
> I edited some additional echo messages into the script and
> established that it was the "udevadm settle" command that caused the
> video problem. And when I blacklisted the fb module, the problem
> disappeared.
> 
> What is it about this command that affects my video card? 
> 

I'm replying to my own post just to tidy things up. It turns out that
udevadm settle was a complete red herring. This command takes a long
time to execute, so there's rather a high chance of something else
happening coincidentally at the same time. The real cause of the
problem was the kernel loading the viafb module followed by fbcon. It's
fbcon that crashes the screen. If it is blacklisted, the boot
completes normally. 

Actually it always completes normally according to the logs. It's just
that you can't see it doing so with the screen misbehaving. In any
case, the problem is purely with the Via Chrome graphics card and
nothing to do with LFS.

-- 

H Russman
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style


Re: [lfs-support] How can I set hostname?

2017-02-14 Thread ssmtpmailtesting ssmtpmailtesting
@Bruce,
>Yes.  For systemd, Section 7.2.3.
>After bootup, use hostnamectl.
>  -- Bruce

I didn't install systemd. I have installed sysvinit.

@bucca,
>try this as root:
>echo hostname > /etc/hostname

cat /etc/hostname = myhostname <-- it's already there

@wiliam,
>Hello,

>https://www.gnu.org/software/coreutils/manual/html_node/hostname->invocation.html

>You can use coreutils hostname program.

>Sincerely,

>William Harrington

I tried with "hostname myhostname". Still root@(none) prompt there.
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style


Re: [lfs-support] How can I set hostname?

2017-02-14 Thread Ken Moffat
On Mon, Feb 13, 2017 at 07:34:07AM +0600, ssmtpmailtesting ssmtpmailtesting 
wrote:
> How is hostname set? I'm not using lfs-bootscripts. After login, I see
> root@(none). Why is this? If I do sysctl kernel.hostname, it shows
> can't open /proc/sys... no such file or directory. But /etc/hostname
> has "myhostname".
> 
> I want to set hostname manually. I don't want to use lfs-bootscript.

Apart from what has already been said, you didn't tell us what you
have managed to do (e.g. with init=/bin/bash you end up with a
read-only root filesystem - I get the impression you have gone past
that).  So everybody is guessing.

But to be honest, most of us don't want to debug your bootscripts,
in the same way that most of us don't want to debug the details of
why somebody else's build-scripts fail.  Creating your own
bootscripts may be a worthwhile approach (with the downside that you
will then be on your own for everything you later need to start when
you get to whichever other packages you want to run ;) but you might
find it easiest to begin by working out what the individual LFS
bootscripts do, and use them as guidance for things you want to do.

From this initial question, I assume you have not mounted /proc.
Some people think not mounting /proc is a valid choice, but I think
it is a cause of pain.

ĸen
-- 
`I shall take my mountains', said Lu-Tze. `The climate will be good
for them.' -- Small Gods
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style


Re: [lfs-support] How can I set hostname?

2017-02-14 Thread Michael Shell
On Tue, 14 Feb 2017 12:02:45 +0600
ssmtpmailtesting ssmtpmailtesting  wrote:

> I added: echo myhostname > /proc/sys/kernel/hostname
> Still same prompt = root@(none)
> But if I install lfs-bootscript, then it changes to root@myhostname.
> I also added /etc/fstab and /etc/inittab
> 
> Did I miss anything?


AFAIK, bash (if you are running a different shell than bash, let us
know) does get the hostname information from the kernel and that that
can be set via writing to /proc/sys/kernel/hostname. An instance of bash
also sets its variable $HOSTNAME to the hostname it found when it started
up. However, do remember that already running instances of bash will need
to be restarted *after* the system/kernel hostname is changed for them to
see the new name.

For example, as root in a bash prompt:

echo testhost > /proc/sys/kernel/hostname
exec /bin/bash
export PS1="[\u@\h]: "

should then yield a 

[root@testhost]:

prompt. If not, what does your

cat /proc/sys/kernel/hostname

say? It should be

testhost

If you don't have a /proc/sys/kernel/hostname file on system startup,
then the kernel may not have proc support and you will either have to
enable that feature or set the host name using a utility that calls
the sethostname() C-library system call (such as /bin/hostname, from
inetutils, as William Harrington suggested).

On Tue, 14 Feb 2017 13:16:12 +0100
Michele Bucca  wrote:

> try this as root:
> echo hostname > /etc/hostname

I think the startup scripts grab the host name from /etc/hostname,
but he doesn't want to use any startup scripts. AFAIK, bash
et al. does not look at /etc/hostname at all.

Does anyone know if any common shell or application does look at
/etc/hostname? If so, he will indeed have to set that one too.



   Mike



-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style


[lfs-support] LFS-8.0-rc1 is released

2017-02-14 Thread Bruce Dubbs
The Linux From Scratch community announces the release of LFS Version 
8.0-rc1. It is a preliminary release of LFS-8.0. Major changes include 
toolchain updates to glibc-2.25 and and gcc-6.3.0. In total, 28 packages 
were updated since the last release. Changes to the text have also been 
made throughout the book. The Linux kernel has also been updated to 
version 4.9.9.


This is a new major version of LFS. The change to 8.0 is due to the 
removal of the symbolic link from /lib to /lib64 and the complete removal 
of /usr/lib64. An additional feature is that the gold linker 
(/usr/bin/ld.gold) is now available although it is not the default linker.


We encourage all users to read through this release of the book and test 
the instructions so that we can make the final release as good as possible.


You can read the book online [0], or download [1] to read locally.

In coordination with this release, a new version of LFS using the systemd 
package is also being released. This package implements the newer systemd 
style of system initialization and control and is consistent with LFS in 
most packages.


You can read the systemd version of the book online [2], or download [3] 
to read locally.



  -- Bruce

[0] http://www.linuxfromscratch.org/lfs/view/8.0-rc1/
[1] http://www.linuxfromscratch.org/lfs/downloads/8.0-rc1/
[2] http://www.linuxfromscratch.org/lfs/view/8.0-systemd-rc1/
[3] http://www.linuxfromscratch.org/lfs/downloads/8.0-systemd-rc1/
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style


Re: [lfs-support] How can I set hostname?

2017-02-14 Thread William Harrington
On Mon, February 13, 2017 01:34, ssmtpmailtesting ssmtpmailtesting wrote:
> How is hostname set? I'm not using lfs-bootscripts. After login, I see
> root@(none). Why is this? If I do sysctl kernel.hostname, it shows
> can't open /proc/sys... no such file or directory. But /etc/hostname
> has "myhostname".
>
> I want to set hostname manually. I don't want to use lfs-bootscript.

Hello,

https://www.gnu.org/software/coreutils/manual/html_node/hostname-invocation.html

You can use coreutils hostname program.

Sincerely,

William Harrington
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style


Re: [lfs-support] How can I set hostname?

2017-02-14 Thread Michele Bucca
2017-02-14 8:07 GMT+01:00 Bruce Dubbs :
> ssmtpmailtesting ssmtpmailtesting wrote:
>>
>> I added: echo myhostname > /proc/sys/kernel/hostname
>> Still same prompt = root@(none)
>> But if I install lfs-bootscript, then it changes to root@myhostname.
>> I also added /etc/fstab and /etc/inittab
>>
>> Did I miss anything?
>
>
> Yes.  For systemd, Section 7.2.3.
>
> After bootup, use hostnamectl.
>
>   -- Bruce
>
>
>
try this as root:
echo hostname > /etc/hostname

> --
> http://lists.linuxfromscratch.org/listinfo/lfs-support
> FAQ: http://www.linuxfromscratch.org/blfs/faq.html
> Unsubscribe: See the above information page
>
> Do not top post on this list.
>
> A: Because it messes up the order in which people normally read text.
> Q: Why is top-posting such a bad thing?
> A: Top-posting.
> Q: What is the most annoying thing in e-mail?
>
> http://en.wikipedia.org/wiki/Posting_style
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style