Questions tagged [lfs]

(LFS) - Linux From Scratch is a Linux distribution that you build from source (scratch) piece by piece.

Filter by
Sorted by
Tagged with
1
vote
2answers
756 views

LFS (Linux From Scratch) hard disk partition requirement

I am going through the LFS documentation in order to build my flavor of firmware for our systems. Currently my host machine is Ubuntu 18.10. I have 2 hard drives /dev/sda and /dev/sdb. My Ubuntu ...
0
votes
1answer
229 views

confused about lfs sources installation

I started to homemode Linux build using LFS book. I came to Part II. - Chapter 5 about "Constracting a Temporary System". I downloaded all needed sources to /mnt/lfs/sources. When i want to start ...
0
votes
2answers
2k views

How to create partitions for using Linux from Scratch [closed]

I am creating my OS using Linux from Scratch. I have installed Puppy Linux on my current hard disk (A). I want to create LFS on second drive (B). Can someone brief me a little on how partitioning has ...
0
votes
2answers
972 views

Should I use /dev/sda or /dev/sdb in fstab when booting from USB?

I am building Linux from Scratch to put on a usb drive but don’t know if Linux always calls the drive being booted from /dev/sda or not. I have two disks in the system, my SSD which is called /dev/...
4
votes
1answer
946 views

How can I copy text from Links (webpage) to the console?

I have been building a Linux From Scratch system and I have installed the Links web browser on it, which I am running in graphical mode via DirectFB (I have not yet installed the X Window System). I ...
1
vote
0answers
88 views

Cannot install Sed in tools directory, Permission Denied

I am building Linux From Scratch. Here's the error I faced during installation of sed. /tools/bin/install: cannot create regular file '/tools/bin/sed': Permission denied Because of this I cannot ...
3
votes
1answer
7k views

How to remove symbolic link from directory in Fedora?

I was trying to create symbolic link to directory in Fedora. $ sudo ln -sv $LFS/tools Then this error occurs. ln: failed to create symbolic link './tools': File exists How do I remove symbolic ...
2
votes
1answer
560 views

Linux from Scratch 8.1. Issue related to Zlib 1.2.11

I am doing Linux from Scratch. I am currently at 6.11 section i.e zlib 1.2.11 in LFS 8.2 . I did the following as per the book: 1) Prepare Zlib for compilation: ./configure --prefix=/usr 2)Compile ...
0
votes
1answer
4k views

Kernel Panic - not syncing: VFS: Unable to mount root fs - LFS

I have created a LFS (linux from scratch). All the files is on a secondary hdd. ie. /dev/sdb There is no partition in that like sdb1 or sdb2. Both root and boot is in the same /dev/sdb . My host ...
1
vote
0answers
579 views

Changing system wide GCC compilation options such as -DFORTIFY_SOURCE, PIE and stack_protector

This is my first StackExchange question ever, and if it is in the wrong place (UNIX and Linux vs. somewhere like Software Engineering?) please point me right! A very long time ago, I built a system ...
1
vote
1answer
413 views

Do I need a framebuffer driver for a minimal CLI system without X?

I've recently built a Linux From Scratch system on my Apple Macbook laptop; however, I've been struggling to understand the graphics hardware and what kernel driver options I need to enable. The LFS ...
3
votes
1answer
403 views

Linux From Scratch Inside of an LXC Container

Is it possible to build ‘Linux From Scratch’ (LFS) inside of an LXC container, as opposed to creating a dedicated partition per the LFS instructions?
0
votes
1answer
67 views

How best to troubleshoot a source package configure script?

I've been trying to compile the GnuTLS package from source, as part of a BLFS (Linux From Scratch) system. Here is the LFS page for it. I have installed all of the required and recommended packages ...
1
vote
0answers
123 views

Errors during LFS first boot

I just finished building my LFS system, but been running into issues during the first boot. The error that comes up is: hd1 cannot get c/h/s values So a little background: The base machine I used ...
0
votes
1answer
262 views

Why does my System.map file not contain a 'Version_XXXXX' line?

In relation to this question that I asked previously: Linux Kernel: 'Cannot find map file' The System.map file that is being generated by my linux kernel build (4.12.7) does not contain a ...
0
votes
1answer
2k views

Linux Kernel: 'Cannot find map file'

I've been trying to get a Linux kernel to run that I've configured and compiled myself, but so far without success. The machine is an Apple Macbook (Intel Core 2 Duo, 64-bit) that has the free ...
0
votes
1answer
25 views

Is it needed for the server daemon to running so that it could be included as a dependency while building some other package?

