On 02/11/2018 10:37 PM, Bruce Dubbs wrote:
Tim Tassonis wrote:

I have found a workaround for my problem:

If I replace

mount -vt devpts devpts $LFS/dev/pts -o gid=5,mode=620

with

mount -v --bind /dev/pts $LFS/dev/pts


I get the needed /dev/pts/0 and sudo and su with password asking now works. As it seems that this is really only a chroot issue and su and sudo now work fine, I'll continue with that. I'm not yet sure of the exact security implications, but as this is a dedicated vm only for building the system, it should be ok.

What I recommend is just get ssh working and then work from your host. With ssl now in LFS, ssh does not need any dependencies.  I generally have a problem pasting between a host and VM anyway, so ssh cures that problem.

Are you using qemu?

Unfortunately, ssh does not cure this one problem for me, but otherwise, I also can't imagine working without ssh.

My setup is the following:

- I have a lfs 7.9 based shuttle barebone server running a headless qemu with vnc - In there, I installed a lfs 7.9 based vm called lfsd82, which has an ssh server and networking running, so it can be accessed from any machine at home
- I start the vm with the display on vnc, so I can access it when needed
- I then login to the machine with ssh and do everything with ssh

In the vm, I then created the lfs partition, setup the temporary system, chrooted into it and am now building the rest of lfs, plus an ssh server. At the end, I will re-install grub and setup grub.cfg to boot from the lfs partition. Then, I will ssh into the new lfs 8.2 and continue with blfs just the same. Has worked fine with lfs 7.6, 7.9 and 8.0.


Cheers
Tim
--
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

Reply via email to