Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update zorin to be more dynamic #1376

Merged
merged 1 commit into from
Dec 21, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 8 additions & 16 deletions roles/netbootxyz/templates/menu/live-zorin.ipxe.j2
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,18 @@ goto ${menu} ||
set os Zorin Live
menu ${os}
item --gap ${os} Versions
item 16 ${space} ${os} 16
item 15 ${space} ${os} 15
{% for key, value in endpoints.items() | sort %}
{% if value.os == "zorin" %}
item {{ value.version }} ${space} ${os} {{ value.version }}
{% endif %}
{% endfor %}
choose live_version || goto live_exit
menu ${os} ${live_version}
item --gap ${os} Flavors
goto ${live_version}

{% for key, value in endpoints.items() | sort %}
{% if value.os == "zorin" and 'squash' in key and value.version == "16" %}
:{{ value.version }}
item {{ key }} ${space} {{ value.os | title }} {{ value.version }} {{ value.flavor | title}}
goto flavor_select
{% endif %}
{% if value.os == "zorin" and 'squash' in key and value.version == "15" %}
{% if value.os == "zorin" and 'squash' in key %}
:{{ value.version }}
item {{ key }} ${space} {{ value.os | title }} {{ value.version }} {{ value.flavor | title}}
goto flavor_select
Expand All @@ -41,17 +39,11 @@ set squash_url ${live_endpoint}{{ value.path }}filesystem.squashfs
set kernel_url ${live_endpoint}{{ value.path }}
{% endif %}
{% endfor %}
goto {{ value.version }}-boot
goto boot
{% endif %}
{% endfor %}

:15-boot
imgfree
kernel ${kernel_url}vmlinuz ip=dhcp boot=casper netboot=http fetch=${squash_url} {{ kernel_params }}
initrd ${kernel_url}initrd
boot

:16-boot
:boot
imgfree
kernel ${kernel_url}vmlinuz ip=dhcp boot=casper netboot=url url=${squash_url} {{ kernel_params }}
initrd ${kernel_url}initrd
Expand Down