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) && \
|
---|
20 | tar -xvf `ls -t $(1) | head -n1` > /tmp/unpacked
|
---|
21 | endef
|
---|
22 |
|
---|
23 | define unpack2
|
---|
24 | @cd $(MOUNT_PT)$(SRC) && \
|
---|
25 | /tools/bin/tar -xvf `ls -t $(1) | head -n1` > /tmp/unpacked
|
---|
26 | endef
|
---|
27 |
|
---|
28 | define unpack3
|
---|
29 | @cd $(SRC) && \
|
---|
30 | tar -xvf `ls -t $(1) | head -n1` > /tmp/unpacked
|
---|
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
|
---|
41 | @echo To be able to boot your new LFS system you need to follow
|
---|
42 | @echo the next steps:$(WHITE)
|
---|
43 | @echo
|
---|
44 | @echo -e \\t- Enter to the chroot using the command found
|
---|
45 | @echo -e \\tin 8.4 Entering the Chroot Environment
|
---|
46 | @echo
|
---|
47 | @echo -e \\t- Set a password for the root user
|
---|
48 | @echo
|
---|
49 | @echo -e \\t- Edit /etc/fstab, /etc/hosts, /etc/sysconfig/clock,
|
---|
50 | @echo -e \\t/etc/sysconfig/console, /etc/sysconfig/network,
|
---|
51 | @echo -e \\t/etc/sysconfig//network-devices/ifconfig.eth0/ipv4 and
|
---|
52 | @echo -e \\tany other configuration file required to suit your needs.
|
---|
53 | @echo
|
---|
54 | @echo -e \\t- Set-up Grub. See chapter08/grub.html
|
---|
55 | @echo
|
---|
56 | @echo -e \\t- Unmount the filesystems.
|
---|
57 | @echo
|
---|
58 | @echo If you are an experienced LFS user, several of those steps can be
|
---|
59 | @echo skipped or done in a different way. But then, that is something
|
---|
60 | @echo that you already know and there is no need to discuss it here.
|
---|
61 | @echo $(BOLD)
|
---|
62 | @echo --------------------------------------------------------------------------------
|
---|
63 | @echo -e \\t\\t$(GREEN)Have a nice day $(ORANGE):-\)$(BOLD)
|
---|
64 | @echo --------------------------------------------------------------------------------$(WHITE)
|
---|
65 | endef
|
---|
66 |
|
---|
67 | define echo_boot_finished
|
---|
68 | @echo $(BOLD)
|
---|
69 | @echo --------------------------------------------------------------------------------
|
---|
70 | @echo $(BOLD) Finished building a minimal boot system for $(BLUE)$(1)$(BOLD)
|
---|
71 | @echo --------------------------------------------------------------------------------
|
---|
72 | @echo -e \\t\\t$(RED)W A R N I N G$(BOLD)
|
---|
73 | @echo --------------------------------------------------------------------------------
|
---|
74 | @echo
|
---|
75 | @echo The build is not complete. Follow the next steps:$(WHITE)
|
---|
76 | @echo
|
---|
77 | @echo -e \\t- Enter to the chroot using the command found
|
---|
78 | @echo -e \\tin 8.4 Entering the Chroot Environment
|
---|
79 | @echo
|
---|
80 | @echo -e \\t- Set a password for the root user
|
---|
81 | @echo
|
---|
82 | @echo -e \\t- Edit /etc/fstab, /etc/hosts, /etc/sysconfig/clock,
|
---|
83 | @echo -e \\t/etc/sysconfig/console, /etc/sysconfig/network,
|
---|
84 | @echo -e \\t/etc/sysconfig//network-devices/ifconfig.eth0/ipv4 and
|
---|
85 | @echo -e \\tany other configuration file required to suit your needs.
|
---|
86 | @echo
|
---|
87 | @echo -e \\t- Set-up Grub.
|
---|
88 | @echo
|
---|
89 | @echo -e \\t- Unmount the filesystems.
|
---|
90 | @echo
|
---|
91 | @echo If you are an experienced LFS user, several of those steps can be
|
---|
92 | @echo skipped or done in a different way. But then, that is something
|
---|
93 | @echo that you already know and there is no need to discuss it here.
|
---|
94 | @echo $(BOLD)
|
---|
95 | @echo $(BOLD)$(YELLOW)
|
---|
96 | @echo Boot the new partition. Once you are logged in issue the following cmds
|
---|
97 | @echo -e \\t cd /jhahlfs
|
---|
98 | @echo -e \\t make XXXXXXXX
|
---|
99 | @echo The build process should resume. Follow any instructions that appear.
|
---|
100 | @echo --------------------------------------------------------------------------------
|
---|
101 | @echo -e \\t\\t$(GREEN)Have a nice day $(ORANGE):-\)$(BOLD)
|
---|
102 | @echo --------------------------------------------------------------------------------$(WHITE)
|
---|
103 | endef
|
---|