[c3c4e1d] | 1 |
|
---|
| 2 | # $Id$
|
---|
| 3 |
|
---|
[0170229] | 4 | BOLD= "[0;1m"
|
---|
| 5 | RED= "[1;31m"
|
---|
| 6 | GREEN= "[0;32m"
|
---|
| 7 | ORANGE= "[0;33m"
|
---|
| 8 | BLUE= "[1;34m"
|
---|
| 9 | WHITE= "[00m"
|
---|
| 10 |
|
---|
| 11 | define echo_message
|
---|
| 12 | @echo $(BOLD)
|
---|
| 13 | @echo --------------------------------------------------------------------------------
|
---|
| 14 | @echo $(BOLD)$(1) target $(BLUE)$@$(BOLD)
|
---|
[9199a13] | 15 | @echo $(WHITE)
|
---|
[0170229] | 16 | endef
|
---|
| 17 |
|
---|
| 18 | define unpack
|
---|
[c3c4e1d] | 19 | @cd $(MOUNT_PT)$(SRC) && \
|
---|
[460ea63] | 20 | tar -xvf `ls -t $(1) | head -n1` > $(PKG_LST)
|
---|
[0170229] | 21 | endef
|
---|
| 22 |
|
---|
| 23 | define unpack2
|
---|
[c3c4e1d] | 24 | @cd $(MOUNT_PT)$(SRC) && \
|
---|
[460ea63] | 25 | /tools/bin/tar -xvf `ls -t $(1) | head -n1` > $(PKG_LST)
|
---|
[0170229] | 26 | endef
|
---|
| 27 |
|
---|
| 28 | define unpack3
|
---|
[c3c4e1d] | 29 | @cd $(SRC) && \
|
---|
[460ea63] | 30 | tar -xvf `ls -t $(1) | head -n1` > $(PKG_LST)
|
---|
[0170229] | 31 | endef
|
---|
| 32 |
|
---|
[9e4b9a1] | 33 | define echo_report
|
---|
| 34 | @echo
|
---|
| 35 | @echo $(BOLD) The report file $(BLUE)$(1)$(BOLD) has been created
|
---|
| 36 | @echo
|
---|
| 37 | @echo ${WHITE}Please send the $(BOLD)$(MOUNT_PT)/jhalfs/$(1)$(WHITE)
|
---|
| 38 | @echo file to $(BOLD)manuel@linuxfromscratch.org$(WHITE)
|
---|
| 39 | @echo
|
---|
| 40 | @echo That will help us to keep more accurate SBU and
|
---|
| 41 | @echo disk usage values into the book. Thanks.
|
---|
| 42 | endef
|
---|
| 43 |
|
---|
[0170229] | 44 | define echo_finished
|
---|
| 45 | @echo $(BOLD)
|
---|
| 46 | @echo --------------------------------------------------------------------------------
|
---|
| 47 | @echo $(BOLD) Finished the build of $(BLUE)$(1)$(BOLD)
|
---|
| 48 | @echo --------------------------------------------------------------------------------
|
---|
| 49 | @echo -e \\t\\t$(RED)W A R N I N G$(BOLD)
|
---|
| 50 | @echo --------------------------------------------------------------------------------
|
---|
| 51 | @echo
|
---|
[769a219] | 52 | @echo To be able to boot your new system you need to follow
|
---|
[0170229] | 53 | @echo the next steps:$(WHITE)
|
---|
| 54 | @echo
|
---|
| 55 | @echo -e \\t- Enter to the chroot using the command found
|
---|
[67e3bc3] | 56 | @echo -e \\tin the section -Entering the Chroot Environment-
|
---|
[3b63c8c] | 57 | @echo -e \\texcept if building CLFS with METHOD=boot.
|
---|
[0170229] | 58 | @echo
|
---|
[9199a13] | 59 | @echo -e \\t- Set a password for the root user.
|
---|
[0170229] | 60 | @echo
|
---|
[3b63c8c] | 61 | @echo -e \\t- Edit or create /etc/fstab, /etc/hosts, /etc/sysconfig/clock,
|
---|
[0170229] | 62 | @echo -e \\t/etc/sysconfig/console, /etc/sysconfig/network,
|
---|
| 63 | @echo -e \\t/etc/sysconfig//network-devices/ifconfig.eth0/ipv4 and
|
---|
| 64 | @echo -e \\tany other configuration file required to suit your needs.
|
---|
| 65 | @echo
|
---|
[9199a13] | 66 | @echo -e \\t- Exit from the chroot.
|
---|
[0170229] | 67 | @echo
|
---|
[3b63c8c] | 68 | @echo -e \\t- Set-up the boot loader, except if building CLFS with METHOD=boot.
|
---|
[9199a13] | 69 | @echo -e \\tYou can set-up the host bootloader or the new boot-loader
|
---|
| 70 | @echo -e \\tinstalled on the new system.
|
---|
| 71 | @echo -e \\tIf the last, you must to mount the virtual filesystems, re-enter
|
---|
[3b63c8c] | 72 | @echo -e \\tthe chroot and be sure that /dev is populated with the
|
---|
[9199a13] | 73 | @echo -e \\trequired devices before configure the boot-loader. When ready,
|
---|
| 74 | @echo -e \\texit from the chroot and umount the filesystems
|
---|
[0170229] | 75 | @echo
|
---|
| 76 | @echo If you are an experienced LFS user, several of those steps can be
|
---|
| 77 | @echo skipped or done in a different way. But then, that is something
|
---|
| 78 | @echo that you already know and there is no need to discuss it here.
|
---|
| 79 | @echo $(BOLD)
|
---|
| 80 | @echo --------------------------------------------------------------------------------
|
---|
| 81 | @echo -e \\t\\t$(GREEN)Have a nice day $(ORANGE):-\)$(BOLD)
|
---|
| 82 | @echo --------------------------------------------------------------------------------$(WHITE)
|
---|
| 83 | endef
|
---|
| 84 |
|
---|
| 85 | define echo_boot_finished
|
---|
| 86 | @echo $(BOLD)
|
---|
| 87 | @echo --------------------------------------------------------------------------------
|
---|
| 88 | @echo $(BOLD) Finished building a minimal boot system for $(BLUE)$(1)$(BOLD)
|
---|
| 89 | @echo --------------------------------------------------------------------------------
|
---|
| 90 | @echo -e \\t\\t$(RED)W A R N I N G$(BOLD)
|
---|
| 91 | @echo --------------------------------------------------------------------------------
|
---|
| 92 | @echo
|
---|
| 93 | @echo The build is not complete. Follow the next steps:$(WHITE)
|
---|
| 94 | @echo
|
---|
[3b63c8c] | 95 | @echo -e \\t- Edit or create $(MOUNT_PT)/etc/fstab
|
---|
[f80c1e0] | 96 | @echo -e \\t and any other configuration file required to suit your needs.
|
---|
[0170229] | 97 | @echo $(BOLD)
|
---|
| 98 | @echo $(BOLD)$(YELLOW)
|
---|
[623c323] | 99 | @echo 1.If it is necessary, transfer the newly created partition to the target machine
|
---|
[769a219] | 100 | @echo 2.Boot the new partition.
|
---|
| 101 | @echo 3.Once you are logged in issue the following commands
|
---|
| 102 | @echo -e \\t $(BOLD})cd /jhalfs
|
---|
[f80c1e0] | 103 | @echo -e \\t $(BOLD)make makesys
|
---|
[0170229] | 104 | @echo The build process should resume. Follow any instructions that appear.
|
---|
| 105 | @echo --------------------------------------------------------------------------------
|
---|
| 106 | @echo -e \\t\\t$(GREEN)Have a nice day $(ORANGE):-\)$(BOLD)
|
---|
| 107 | @echo --------------------------------------------------------------------------------$(WHITE)
|
---|
| 108 | endef
|
---|