LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Help changing back to root after chapter 6.8!!!! (https://www.linuxquestions.org/questions/linux-from-scratch-13/help-changing-back-to-root-after-chapter-6-8-a-893143/)

adi_30stm 07-22-2011 08:17 AM

Help changing back to root after chapter 6.8!!!!
 
Hi can anyone tell me how can i change back to root environment (root:/#) I created during chapter 6.4 to 6.7. I by mistake exit out of that environment and now am the root which i was at starting LFS (root [/]#)..

If it helps this one is in red text and other is gray text.

I hope i don't have to start over!

druuna 07-22-2011 08:28 AM

Hi,

Just re-enter the chrooted environment, as mentioned in chapter 6.4:
Code:

chroot "$LFS" /tools/bin/env -i \
    HOME=/root TERM="$TERM" PS1='\u:\w\$ ' \
    PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin \
    /tools/bin/bash --login +h

The above command does not create a permanent environment, you enter the environment you created in chapter 5.

BTW: If you rebooted, you also need to do the parts mentioned in the NOTE at the bottom of the page.

Hope this helps.

adi_30stm 07-22-2011 08:57 AM

Hey thanks i got around just awhile back ...i guess i overlooked it foolish of me thanks anyways


All times are GMT -5. The time now is 03:04 PM.