BUILD-ISO » История » Версия 5
Dmitry Chernyak, 22.02.2013 01:20
1 | 1 | Владимир Ипатов | h1. BUILD-ISO |
---|---|---|---|
2 | 1 | Владимир Ипатов | |
3 | 1 | Владимир Ипатов | {{toc}} |
4 | 1 | Владимир Ипатов | |
5 | 5 | Dmitry Chernyak | This is iso building instructions for experienced users. Basic users can take built ISO from http://sci-dev.skycover.ru/dist/ |
6 | 1 | Владимир Ипатов | |
7 | 1 | Владимир Ипатов | h2. You'll need the Internet connection to build CD-ROM |
8 | 1 | Владимир Ипатов | |
9 | 1 | Владимир Ипатов | The build engine is based on the simple-cdd Debian package. |
10 | 1 | Владимир Ипатов | |
11 | 1 | Владимир Ипатов | h2. Install build components |
12 | 1 | Владимир Ипатов | |
13 | 1 | Владимир Ипатов | <pre> |
14 | 5 | Dmitry Chernyak | # apt-get install simple-cdd sharutils git debhelper dpkg-dev cdbs |
15 | 1 | Владимир Ипатов | </pre> |
16 | 1 | Владимир Ипатов | |
17 | 1 | Владимир Ипатов | h2. Get project sources |
18 | 1 | Владимир Ипатов | |
19 | 1 | Владимир Ипатов | <pre> |
20 | 5 | Dmitry Chernyak | $ git clone http://github.com/skycover/sci-cd.git |
21 | 1 | Владимир Ипатов | </pre> |
22 | 1 | Владимир Ипатов | |
23 | 1 | Владимир Ипатов | h2. Use Git magic |
24 | 1 | Владимир Ипатов | |
25 | 1 | Владимир Ипатов | You should create your own branch to place modifications and to save the |
26 | 2 | Владимир Ипатов | ability to receive updates. |
27 | 2 | Владимир Ипатов | |
28 | 1 | Владимир Ипатов | <pre> |
29 | 1 | Владимир Ипатов | $ cd sci-cd |
30 | 1 | Владимир Ипатов | $ git checkout -b local |
31 | 1 | Владимир Ипатов | </pre> |
32 | 1 | Владимир Ипатов | |
33 | 1 | Владимир Ипатов | For additional useful commands read [[GITMAGIC]] |
34 | 1 | Владимир Ипатов | |
35 | 1 | Владимир Ипатов | h2. Adjust the environment |
36 | 1 | Владимир Ипатов | |
37 | 1 | Владимир Ипатов | h3. _profiles/SCI-amd64.conf_ |
38 | 1 | Владимир Ипатов | |
39 | 1 | Владимир Ипатов | You may need to change debian_mirror and security_mirror settings if |
40 | 1 | Владимир Ипатов | you are using another mirrors or apt-proxies. |
41 | 1 | Владимир Ипатов | |
42 | 1 | Владимир Ипатов | h3. _profiles/SCI-amd64.downloads_ |
43 | 1 | Владимир Ипатов | |
44 | 1 | Владимир Ипатов | You can add more packages here to make more functional distro on the |
45 | 1 | Владимир Ипатов | CD. It is recomended that you should first try the default list and |
46 | 1 | Владимир Ипатов | then rebuild with your extention. |
47 | 1 | Владимир Ипатов | |
48 | 1 | Владимир Ипатов | h3. _profiles/SCI-amd64.files/postinst.conf_ |
49 | 1 | Владимир Ипатов | |
50 | 1 | Владимир Ипатов | Optional. The file should be created. |
51 | 1 | Владимир Ипатов | Tunable parameters: |
52 | 1 | Владимир Ипатов | |
53 | 1 | Владимир Ипатов | *vlan_no* - if set, the control network will be placed in this vlan |
54 | 1 | Владимир Ипатов | using 802.1q tagging. |
55 | 1 | Владимир Ипатов | |
56 | 1 | Владимир Ипатов | h2. Build ISO image |
57 | 1 | Владимир Ипатов | |
58 | 1 | Владимир Ипатов | <pre> |
59 | 5 | Dmitry Chernyak | ./build.sh -b develop |
60 | 1 | Владимир Ипатов | </pre> |
61 | 1 | Владимир Ипатов | |
62 | 1 | Владимир Ипатов | Image will be built in @images/@ folder, burn it with your favorite tool |
63 | 1 | Владимир Ипатов | (for ex. - k3b). |
64 | 5 | Dmitry Chernyak | |
65 | 5 | Dmitry Chernyak | h2. Build bootable USB-flash |
66 | 5 | Dmitry Chernyak | |
67 | 5 | Dmitry Chernyak | Any usb-flash will be sufficient with the partition, already formatted as vfat and that is capable to port the ISO image. |
68 | 5 | Dmitry Chernyak | |
69 | 5 | Dmitry Chernyak | Run as root: |
70 | 5 | Dmitry Chernyak | |
71 | 5 | Dmitry Chernyak | <pre> |
72 | 5 | Dmitry Chernyak | ./makeusb.sh /dev/sdX |
73 | 5 | Dmitry Chernyak | </pre> |
74 | 5 | Dmitry Chernyak | |
75 | 5 | Dmitry Chernyak | Where /dev/sdX - the path to the block device of your USB-flash (thr whole flash /dev/sdX, not the vfat parition - /dev/sdX1) |
76 | 5 | Dmitry Chernyak | After the script finishes, the filysystem from the flash will be mounted to /mnt (you can change the mountpont in the body of the script). |
77 | 5 | Dmitry Chernyak | Next you should copy the built ISO-image into the top folder of the flash ad then unmount it. |
78 | 5 | Dmitry Chernyak | |
79 | 5 | Dmitry Chernyak | The bootable USB-flash is complete! |