LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   I encounter with an error in nALFS when running a xml file. (https://www.linuxquestions.org/questions/linux-from-scratch-13/i-encounter-with-an-error-in-nalfs-when-running-a-xml-file-4175421828/)

k84834 08-13-2012 05:00 AM

I encounter with an error in nALFS when running a xml file.
 
I follow steps in Building LFS-6.0 with nALFS 1.2.3
in step 7 , at "And do what it says press the m key to run the elements we marked above and presto you lfs-6.0 system will start building." point , I enter m key and chapter 5 is running that stoped with below error :

┌────────────────────────────────────────────────┤ LFS.xml ├───┤ nALFS 1.2.4 ├─┐
│ * ! - LFS.xml │
│ * ! + Chapter 5 - Constructing a Temporary System │
│-> + Chapter 6 - Installing Basic System Software │
│ + Chapter 7 - Setting Up System Bootscripts │
│ + Chapter 8 - Making the LFS System Bootable │
│ + Chapter 9 - The End │
│ + Finishing Up │
│ │
│ │
│ │
├──────────────────────────────────────────────────────┤ r s w h B ├─┤
│I: Executing system command in /: │
│I: id -u lfs &> /dev/null || useradd -s /bin/bash -g lfs -m -k /dev/null l│
│fs │
│-: id: lfs: No such user │
│I: Executing system command in /: │
│I: echo lfs:lf1nstl | chpasswd │
│-: chpasswd: (user lfs) pam_chauthtok() failed, error: │
│-: Authentication token manipulation error │
│-: chpasswd: (line 1, user lfs) password not changed │
│E: Execution failed (1). │
│I: Total time executing: 00:00:00 │
└────────────────────────────────────────────────────────────┤ T 00:00:01 [] ├─

what I done to fix this error ? is this error meaning that the user don't exist or chpass command don't running ?


this is the xml file :
<alfs>

<stage name="Adding the LFS User">
<execute command="groupadd -f lfs" />

<execute command="id -u &lfs-user; &amp;> /dev/null || useradd -s /bin/bash -g lfs -m -k /dev/null &lfs-user;" />

<execute command="echo &lfs-user;:&lfs-password; | chpasswd" />

<ownership user="&lfs-user;">
<name>&LFS;/tools</name>
<name>&LFS;&build_dir;</name>
</ownership>
</stage>

</alfs>


All times are GMT -5. The time now is 02:59 AM.