Tag: LFS 4.3

  • $LFS/sources rabbit hole

    So what should the permissions be for /sources at the end of Chapter 4? The manual would seem to be leaving /sources as root:root. Instances of Google AI Mode were divided, but some of them argued forcefully that to compile by user lfs, then /sources had to be lfs:lfs and to change it to that…

  • Error recap

    Those last two sessions were incredibly frustrating. I felt that I may not be up to this. Analyzing what happened, however, there were five errors: One was not knowing how to properly log in as root. Now I know. A second was a typo I made. A third was caused by Google AI Mode telling…

  • Correcting errors

    I wanted to check something, in fact I was planning to go over the startup files again, and found I couldn’t log in/on as lfs. Panicked. A new Google AI Mode session. Log on as root with sudo su – and look through the files for errors. I found a typo in .bashrc, a missing…

  • Adding the LFS User

    Ch. 4.3 of the manual. Add LFS user and group sudo groupadd lfssudo useradd -s /bin/bash -g lfs -m -k /dev/null lfs This adds user lfs, -m creates a home directory for user lfs-k /dev/null prevents something-s /bin/bash makes bash its default shell. Add user lfs password sudo passwd lfs It responds “bad password” and…

  • For Loop from Hell

    The next part of LFS Ch. 4.2, creating a limited directory layout. Descent into Hell The manual says: As root, for i in in lib sbin; do ln -sv usr/$i $LFS/$i done Google AI Mode explained that the “usr” in this code is relative to $LFS and therefore will be in $LFS and not in…