mirror of
https://github.com/netbootxyz/netboot.xyz.git
synced 2026-01-23 02:34:26 +00:00
Update opensuse logic
This commit is contained in:
parent
7fca3b8fcf
commit
8186945dfb
1 changed files with 7 additions and 4 deletions
|
|
@ -68,16 +68,19 @@ item {{ item.code_name }} ${space} ${os} {{ item.name }}
|
|||
choose version || goto opensuse_exit
|
||||
set dir ${opensuse_base_dir}/${version}/repo/oss
|
||||
iseq ${version} tumbleweed && set dir ${version}/repo/oss ||
|
||||
iseq ${version} 16.0 && set dir distribution/leap/${version}/offline ||
|
||||
|
||||
# Check if version needs live ISO boot method (16.0 and later)
|
||||
iseq ${version} 16.0 && set dir distribution/leap/${version}/offline && set use_live_iso true ||
|
||||
|
||||
|
||||
imgfree
|
||||
set kernel_url boot/${os_arch}/loader
|
||||
iseq ${os_arch} aarch64 && set kernel_url boot/${os_arch} ||
|
||||
|
||||
# Special handling for openSUSE 16.0 live ISO boot
|
||||
iseq ${version} 16.0 && goto opensuse_16_boot || goto opensuse_standard_boot
|
||||
# Choose boot method based on version
|
||||
isset ${use_live_iso} && goto opensuse_live_boot || goto opensuse_standard_boot
|
||||
|
||||
:opensuse_16_boot
|
||||
:opensuse_live_boot
|
||||
kernel ${opensuse_mirror}/${dir}/${kernel_url}/linux root=live:${opensuse_mirror}/${dir}/Leap-${version}-online-installer-${os_arch}.install.iso ${netsetup} ${params} {{ kernel_params }}
|
||||
initrd ${opensuse_mirror}/${dir}/${kernel_url}/initrd
|
||||
goto boot_os
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue