1 | BOLD= "[0;1m"
|
---|
2 | RED= "[1;31m"
|
---|
3 | GREEN= "[0;32m"
|
---|
4 | ORANGE= "[0;33m"
|
---|
5 | BLUE= "[1;34m"
|
---|
6 | WHITE= "[00m"
|
---|
7 |
|
---|
8 | define echo_message
|
---|
9 | @echo $(BOLD)
|
---|
10 | @echo --------------------------------------------------------------------------------
|
---|
11 | @echo $(BOLD)$(1) target $(BLUE)$@$(BOLD)
|
---|
12 | @echo --------------------------------------------------------------------------------$(WHITE)
|
---|
13 | endef
|
---|
14 |
|
---|
15 | define unpack
|
---|
16 | @if [ -f $(MOUNT_PT)$(SRC)/$(1).bz2 ] ; then \
|
---|
17 | cd $(MOUNT_PT)$(SRC) ; tar -xvjf $(1).bz2 > /tmp/unpacked ; \
|
---|
18 | else \
|
---|
19 | cd $(MOUNT_PT)$(SRC) ; tar -xvzf $(1).gz > /tmp/unpacked ; \
|
---|
20 | fi ;
|
---|
21 | endef
|
---|
22 |
|
---|
23 | define unpack2
|
---|
24 | @cd $(MOUNT_PT)$(SRC) ; /tools/bin/tar -xvf $(1) > /tmp/unpacked
|
---|
25 | endef
|
---|
26 |
|
---|
27 | define unpack3
|
---|
28 | @cd $(MOUNT_PT)$(SRC) ; tar -xvf $(1) > /tmp/unpacked
|
---|
29 | endef
|
---|
30 |
|
---|
31 | define unpack4
|
---|
32 | @cd $(SRC) ; tar -xvf $(1) > /tmp/unpacked
|
---|
33 | endef
|
---|
34 |
|
---|
35 | define echo_finished
|
---|
36 | @echo $(BOLD)
|
---|
37 | @echo --------------------------------------------------------------------------------
|
---|
38 | @echo $(BOLD) Finished the build of $(BLUE)$(1)$(BOLD)
|
---|
39 | @echo --------------------------------------------------------------------------------
|
---|
40 | @echo -e \\t\\t$(RED)W A R N I N G$(BOLD)
|
---|
41 | @echo --------------------------------------------------------------------------------
|
---|
42 | @echo
|
---|
43 | @echo To be able to boot your new LFS system you need to follow
|
---|
44 | @echo the next steps:$(WHITE)
|
---|
45 | @echo
|
---|
46 | @echo -e \\t- Enter to the chroot using the command found
|
---|
47 | @echo -e \\tin 8.4 Entering the Chroot Environment
|
---|
48 | @echo
|
---|
49 | @echo -e \\t- Set a password for the root user
|
---|
50 | @echo
|
---|
51 | @echo -e \\t- Edit /etc/fstab, /etc/hosts, /etc/sysconfig/clock,
|
---|
52 | @echo -e \\t/etc/sysconfig/console, /etc/sysconfig/network,
|
---|
53 | @echo -e \\t/etc/sysconfig//network-devices/ifconfig.eth0/ipv4 and
|
---|
54 | @echo -e \\tany other configuration file required to suit your needs.
|
---|
55 | @echo
|
---|
56 | @echo -e \\t- Set-up Grub. See chapter08/grub.html
|
---|
57 | @echo
|
---|
58 | @echo -e \\t- Unmount the filesystems.
|
---|
59 | @echo
|
---|
60 | @echo If you are an experienced LFS user, several of those steps can be
|
---|
61 | @echo skipped or done in a different way. But then, that is something
|
---|
62 | @echo that you already know and there is no need to discuss it here.
|
---|
63 | @echo $(BOLD)
|
---|
64 | @echo --------------------------------------------------------------------------------
|
---|
65 | @echo -e \\t\\t$(GREEN)Have a nice day $(ORANGE):-\)$(BOLD)
|
---|
66 | @echo --------------------------------------------------------------------------------$(WHITE)
|
---|
67 | endef
|
---|
68 |
|
---|
69 | define echo_boot_finished
|
---|
70 | @echo $(BOLD)
|
---|
71 | @echo --------------------------------------------------------------------------------
|
---|
72 | @echo $(BOLD) Finished building a minimal boot system for $(BLUE)$(1)$(BOLD)
|
---|
73 | @echo --------------------------------------------------------------------------------
|
---|
74 | @echo -e \\t\\t$(RED)W A R N I N G$(BOLD)
|
---|
75 | @echo --------------------------------------------------------------------------------
|
---|
76 | @echo
|
---|
77 | @echo The build is not complete. Follow the next steps:$(WHITE)
|
---|
78 | @echo
|
---|
79 | @echo -e \\t- Enter to the chroot using the command found
|
---|
80 | @echo -e \\tin 8.4 Entering the Chroot Environment
|
---|
81 | @echo
|
---|
82 | @echo -e \\t- Set a password for the root user
|
---|
83 | @echo
|
---|
84 | @echo -e \\t- Edit /etc/fstab, /etc/hosts, /etc/sysconfig/clock,
|
---|
85 | @echo -e \\t/etc/sysconfig/console, /etc/sysconfig/network,
|
---|
86 | @echo -e \\t/etc/sysconfig//network-devices/ifconfig.eth0/ipv4 and
|
---|
87 | @echo -e \\tany other configuration file required to suit your needs.
|
---|
88 | @echo
|
---|
89 | @echo -e \\t- Set-up Grub.
|
---|
90 | @echo
|
---|
91 | @echo -e \\t- Unmount the filesystems.
|
---|
92 | @echo
|
---|
93 | @echo If you are an experienced LFS user, several of those steps can be
|
---|
94 | @echo skipped or done in a different way. But then, that is something
|
---|
95 | @echo that you already know and there is no need to discuss it here.
|
---|
96 | @echo $(BOLD)
|
---|
97 | @echo $(BOLD)$(YELLOW)
|
---|
98 | @echo Boot the new partition. Once you are logged in issue the following cmds
|
---|
99 | @echo -e \\t cd /jhahlfs
|
---|
100 | @echo -e \\t make XXXXXXXX
|
---|
101 | @echo The build process should resume. Follow any instructions that appear.
|
---|
102 | @echo --------------------------------------------------------------------------------
|
---|
103 | @echo -e \\t\\t$(GREEN)Have a nice day $(ORANGE):-\)$(BOLD)
|
---|
104 | @echo --------------------------------------------------------------------------------$(WHITE)
|
---|
105 | endef
|
---|