I'm making the postfix MTA which depends on some database packages(mariadb, postgresql,...). I'm building on the instructions of Beyond Linux Form Scratch (BLFS) but I fear if it is needed for the ...
0
votes
2answers
133 views

Problem compiling QT4 in Beyond Linux From Scratch 7.8

I'm using a VirtualBox machine (32 bit) to build BLFS to comply with the Linux Standard Base (all the packages mentioned in the book (http://www.linuxfromscratch.org/blfs/view/7.8/), with required and ...
11
votes
5answers
13k views

Split string using IFS

I have written a sample script to split the string but it is not working as expected #!/bin/bash IN="One-XX-X-17.0.0" IFS='-' read -r -a ADDR <<< "$IN" for i in "${ADDR[@]}"; do echo "...
2
votes
2answers
2k views

How do I create a proper /etc/fstab file for my LFS partition?

I'm trying to create an appropriate /etc/fstab file for my LFS partition, as in LFS part 8.2. How do I find out the file systems for my / mount-point and my swap mount point ( and )? And how do I ...
1
vote
1answer
514 views

Error when compiling XML-Parser-2.44 with Perl

When trying to perl Makefile.pl XML-Parser-2.44 while chrooted in LFS, I get this error: Checking if your kit is complete... Looks good Warning: prerequisite LWP::UserAgent 0 not found. Have /tools/...
1
vote
1answer
543 views

Setup wifi configurations for Broadcom43142

