Changeset 7c17066 for LFS/master.sh


Ignore:
Timestamp:
10/21/2008 09:29:13 PM (16 years ago)
Author:
George Boudreau <georgeb@…>
Branches:
2.3, 2.4, ablfs, ablfs-more, legacy, new_features, trunk
Children:
75d6d1c
Parents:
15c9e72
Message:

LFS only:: Added ability to enter chroot using makefile. (code:Bruce Dubbs)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LFS/master.sh

    r15c9e72 r7c17066  
    438438        fi
    439439
     440ck_LFS:
     441        @if [ \`echo \$(LFS)\`x = "x" ]; then \\
     442          echo "--------------------------------------------------"; \\
     443          echo "Enviroment variable LFS must be set";                \\
     444          echo "--------------------------------------------------"; \\
     445          exit 1; \
     446        fi
     447
    440448mk_SETUP:
    441449        @\$(call echo_SU_request)
     
    479487        @touch \$@
    480488
     489devices: ck_LFS ck_UID
     490        sudo mount -v --bind /dev \$(LFS)/dev
     491        sudo mount -vt devpts devpts \$(LFS)/dev/pts
     492        sudo mount -vt tmpfs shm \$(LFS)/dev/shm
     493        sudo mount -vt proc proc \$(LFS)/proc
     494        sudo mount -vt sysfs sysfs \$(LFS)/sys
     495
     496teardown: ck_LFS
     497        sudo umount -v \$(LFS)/sys
     498        sudo umount -v \$(LFS)/proc
     499        sudo umount -v \$(LFS)/dev/shm
     500        sudo umount -v \$(LFS)/dev/pts
     501        sudo umount -v \$(LFS)/dev
     502
     503chroot: devices
     504        sudo /usr/sbin/chroot \$(LFS) /tools/bin/env -i \\
     505      HOME=/root TERM=\$(TERM) PS1='\\u:\\w\\\$\$ ' \\
     506      PATH=/bin:/usr/bin:/sbin:/usr/sbin \\
     507      /tools/bin/bash --login
     508        \$(MAKE) teardown
    481509
    482510SETUP:        $chapter4
Note: See TracChangeset for help on using the changeset viewer.