I mean should I extract udev-lfs-197-2.tar.bz2 and edit the files inside the package to rename lfs/LFS -> unim/UNIM if I found it to compile? Thank you for your kind words and support Mr. Bruce.
On Sat, May 18, 2013 at 3:19 AM, Bruce Dubbs <bruce.du...@gmail.com> wrote: > Sandy Widianto wrote: > > Because of my project and my learning purpose, I renamed everything > lfs/LFS > > to unim/UNIM. > > user/group: > > lfs -> unim > > on commands for everything, examples: > > --------------- > > mkdir -v $UNIM/sources > > chmod -v a+wt $UNIM/sources > > mkdir -v $UNIM/tools > > ln -sv $UNIM/tools / > > groupadd unim > > useradd -s /bin/bash -g unim -m -k /dev/null unim > > passwd unim > > chown -v unim $UNIM/tools > > chown -v unim $UNIM/sources > > > > cat > ~/.bashrc << "EOF" > > set +h > > umask 022 > > UNIM=/mnt/unim > > LC_ALL=POSIX > > UNIM_TGT=$(uname -m)-unim-linux-gnu > > PATH=/tools/bin:/bin:/usr/bin > > export UNIM LC_ALL UNIM_TGT PATH > > EOF > > ------------- > > mkdir -v $UNIM/{dev,proc,sys} > > mknod -m 600 $UNIM/dev/console c 5 1 > > mknod -m 666 $UNIM/dev/null c 1 3 > > mount -v --bind /dev $UNIM/dev > > mount -vt devpts devpts $UNIM/dev/pts > > mount -vt proc proc $UNIM/proc > > mount -vt sysfs sysfs $UNIM/sys > > > > if [ -h $UNIM/dev/shm ]; then > > link=$(readlink $UNIM/dev/shm) > > mkdir -p $UNIM/$link > > mount -vt tmpfs shm $UNIM/$link > > unset link > > else > > mount -vt tmpfs shm $UNIM/dev/shm > > fi > > > > ------------- > > chroot "$UNIM" /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 > > ---------------- > > Everything was went smoothly and now I'm at chapter 6.61. Udev-197 > > (Extracted from systemd-197) - LFS 7.3. > > I think udev-lfs-197-2.tar.bz2 is special package for LFS, so should I > > rename evrything inside the package to continue it? > > I'm not sure I understand your question. You did not follow the book's > recommendation and use the name LFS for the target partition, but that's > OK, even if a little confusing to others. It's your distro. However, > once you enter chroot, everything is done as root, no changes to user or > location need to be made. Just follow the book. > > -- Bruce > > > > -- > http://linuxfromscratch.org/mailman/listinfo/lfs-support > FAQ: http://www.linuxfromscratch.org/lfs/faq.html > Unsubscribe: See the above information page >
-- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page