Skip to content

Commit 774d847

Browse files
authored
Merge pull request #322 from Dasharo/develop
Release v2.7.6
2 parents 19b6a97 + 7d110fe commit 774d847

File tree

6 files changed

+76
-20
lines changed

6 files changed

+76
-20
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ jobs:
124124
./meta-dts/scripts/generate-ipxe-menu.sh ${{ env.DTS_VER }}
125125
scp -i ~/.ssh/dts-ci-key dts.ipxe builder@10.1.40.2:boot/dts/
126126
scp -i ~/.ssh/dts-ci-key dts-rc.ipxe builder@10.1.40.2:boot/dts/
127+
scp -i ~/.ssh/dts-ci-key dts-no-fum-fix.ipxe builder@10.1.40.2:boot/dts/
127128
- name: Trigger signing and deploy to GitHub Release tab
128129
shell: bash
129130
run: |

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,19 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
66

7+
## 2.7.6 - 2026-03-02
8+
9+
### Changed
10+
11+
- scripts/generate-ipxe-menu.ipxe: generate iPXE script that skips running FUM
12+
workaround application. This script is used in tests.
13+
14+
### Fixed
15+
16+
- recipes-core: systemd: increase USB network metric, so that USB network
17+
interface will have lower priorty than non-USB one.
18+
Fixes: <https://github.com/Dasharo/dasharo-issues/issues/1289>
19+
720
## 2.7.5 - 2026-02-12
821

922
### Added

meta-dts-distro/conf/distro/dts-distro.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ DISTRO = "dts-distro"
44

55
# distro name
66
DISTRO_NAME = "Dasharo Tools Suite"
7-
DISTRO_VERSION = "2.7.5"
7+
DISTRO_VERSION = "2.7.6"
88
SDK_VENDOR = "-dtssdk"
99

1010
MAINTAINER = "3mdeb Sp. z o. o. <contact@3mdeb.com>"
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# modified 80-wired.network
2+
[Match]
3+
Type=ether
4+
Name=!veth*
5+
Driver=rndis_host
6+
KernelCommandLine=!nfsroot
7+
KernelCommandLine=!ip
8+
9+
[Network]
10+
DHCP=yes
11+
12+
[DHCP]
13+
UseMTU=yes
14+
RouteMetric=30
15+
ClientIdentifier=mac
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
2+
3+
SRC_URI:append = " file://usb.network"
4+
5+
do_install:append() {
6+
install -D -m0644 ${WORKDIR}/usb.network ${D}${sysconfdir}/systemd/network/50-usb.network
7+
}
8+
9+
FILES:${PN}:append = " ${sysconfdir}/systemd/network/50-usb.network"

scripts/generate-ipxe-menu.sh

Lines changed: 37 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,44 @@
11
#!/usr/bin/env bash
22

3+
gen_common_ipxe() {
4+
local version="$1"
5+
cat <<EOF
6+
#!ipxe
7+
set dts_version ${version}
8+
set dts_prefix \${dts_version}
9+
set path_kernel \${dts_prefix}/bzImage-\${dts_version}
10+
set path_initrd \${dts_prefix}/dts-base-image-\${dts_version}.cpio.gz
11+
12+
imgfetch --name file_kernel \${path_kernel}
13+
imgfetch --name file_initrd \${path_initrd}
14+
15+
kernel file_kernel initrd=file_initrd console=ttyUSB0
16+
EOF
17+
}
18+
19+
gen_fum_workaround_ipxe() {
20+
gen_common_ipxe "$@"
21+
cat <<EOF
22+
23+
iseq \${platform} efi && goto is_efi || goto not_efi
24+
:is_efi
25+
chain replace_fum_efivar.efi
26+
27+
:not_efi
28+
boot
29+
EOF
30+
}
31+
32+
gen_without_fum_workaround_ipxe() {
33+
gen_common_ipxe "$@"
34+
echo "boot"
35+
}
36+
337
VERSION=$1
438
RC_VER_PATTERN="v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+$"
539
IPXE_FILE="dts.ipxe"
640
IPXE_RC_FILE="dts-rc.ipxe"
41+
IPXE_NO_FUM_FIX_FILE="dts-no-fum-fix.ipxe"
742

843
if [ $# -ne 1 ]; then
944
echo "Provide version, e.g. v1.2.3"
@@ -26,25 +61,8 @@ fi
2661
# imgverify file_kernel \${sig_kernel}
2762
# imgverify file_initrd \${sig_initrd}
2863

29-
cat <<EOF > "${IPXE_FILE}"
30-
#!ipxe
31-
set dts_version ${VERSION}
32-
set dts_prefix \${dts_version}
33-
set path_kernel \${dts_prefix}/bzImage-\${dts_version}
34-
set path_initrd \${dts_prefix}/dts-base-image-\${dts_version}.cpio.gz
35-
36-
imgfetch --name file_kernel \${path_kernel}
37-
imgfetch --name file_initrd \${path_initrd}
38-
39-
kernel file_kernel initrd=file_initrd console=ttyUSB0
40-
41-
iseq \${platform} efi && goto is_efi || goto not_efi
42-
:is_efi
43-
chain replace_fum_efivar.efi
44-
45-
:not_efi
46-
boot
47-
EOF
64+
gen_fum_workaround_ipxe "${VERSION}" >"${IPXE_FILE}"
65+
gen_without_fum_workaround_ipxe "${VERSION}" >"${IPXE_NO_FUM_FIX_FILE}"
4866

4967
if [ "${IPXE_FILE}" != "${IPXE_RC_FILE}" ]; then
5068
cp "${IPXE_FILE}" "${IPXE_RC_FILE}"

0 commit comments

Comments
 (0)