Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
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.


  Search this Thread
Old 08-13-2007, 07:25 AM   #1
Registered: Sep 2005
Distribution: debian, solaris 10
Posts: 202

Rep: Reputation: 31
uname -r in chroot and blfs

i am looking for a work around to this in order to build blfs.
when I am in chroot and I do uname -r i get the kernel of the host i am chrooting from which is a very different kernel than the one in the lfs i have built.
how should I enter chroot so that the uname command, tells me which kernel the lfs system is using and not the host system.

just for the time to install x and the internet.
Old 08-13-2007, 08:24 AM   #2
Senior Member
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (
Posts: 1,900

Rep: Reputation: 69
Maybe you should just temporarily replace uname with a shell script which will output whatever you want? By the way, you can configure internet first and build elinks, and build X after that inside LFS. Also is it that bad that something will get built with incorrect kernel version information?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Info : not good to BLFS in chroot ... biniou Linux From Scratch 2 05-22-2007 02:55 AM
enter chroot for blfs LQ496873 Linux From Scratch 3 03-02-2006 12:01 PM
Uname ? phr3nzal Linux - Software 4 10-07-2005 08:52 AM
Is it ok to install the blfs as chroot? Zero-0-Effect Linux From Scratch 2 03-29-2004 07:37 AM
uname -r 2.6.4 /bin/bash General 25 03-16-2004 07:14 AM > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 12:47 PM.

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