I'm working on a custom version of Linux distro (more specifically, the LFS project) which means I don't have a package manager and I install packages manually. I try to setup the BCM43142 pci card (...
0
votes
1answer
312 views

Using a USB drive as the working drive/partition(s) on which I create Linux From Scratch? [closed]

I'm interested in going through the Linux From Scratch (LFS) book for an under-the-hood Linux learning experience. To do this, one needs an existing host Linux system from which to work. I want to ...
-2
votes
2answers
808 views

Error when chrooting with LFS [closed]

When I attempt to chroot in chapter 6.4 with this code: chroot "$LFS" /tools/bin/env -i \ HOME=/root \ TERM="$TERM" \ PS1='\u:\w\$ ' \ PATH=/bin:/...
1
vote
1answer
1k views

BLFS Xorg: Fatal server error no screens found

I'm trying to build the Xorg X Window System Environment as outlined in Beyond Linux From Scratch Version 8.0. My BLFS system resides in a Virtual Machine using VirtualBox Version 5.0.10 r104061. I ...
1
vote
1answer
3k views

linux from scratch error “These critical programs are missing or too old: gawk”

I am following "Linux from Scratch" book version 8.0, and I reached section (5.7. Glibc-2.25). When trying to configure glibc I get this error: These critical programs are missing or too old: gawk ...
1
vote
1answer
343 views

Why do we need to change root (chroot) to continue building my Linux system in LFS?

Why do we need to change root (chroot) to continue building my Linux system in LFS starting chapter 6? In chapter 5, we built all the tools using the host system, I understand that all the compilers ...
1
vote
2answers
281 views

Why LFS and CLFS change the path used to find the dynamic linker?

Both LFS and CLFS apply patches to the GCC source before building. The CLFS patches are a bit more involved than the LFS patches, but what they have in common is the changing of the path used to find ...
0
votes
1answer
296 views

Linux From Scratch 7.10 issue, EFI partition

Just a little background information, I am taking a Unix II course, instructor being Bruce Dubbs, the managing editor for the LFS.org project. I am building LFS in a Debian 8.6 host for a Unix II ...
11
votes
1answer
47k views

bash: cannot set terminal process group (-1): Inappropriate ioctl for device

Trying to execute the source command using "lfs" user on ubuntu 14.04 and getting this: root@linux:~/lfs# su lfs - -c "source ~/.bash_profile" bash: cannot set terminal process group (-1): ...
1
vote
1answer
725 views

LFS Linux kernel won't boot - black screen

I've recently completed an LFS build using GRUB-2.03~beta, and I've installed this using UEFI. When I boot linux however, I'm greeted with a black screen. I'm unsure how to debug this as the kernel ...
0
votes
1answer
133 views

Locked out of ssh after mounting bind /dev /run /proc and reboot

I've added the following commands in my /etc/rc.local file to automatically mount kernel's virtual file system, as said on Linux From Scratch (LFS). And rebooted... Sections 6.2.2 Mounting and ...
2
votes
0answers
305 views

LFS 7.10 - why am I getting an error when using make command for expect-5.45

I am trying to compile expect-5.45 for LFS everything works until I use the make command, below is the output of using the make command: gcc -DPACKAGE_NAME=\"expect\" -DPACKAGE_TARNAME=\"expect\" -...
1
vote
0answers
793 views

Create a UEFI bootable persistent USB Livesystem

After a copple of tries with Ubuntu that failed to be persistent, and the hint to create a fresh question form the community to find I easier. I am try a new attemp. My Goal: A USB stick live ...
1
vote
1answer
727 views

LFS Kernel Panic on first boot

I recently finally finished my build of LinuxFromScratch version 7.9-SYSTEMD. There is one change I had to make from the book. I needed to aquire a patch for the package inettools that caused ...
1
vote
0answers
342 views

Building kernel for BeagleBone Black lead me hdmi problems

I have successfully followed CLFS book to build RPi and BBB embedded systems. In RPi case the bootloader did not give me problems with device tree. Some years ago I would have to patch Torvalds' ...
0
votes
1answer
1k views

GCC 5.1.0 fails to compile following the LFS guide — pass 2; linking errors?

I'm trying to follow the LFS guide for compiling the GCC 5.1 with binutils 5.25 and glibc 2.21 and the process fails when reaching the "gcc pass 2" step giving me the error: ld: /tools/lib/../lib64/...
1
vote
0answers
296 views

Auto-detect video card driver

I've recently made a Linux From Scratch with Kernel 4.5.0 on virtualbox. In the /etc/X11/xorg.conf I have listed my video driver as vesa However when I boot into the live session in my laptop, the ...
1
vote
1answer
2k views

Bash script to change password in chroot

I have build a Linux From Scratch live CD and wrote an installer script for it. There is a step in that script in which I take an username and password from the user and create an user. The installed ...
0
votes
1answer
499 views

Install Linux From Live CD

I have made a Linux From Scratch and built a live CD from it. I also wrote a script in /usr/sbin named install-lfs. When I want to install Linux, I just have to open a terminal in the live session and ...
2
votes
1answer
14k views

GRUB error- no suitable video mode found

I recently made an LFS and made some changes in GRUB. I added the update-grub command. I'm able to set background color and highlight color. But when I add a custom theme- update-grub gives- ...
0
votes
1answer
179 views

Possible problems deleting /tools in LFS

I recently made a Linux From Scratch and now I want to delete the /tools directory. But before rushing through it, I ran ldd /bin/* | grep '/tools' Which gave me this liblzma.so.5 => /tools/lib/...
4
votes
0answers
47 views

Adding custom option in kde settings [closed]

I recently made a Linux From Scratch and installed KDE4. Now I want to add an option named "about" in the KDE settings, which will display info about my LFS. My question is "Is it possible?" If yes ...
0
votes
0answers
117 views

KDE Framework 5 buid problem on Beyond Linux From Scratch

I was building KDE Framework 5 according to the BLFS book Version 2016-02-16. The link is here http://linuxfromscratch.org/blfs/view/svn/kde/krameworks5.html But the build process stoppd at ...
0
votes
0answers
95 views

Xterm and User problem on Linux From Scratch

I made a linux system using LFS book 7.8 and then went to BLFS 7.8. I installed lxdm and xfce4 desktop. All the necessary drivers and libraries are installed. Now when I log in as root, I get no ...
2
votes
1answer
713 views

Building an LFS system using ELLCC

Firstly, this isn't my first attempt at building an LFS system - I've already successfully built LFS 7.8 and LFS 7.8-systemd. I would like to replace GCC+GlibC with ELLCC, which is Clang/LLVM+musl. ...
2
votes
2answers
497 views

Why install gcc again in chapter 6 linux from scratch

I am trying to follow the LFS book, and couldn't get my mind around this question: we built the GCC compiler in chapter 5 in the target partition, why do we do that again after entering the chroot ...
0
votes
1answer
902 views

Error while compiling “5.9. Binutils-2.25 - Pass 2 ”

When I try to build binutils, I get the following error make[1]: *** [configure-bfd] Error 1 make[1]: Leaving directory `/mnt/lfs/sources/binutils-build' make: *** [all] Error 2 Here is the full ...
1
vote
2answers
139 views

LFS Troubles - Applying Patch in Section 5.7.1

Apologize in advance if this has been asked before, and if it is very obvious. I'm following the guide pretty literally at this point to get started. The page in question is this: http://...
1
vote
1answer
477 views

E2fsprogs undefined reference to symbol - LFS

I'm building an LFS system, and I've gotten to this page, but when I run make it says: make[2]: Entering directory '/sources/e2fsprogs-1.42.13/build/e2fsck' LD e2fsck /usr/bin/ld: journal.o: ...