Browse Source

updated ipxe binary; multiple fixes

tags/v1.0.0
Robin Thoni 6 years ago
parent
commit
202b5cfa98
5 changed files with 57 additions and 45 deletions
  1. 2
    0
      apache/Dockerfile
  2. 2
    0
      apache/apache2.conf
  3. 46
    43
      data/apache/files/boot.ipxe
  4. BIN
      data/tftpd/tftp/ipxe-rthoni.kpxe
  5. 7
    2
      isc-dhcp/dhcpd.conf

+ 2
- 0
apache/Dockerfile View File

32
 
32
 
33
 COPY ./vars-files /etc/vars-files
33
 COPY ./vars-files /etc/vars-files
34
 
34
 
35
+COPY ./common.sh /common.sh
36
+
35
 COPY ./run.sh /run.sh
37
 COPY ./run.sh /run.sh
36
 
38
 
37
 EXPOSE 80
39
 EXPOSE 80

+ 2
- 0
apache/apache2.conf View File

1
 # see http://sources.debian.net/src/apache2/2.4.10-1/debian/config-dir/apache2.conf
1
 # see http://sources.debian.net/src/apache2/2.4.10-1/debian/config-dir/apache2.conf
2
 
2
 
3
+ServerName netboot
4
+
3
 Mutex file:/var/lock/apache2 default
5
 Mutex file:/var/lock/apache2 default
4
 PidFile /var/run/apache2/apache2.pid
6
 PidFile /var/run/apache2/apache2.pid
5
 Timeout 300
7
 Timeout 300

+ 46
- 43
data/apache/files/boot.ipxe View File

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
 $types = [['live', 'unix/live', 'Live'],
7
 $types = [['live', 'unix/live', 'Live'],
42
   ['iso', 'iso', 'ISO'],
8
   ['iso', 'iso', 'ISO'],
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
 item shell Shell
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

BIN
data/tftpd/tftp/ipxe-rthoni.kpxe View File


+ 7
- 2
isc-dhcp/dhcpd.conf View File

14
 
14
 
15
 subnet 10.15.100.0 netmask 255.255.255.0 {
15
 subnet 10.15.100.0 netmask 255.255.255.0 {
16
 
16
 
17
+  # IP settings
17
   range 10.15.100.50 10.15.100.250;
18
   range 10.15.100.50 10.15.100.250;
18
   option subnet-mask 255.255.255.0;
19
   option subnet-mask 255.255.255.0;
19
   option broadcast-address 10.15.100.255;
20
   option broadcast-address 10.15.100.255;
20
   option routers 10.15.100.1;
21
   option routers 10.15.100.1;
21
 
22
 
23
+  # DNS settings
22
   option domain-name "site.rthoni.com";
24
   option domain-name "site.rthoni.com";
25
+  option domain-search "site.rthoni.com rthoni.com";
23
   option domain-name-servers 10.15.100.1;
26
   option domain-name-servers 10.15.100.1;
24
 
27
 
28
+  # Push custom routes to clients
25
   #option classless-routes 24, 10,15,42, 10.15.12,2;
29
   #option classless-routes 24, 10,15,42, 10.15.12,2;
26
   #option classless-routes-win 24, 10,15,42, 10.15.12,2;
30
   #option classless-routes-win 24, 10,15,42, 10.15.12,2;
27
 
31
 
32
+  # Netboot settings
28
   next-server 10.15.100.1;
33
   next-server 10.15.100.1;
34
+  #option root-path "10.15.100.1:/pxeroot/ubuntu";
29
   if exists user-class and ( option user-class = "iPXE-rthoni" ) {
35
   if exists user-class and ( option user-class = "iPXE-rthoni" ) {
36
+    option domain-search "site.rthoni.com";
30
     filename "http://netboot/boot.ipxe";
37
     filename "http://netboot/boot.ipxe";
31
   }
38
   }
32
   else {
39
   else {
33
     filename "ipxe-rthoni.kpxe";
40
     filename "ipxe-rthoni.kpxe";
34
   }
41
   }
35
-#  option root-path "10.15.100.1:/pxeroot/ubuntu";
36
-
37
 }
42
 }
38
 
43
 

Loading…
Cancel
Save