[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)
|
---|
| 15 | @echo --------------------------------------------------------------------------------$(WHITE)
|
---|
| 16 | endef
|
---|
| 17 |
|
---|
| 18 | define unpack
|
---|
[c3c4e1d] | 19 | @cd $(MOUNT_PT)$(SRC) && \
|
---|
| 20 | tar -xvf `ls -t $(1) | head -n1` > /tmp/unpacked
|
---|
[0170229] | 21 | endef
|
---|
| 22 |
|
---|
| 23 | define unpack2
|
---|
[c3c4e1d] | 24 | @cd $(MOUNT_PT)$(SRC) && \
|
---|
| 25 | /tools/bin/tar -xvf `ls -t $(1) | head -n1` > /tmp/unpacked
|
---|
[0170229] | 26 | endef
|
---|
| 27 |
|
---|
| 28 | define unpack3
|
---|
[c3c4e1d] | 29 | @cd $(SRC) && \
|
---|
| 30 | tar -xvf `ls -t $(1) | head -n1` > /tmp/unpacked
|
---|
[0170229] | 31 | endef
|
---|
| 32 |
|
---|
| 33 | define echo_finished
|
---|
| 34 | @echo $(BOLD)
|
---|
| 35 | @echo --------------------------------------------------------------------------------
|
---|
| 36 | @echo $(BOLD) Finished the build of $(BLUE)$(1)$(BOLD)
|
---|
| 37 | @echo --------------------------------------------------------------------------------
|
---|
| 38 | @echo -e \\t\\t$(RED)W A R N I N G$(BOLD)
|
---|
| 39 | @echo --------------------------------------------------------------------------------
|
---|
| 40 | @echo
|
---|
[769a219] | 41 | @echo To be able to boot your new system you need to follow
|
---|
[0170229] | 42 | @echo the next steps:$(WHITE)
|
---|
| 43 | @echo
|
---|
| 44 | @echo -e \\t- Enter to the chroot using the command found
|
---|
[67e3bc3] | 45 | @echo -e \\tin the section -Entering the Chroot Environment-
|
---|
| 46 | @echo -e \\texcept if building CLFS with METHOO=boot.
|
---|
[0170229] | 47 | @echo
|
---|
| 48 | @echo -e \\t- Set a password for the root user
|
---|
| 49 | @echo
|
---|
| 50 | @echo -e \\t- Edit /etc/fstab, /etc/hosts, /etc/sysconfig/clock,
|
---|
| 51 | @echo -e \\t/etc/sysconfig/console, /etc/sysconfig/network,
|
---|
| 52 | @echo -e \\t/etc/sysconfig//network-devices/ifconfig.eth0/ipv4 and
|
---|
| 53 | @echo -e \\tany other configuration file required to suit your needs.
|
---|
| 54 | @echo
|
---|
[67e3bc3] | 55 | @echo -e \\t- Set-up the boot loader. See the relevant book section.
|
---|
[0170229] | 56 | @echo
|
---|
| 57 | @echo -e \\t- Unmount the filesystems.
|
---|
| 58 | @echo
|
---|
| 59 | @echo If you are an experienced LFS user, several of those steps can be
|
---|
| 60 | @echo skipped or done in a different way. But then, that is something
|
---|
| 61 | @echo that you already know and there is no need to discuss it here.
|
---|
| 62 | @echo $(BOLD)
|
---|
| 63 | @echo --------------------------------------------------------------------------------
|
---|
| 64 | @echo -e \\t\\t$(GREEN)Have a nice day $(ORANGE):-\)$(BOLD)
|
---|
| 65 | @echo --------------------------------------------------------------------------------$(WHITE)
|
---|
| 66 | endef
|
---|
| 67 |
|
---|
| 68 | define echo_boot_finished
|
---|
| 69 | @echo $(BOLD)
|
---|
| 70 | @echo --------------------------------------------------------------------------------
|
---|
| 71 | @echo $(BOLD) Finished building a minimal boot system for $(BLUE)$(1)$(BOLD)
|
---|
| 72 | @echo --------------------------------------------------------------------------------
|
---|
| 73 | @echo -e \\t\\t$(RED)W A R N I N G$(BOLD)
|
---|
| 74 | @echo --------------------------------------------------------------------------------
|
---|
| 75 | @echo
|
---|
| 76 | @echo The build is not complete. Follow the next steps:$(WHITE)
|
---|
| 77 | @echo
|
---|
[67e3bc3] | 78 | @echo -e \\t- Edit $(MOUNT_PT)/etc/fstab
|
---|
[f80c1e0] | 79 | @echo -e \\t and any other configuration file required to suit your needs.
|
---|
[0170229] | 80 | @echo $(BOLD)
|
---|
| 81 | @echo $(BOLD)$(YELLOW)
|
---|
[623c323] | 82 | @echo 1.If it is necessary, transfer the newly created partition to the target machine
|
---|
[769a219] | 83 | @echo 2.Boot the new partition.
|
---|
| 84 | @echo 3.Once you are logged in issue the following commands
|
---|
| 85 | @echo -e \\t $(BOLD})cd /jhalfs
|
---|
[f80c1e0] | 86 | @echo -e \\t $(BOLD)make makesys
|
---|
[0170229] | 87 | @echo The build process should resume. Follow any instructions that appear.
|
---|
| 88 | @echo --------------------------------------------------------------------------------
|
---|
| 89 | @echo -e \\t\\t$(GREEN)Have a nice day $(ORANGE):-\)$(BOLD)
|
---|
| 90 | @echo --------------------------------------------------------------------------------$(WHITE)
|
---|
| 91 | endef
|
---|