LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 02-06-2008, 05:53 AM   #1
saritha
Member
 
Registered: May 2007
Posts: 117

Rep: Reputation: 15
Lfs


i am building LFS,my host system is suse linux,i had created seperate partition for LFS and working into that,

everything i followed as mention in the below site
http://www.linuxfromscratch.org/lfs/...ble/index.html

now i am in chapter 2,in that 2.4 partitioning ,i had didnot did swap that is /sbin/swapon -v /dev/<zzz>,

actually i made 3 partitions one for suse linux,and other is LFS when i am partitioning i named as LFS,and last is swap

so wheather i have do that swap

one more error i had got in chapter 4.3,when i am adding user

useradd -s /bin/bash -g lfs -m -k /dev/null lfs

i got this error

useradd -s /bin/bash -g lfs -m -k /dev/null lfs
useradd: Copying of skel directory failed.

so can i solve this error

Last edited by saritha; 02-07-2008 at 01:11 AM.
 
Old 02-07-2008, 04:40 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389
Hi,
Quote:
Originally Posted by saritha View Post
now i am in chapter 2,in that 2.4 partitioning ,i had didnot did swap that is /sbin/swapon -v /dev/<zzz>,
actually i made 3 partitions one for suse linux,and other is LFS when i am partitioning i named as LFS,and last is swap
so wheather i have do that swap
Depending on how much memory you have you could do without swap, but I personally would add at least some swap.
If you are using an existing swap partition, there is no need to format it. I do believe that suse also needs/has a swap partition (which can be shared if you want both suse and lfs in a double boot configuration).

Quote:
one more error i had got in chapter 4.3,when i am adding user

useradd -s /bin/bash -g lfs -m -k /dev/null lfs

i got this error

useradd -s /bin/bash -g lfs -m -k /dev/null lfs
useradd: Copying of skel directory failed.

so can i solve this error
The -m and -k /dev/null combo creates a clean homedir. If /etc/skell exists, it will be ignored adn no files will be created in the newly created homedir. Maybe suse's useradd warns you for this, although I doubt it.

If you execute the useradd command and end up with /home/lfs and there are no files present in that homedir, you can continue with setting the password. The environment that the lfs user needs will be created in chapter 4.4.

Hope this helps.
 
Old 01-31-2009, 02:30 PM   #3
Vardhaman
LQ Newbie
 
Registered: Jan 2007
Posts: 11

Rep: Reputation: 0
even i have the "copying of skel directory failed" error.

as mentioned by druuna, i do have a /home/lfs directory created and nothing is there in it.
if i proceed to the next step, will i get any errors later in the process?
 
Old 01-31-2009, 02:39 PM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389
Hi,

Yep, you can continue.
You need a clean homedir, that's the point of using -k /dev/null (as stated in the LFS document 4.3.....).
 
  


Reply


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
LFS 6.2: made mistake when going from lfs to root setup oldgeek Linux From Scratch 4 11-12-2006 09:00 PM
LFS question - lack of activity in LFS Forum nykey Slackware 4 06-05-2006 05:54 PM
Kernel Panic lfs LFS gbiyer Linux From Scratch 8 05-07-2006 03:48 AM
LFS Book Chapter 6 - 1st step (chroot to /mnt/lfs) doens't work bauld Linux From Scratch 11 03-15-2006 12:31 AM
LFS-7.0-cross-lfs-20050902-x86_64-Multilib Basel Linux From Scratch 0 09-03-2005 05:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 10:28 PM.

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