ソースを参照

Shift cloud specifc items to boot.cfg

Antony Messerli 8 年 前
コミット
3942cb75a4
2 ファイル変更18 行追加3 行削除
  1. 18 0
      src/boot.cfg
  2. 0 3
      src/menu.ipxe

+ 18 - 0
src/boot.cfg

@@ -20,3 +20,21 @@ set img_sigs_enabled true
 
 # set location of signatures for sources
 set sigs http://${boot_domain}/sigs/
+
+# set location of latest iPXE
+set ipxe_disk netboot.xyz-undionly.kpxe
+
+# set iPXE cloud provider specifics
+:clouds
+iseq ${ipxe_cloud_config} gce && goto gce ||
+iseq ${ipxe_cloud_config} packet && goto packet ||
+exit
+
+:gce
+set console console=ttyS0,115200n8
+exit
+
+:packet
+set console console=ttyS1,115200n8
+set ipxe_disk netboot.xyz-packet.kpxe
+exit

+ 0 - 3
src/menu.ipxe

@@ -5,9 +5,6 @@ chain --autofree boot.cfg ||
 iseq ${cls} serial && goto ignore_cls ||
 set cls:hex 1b:5b:4a  # ANSI clear screen sequence - "^[[J"
 set cls ${cls:string}
-set ipxe_disk netboot.xyz-undionly.kpxe
-iseq ${ipxe_cloud_config} gce && set console console=ttyS0,115200n8 || goto version_check
-iseq ${ipxe_cloud_config} packet && set console console=ttyS1,115200n8 && set ipxe_disk netboot.xyz-packet.kpxe || goto version_check
 :ignore_cls
 
 :version_check