|
@@ -1,42 +1,8 @@
|
1
|
|
-<?php
|
2
|
|
-
|
3
|
|
-$common = ':shell
|
4
|
|
-shell
|
5
|
|
-
|
6
|
|
-:reboot
|
7
|
|
-reboot
|
8
|
|
-
|
9
|
|
-:boot-install
|
10
|
|
-set unix install/${install}
|
11
|
|
-set options vga=788 -- quiet
|
12
|
|
-goto boot-unix
|
13
|
|
-
|
14
|
|
-:boot-live
|
15
|
|
-set unix live/${live}
|
16
|
|
-set options vga=normal ramdisk_size=14332 root=/dev/nfs nfsroot=10.15.44.1:/pxeroot/${live} rw --
|
17
|
|
-goto boot-unix
|
18
|
|
-
|
19
|
|
-:boot-unix
|
20
|
|
-initrd unix/${unix}/initrd.img
|
21
|
|
-boot unix/${unix}/vmlinuz ${options}
|
22
|
|
-
|
23
|
|
-
|
24
|
|
-:boot-iso
|
25
|
|
-initrd iso/${iso}
|
26
|
|
-chain /memdisk iso raw
|
27
|
|
-boot
|
28
|
|
-
|
29
|
|
-:boot-winpe
|
30
|
|
-kernel winpe/${winpe}/wimboot
|
31
|
|
-initrd winpe/${winpe}/bcd BCD
|
32
|
|
-initrd winpe/${winpe}/boot.sdi boot.sdi
|
33
|
|
-initrd winpe/${winpe}/boot.wim boot.wim
|
34
|
|
-boot';
|
35
|
|
-
|
36
|
|
-echo "#!ipxe\n";
|
37
|
|
-echo "console --picture misc/splash.png\n";
|
38
|
|
-echo "menu gigi PXE\n\n";
|
|
1
|
+#!ipxe
|
|
2
|
+console --picture misc/splash.png
|
|
3
|
+menu netboot.${domain} PXE
|
39
|
4
|
|
|
5
|
+<?php
|
40
|
6
|
|
41
|
7
|
$types = [['live', 'unix/live', 'Live'],
|
42
|
8
|
['iso', 'iso', 'ISO'],
|
|
@@ -66,14 +32,51 @@ foreach ($types as $type)
|
66
|
32
|
}
|
67
|
33
|
}
|
68
|
34
|
|
69
|
|
-echo "item --gap -- Misc
|
|
35
|
+?>
|
|
36
|
+
|
|
37
|
+item --gap -- Misc
|
|
38
|
+item chain-online Chain on rthoni.com
|
70
|
39
|
item shell Shell
|
71
|
|
-item reboot Reboot\n";
|
72
|
|
-echo 'choose choice && goto ${choice}' . "\n";
|
|
40
|
+item reboot Reboot
|
|
41
|
+choose choice && goto ${choice}
|
73
|
42
|
|
74
|
|
-echo $labels;
|
|
43
|
+<?php
|
75
|
44
|
|
76
|
|
-echo $common;
|
|
45
|
+echo $labels;
|
77
|
46
|
|
78
|
47
|
?>
|
|
48
|
+:chain-online
|
|
49
|
+chain http://netboot.rthoni.com/boot.ipxe
|
|
50
|
+
|
|
51
|
+:shell
|
|
52
|
+shell
|
|
53
|
+
|
|
54
|
+:reboot
|
|
55
|
+reboot
|
79
|
56
|
|
|
57
|
+:boot-install
|
|
58
|
+set unix install/${install}
|
|
59
|
+set options vga=788 -- quiet
|
|
60
|
+goto boot-unix
|
|
61
|
+
|
|
62
|
+:boot-live
|
|
63
|
+set unix live/${live}
|
|
64
|
+set options vga=normal ramdisk_size=14332 root=/dev/nfs nfsroot=10.15.44.1:/pxeroot/${live} rw --
|
|
65
|
+goto boot-unix
|
|
66
|
+
|
|
67
|
+:boot-unix
|
|
68
|
+initrd unix/${unix}/initrd.img
|
|
69
|
+boot unix/${unix}/vmlinuz ${options}
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+:boot-iso
|
|
73
|
+initrd iso/${iso}
|
|
74
|
+chain /memdisk iso raw
|
|
75
|
+boot
|
|
76
|
+
|
|
77
|
+:boot-winpe
|
|
78
|
+kernel winpe/${winpe}/wimboot
|
|
79
|
+initrd winpe/${winpe}/bcd BCD
|
|
80
|
+initrd winpe/${winpe}/boot.sdi boot.sdi
|
|
81
|
+initrd winpe/${winpe}/boot.wim boot.wim
|
|
82
|
+boot
|