[877cc6a] | 1 |
|
---|
| 2 | # $Id$
|
---|
| 3 |
|
---|
| 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)
|
---|
| 15 | @echo --------------------------------------------------------------------------------$(WHITE)
|
---|
| 16 | endef
|
---|
| 17 |
|
---|
| 18 | define unpack
|
---|
| 19 | @cd $(MOUNT_PT)$(SRC) && \
|
---|
[82eb8c1] | 20 | tar -xvf `ls -t $(1) | head -n1` > $(PKG_LST)
|
---|
[877cc6a] | 21 | endef
|
---|
| 22 |
|
---|
| 23 | define unpack2
|
---|
| 24 | @cd $(MOUNT_PT)$(SRC) && \
|
---|
[82eb8c1] | 25 | /tools/bin/tar -xvf `ls -t $(1) | head -n1` > $(PKG_LST)
|
---|
[877cc6a] | 26 | endef
|
---|
| 27 |
|
---|
| 28 | define unpack3
|
---|
| 29 | @cd $(SRC) && \
|
---|
[82eb8c1] | 30 | tar -xvf `ls -t $(1) | head -n1` > $(PKG_LST)
|
---|
[877cc6a] | 31 | endef
|
---|
| 32 |
|
---|
[453bef0] | 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 |
|
---|
[877cc6a] | 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
|
---|
| 52 | @echo To be able to boot your new system you need to follow
|
---|
| 53 | @echo the next steps:$(WHITE)
|
---|
| 54 | @echo
|
---|
| 55 | @echo -e \\t- Enter to the chroot using the command found
|
---|
| 56 | @echo -e \\tin the section -Entering the Chroot Environment-
|
---|
| 57 | @echo -e \\texcept if building CLFS with METHOO=boot.
|
---|
| 58 | @echo
|
---|
| 59 | @echo -e \\t- Set a password for the root user
|
---|
| 60 | @echo
|
---|
| 61 | @echo -e \\t- Edit /etc/fstab, /etc/hosts, /etc/sysconfig/clock,
|
---|
| 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
|
---|
| 66 | @echo -e \\t- Set-up the boot loader. See the relevant book section.
|
---|
| 67 | @echo
|
---|
| 68 | @echo -e \\t- Unmount the filesystems.
|
---|
| 69 | @echo
|
---|
| 70 | @echo If you are an experienced LFS user, several of those steps can be
|
---|
| 71 | @echo skipped or done in a different way. But then, that is something
|
---|
| 72 | @echo that you already know and there is no need to discuss it here.
|
---|
| 73 | @echo $(BOLD)
|
---|
| 74 | @echo --------------------------------------------------------------------------------
|
---|
| 75 | @echo -e \\t\\t$(GREEN)Have a nice day $(ORANGE):-\)$(BOLD)
|
---|
| 76 | @echo --------------------------------------------------------------------------------$(WHITE)
|
---|
| 77 | endef
|
---|
| 78 |
|
---|
| 79 | define echo_boot_finished
|
---|
| 80 | @echo $(BOLD)
|
---|
| 81 | @echo --------------------------------------------------------------------------------
|
---|
| 82 | @echo $(BOLD) Finished building a minimal boot system for $(BLUE)$(1)$(BOLD)
|
---|
| 83 | @echo --------------------------------------------------------------------------------
|
---|
| 84 | @echo -e \\t\\t$(RED)W A R N I N G$(BOLD)
|
---|
| 85 | @echo --------------------------------------------------------------------------------
|
---|
| 86 | @echo
|
---|
| 87 | @echo The build is not complete. Follow the next steps:$(WHITE)
|
---|
| 88 | @echo
|
---|
| 89 | @echo -e \\t- Edit $(MOUNT_PT)/etc/fstab
|
---|
| 90 | @echo -e \\t and any other configuration file required to suit your needs.
|
---|
| 91 | @echo $(BOLD)
|
---|
| 92 | @echo $(BOLD)$(YELLOW)
|
---|
| 93 | @echo 1.If it is necessary, transfer the newly created partition to the target machine
|
---|
| 94 | @echo 2.Boot the new partition.
|
---|
| 95 | @echo 3.Once you are logged in issue the following commands
|
---|
| 96 | @echo -e \\t $(BOLD})cd /jhalfs
|
---|
| 97 | @echo -e \\t $(BOLD)make makesys
|
---|
| 98 | @echo The build process should resume. Follow any instructions that appear.
|
---|
| 99 | @echo --------------------------------------------------------------------------------
|
---|
| 100 | @echo -e \\t\\t$(GREEN)Have a nice day $(ORANGE):-\)$(BOLD)
|
---|
| 101 | @echo --------------------------------------------------------------------------------$(WHITE)
|
---|
| 102 | endef
|
---|