summaryrefslogtreecommitdiffstats
path: root/server/tftpboot/grub/templates/pxe
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2022-06-14 10:11:54 +0200
committerOpenGnSys Support Team <soporte-og@soleta.eu>2022-06-14 11:57:19 +0200
commit9c9de82204580983df307267de08d26b82b8440d (patch)
tree6c379801068d6ec52b3ca24426343b903c56ec01 /server/tftpboot/grub/templates/pxe
parent49bdbe9ad83d3c2f7710f81960b3407e882563ac (diff)
Revert "#1075 Rename boot templates"
This reverts commit 127248e3454e84ba073e5413075e1e7aafef7c0d. Web Console expects boot templates to have certain names, otherwise it behaves incorrectly. The reverted commit changes this names to ones that the Web Console do not recognize.
Diffstat (limited to 'server/tftpboot/grub/templates/pxe')
-rw-r--r--server/tftpboot/grub/templates/pxe37
1 files changed, 37 insertions, 0 deletions
diff --git a/server/tftpboot/grub/templates/pxe b/server/tftpboot/grub/templates/pxe
new file mode 100644
index 00000000..1a67fc25
--- /dev/null
+++ b/server/tftpboot/grub/templates/pxe
@@ -0,0 +1,37 @@
+##NO-TOCAR-ESTA-LINEA ogLive
+set timeout=0
+set timeout_style=hidden
+
+set ISODIR=ogLive
+
+# Si existe ogLive en CACHE lo inicio, si no el de la red
+set root=''
+echo "OgLive CACHE"
+search --file --set root /boot/$ISODIR/ogvmlinuz
+if [ "$root" == "" ]; then
+ echo "OgLive $ISODIR"
+ set default=1;
+else
+ set default=0;
+fi
+
+menuentry "OgLive CACHE" {
+ linux /boot/$ISODIR/ogvmlinuz ro boot=oginit quiet splash vga=788 irqpoll acpi=on og2nd=sqfs ogprotocol=smb ogactiveadmin=false ogdebug=false ogupdateinitrd=true ogtmpfs=15 oglivedir=$ISODIR INFOHOST
+ initrd /boot/$ISODIR/oginitrd.img
+ boot
+}
+
+menuentry "OgLive $ISODIR" {
+ # Si no existe el ogLive de ISODIR en la red, inicio ogLive por defecto
+ for DIR in $ISODIR ogLive; do
+ if linux (tftp)/$DIR/ogvmlinuz ro boot=oginit quiet splash vga=788 irqpoll acpi=on og2nd=sqfs ogprotocol=smb ogactiveadmin=false ogdebug=false ogtmpfs=15 oglivedir=$ISODIR INFOHOST ; then
+ set DIR=$DIR
+ break
+ else
+ echo "OgLive default"
+ fi
+ done
+
+ initrd (tftp)/$DIR/oginitrd.img
+ boot
+}