Skip to content

Commit f34a4f0

Browse files
committed
Merge remote-tracking branch 'origin/3.0-dev' into rranjan3/drop-caddy
2 parents daae569 + 6298caf commit f34a4f0

File tree

12 files changed

+255
-9
lines changed

12 files changed

+255
-9
lines changed

SPECS/cluster-agent/cluster-agent.signatures.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"Signatures": {
3-
"cluster-agent-1.6.1.tar.gz": "9a87817244e23f55ebd508e49826fe2d6414d06fbb692a52ebeecdcbb8d5fb49",
3+
"cluster-agent-1.7.0.tar.gz": "a8eae373926c4ad1e485eeecbe1c52c7e54cbebc294e6eae54f4c09628ee9457",
44
"cluster-agent.service": "e484c560bf881ebd12024404afc68f80493692280f6c5045990fe575ffb746bb",
55
"env_wrapper.sh": "9b1dff883e0d38e5968e7e86363919303da0b3d0213888e7b2ed3c7659c8319c",
66
"cluster-agent.conf": "4324f15acaa9d78738c231867f504c53d753a184a59538e6ccf679d4b8642f36",

SPECS/cluster-agent/cluster-agent.spec

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Summary: Installs/uninstalls orchestration software on an edge node using command obtained from Cluster Orchestrator.
22
Name: cluster-agent
3-
Version: 1.6.1
3+
Version: 1.7.0
44
Release: 1%{?dist}
55
License: Apache-2.0
66
Vendor: Intel Corporation
@@ -129,6 +129,9 @@ install -m 644 %{modulename}.pp %{buildroot}%{_datadir}/selinux/packages/%{modul
129129
%selinux_modules_uninstall -s %{selinuxtype} %{modulename}
130130

131131
%changelog
132+
* Wed May 14 2025 Rajeev Ranjan <[email protected]> - 1.7.0-1
133+
- Fix readiness reporting to NA during cluster install
134+
132135
* Thu Apr 03 2025 Rajeev Ranjan <[email protected]> - 1.6.1-1
133136
- Update common to 1.6.8
134137

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/bash
2+
# Copyright (c) Intel Corporation.
3+
# Licensed under the MIT License.
4+
5+
check() {
6+
require_binaries tar || return 1
7+
return 0
8+
}
9+
10+
depends() {
11+
return 0
12+
}
13+
14+
install() {
15+
inst_hook mount 90 "$moddir/tmpfsroot-mount.sh"
16+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/bin/bash
2+
# Copyright (c) Intel Corporation.
3+
# Licensed under the MIT License.
4+
5+
info "mount tmpfs for root"
6+
if ! mount -t tmpfs -o size=1G tmpfs $NEWROOT; then
7+
warn "Failed to mount tmpfs on $NEWROOT"
8+
die
9+
fi
10+
11+
cd $NEWROOT
12+
13+
if [[ -f /rootfs.tar.gz ]]; then
14+
info "extract rootfs.tar.gz to $NEWROOT"
15+
tar -xvf /rootfs.tar.gz -C $NEWROOT
16+
else
17+
warn "no rootfs.tar.gz found"
18+
die
19+
fi
20+
21+
info "rootfs on tmpfs complete"

SPECS/dracut/dracut.signatures.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
"dracut-102.tar.gz": "601b175cbf4d2ee902bb7bda3af8826ae2ca060c1af880f6da5a833413f4ec70",
1313
"lgpl-2.1.txt": "dc626520dcd53a22f727af3ee42c770e56c97a64fe3adb063799d8ab032fe551",
1414
"megaraid.conf": "914824cdbe0c525b71efa05a75e453335b0068beb8bc28bef2a5866d74bf7dd4",
15+
"tmpfsroot-module-setup.sh": "d1e2d512a3769fb70f7726b1899f89950d5bfc2199e8cde5df44adebd740006f",
16+
"tmpfsroot-mount.sh": "884c4c9a17118229dfbb40ec9a4a23d307c12349dbf19adc1a2d8640c2f77fd0",
1517
"module-setup.sh": "8f5a0d3cc393d78bcb523b0d53c578d2767d688f00e84b525355bbb31d753da4",
1618
"overlayfs-mount.sh": "28f47c107a4435c5153bdb5b2f92f20b7a75bf3932216635ee810875c27dd55b"
1719
}
18-
}
20+
}

SPECS/dracut/dracut.spec

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Summary: dracut to create initramfs
55
Name: dracut
66
Version: 102
7-
Release: 12%{?dist}
7+
Release: 13%{?dist}
88
# The entire source code is GPLv2+
99
# except install/* which is LGPLv2+
1010
License: GPLv2+ AND LGPLv2+
@@ -31,6 +31,8 @@ Source11: 50-noxattr.conf
3131
Source12: 90livenet/azl-liveos-artifacts-download.service
3232
Source13: 90livenet/azl-liveos-artifacts-download.sh
3333
Source14: 90overlayfs/azl-configure-selinux.sh
34+
Source15: 90tmpfsroot/tmpfsroot-module-setup.sh
35+
Source16: 90tmpfsroot/tmpfsroot-mount.sh
3436

3537
# allow-liveos-overlay-no-user-confirmation-prompt.patch has been introduced by
3638
# the Azure Linux team to allow skipping the user confirmation prompt during
@@ -156,6 +158,13 @@ Requires: %{name} = %{version}-%{release}
156158
%description systemd-cryptsetup
157159
This package contains dracut module needed to build an initramfs with systemd-cryptsetup enabled.
158160

161+
%package tmpfsroot
162+
Summary: dracut module to support root on tmpfs
163+
Requires: %{name} = %{version}-%{release}
164+
165+
%description tmpfsroot
166+
This package contains dracut module root on tmpfs.
167+
159168
%package virtio
160169
Summary: dracut configuration needed to build an initramfs with virtio guest drivers
161170
Requires: %{name} = %{version}-%{release}
@@ -231,6 +240,10 @@ mkdir -p %{buildroot}%{dracutlibdir}/modules.d/20overlayfs/
231240
install -p -m 0755 %{SOURCE4} %{buildroot}%{dracutlibdir}/modules.d/20overlayfs/
232241
install -p -m 0755 %{SOURCE5} %{buildroot}%{dracutlibdir}/modules.d/20overlayfs/
233242

243+
mkdir -p %{buildroot}%{dracutlibdir}/modules.d/90tmpfsroot/
244+
install -p -m 0755 %{SOURCE15} %{buildroot}%{dracutlibdir}/modules.d/90tmpfsroot/module-setup.sh
245+
install -p -m 0755 %{SOURCE16} %{buildroot}%{dracutlibdir}/modules.d/90tmpfsroot/
246+
234247
touch %{buildroot}%{_var}/opt/%{name}/log/%{name}.log
235248
ln -srv %{buildroot}%{_var}/opt/%{name}/log/%{name}.log %{buildroot}%{_var}/log/
236249

@@ -251,6 +264,7 @@ ln -srv %{buildroot}%{_bindir}/%{name} %{buildroot}%{_sbindir}/%{name}
251264
%exclude %{_libdir}/kernel
252265
%exclude %{dracutlibdir}/modules.d/20overlayfs
253266
%exclude %{dracutlibdir}/modules.d/90systemd-cryptsetup
267+
%exclude %{dracutlibdir}/modules.d/90tmpfsroot
254268
%{_libdir}/%{name}/%{name}-init.sh
255269
%{_datadir}/pkgconfig/%{name}.pc
256270
%{dracutlibdir}/%{name}-functions.sh
@@ -319,6 +333,10 @@ ln -srv %{buildroot}%{_bindir}/%{name} %{buildroot}%{_sbindir}/%{name}
319333
%dir %{dracutlibdir}/modules.d/90systemd-cryptsetup
320334
%{dracutlibdir}/modules.d/90systemd-cryptsetup/*
321335

336+
%files tmpfsroot
337+
%dir %{dracutlibdir}/modules.d/90tmpfsroot
338+
%{dracutlibdir}/modules.d/90tmpfsroot/*
339+
322340
%files virtio
323341
%defattr(-,root,root,0755)
324342
%{_sysconfdir}/dracut.conf.d/00-virtio.conf
@@ -337,6 +355,9 @@ ln -srv %{buildroot}%{_bindir}/%{name} %{buildroot}%{_sbindir}/%{name}
337355
%dir %{_sharedstatedir}/%{name}/overlay
338356

339357
%changelog
358+
* Fri May 16 2025 Swee Yee Fonn <[email protected]> - 102-13
359+
- Add tmpfsroot dracut module
360+
340361
* Thu Apr 28 2025 Ranjan Dutta <[email protected]> - 102-12
341362
- merge from Azure Linux tag 3.0.20250423-3.0
342363
- Add fix for systemd-cryptsetup module to be included in initramfs when needed

SPECS/node-agent/node-agent.spec

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,9 @@ chmod 744 %{_sysconfdir}/edge-node/node/confs/%{name}
171171
* Fri May 16 2025 Rajeev Ranjan <[email protected]> - 1.7.2-1
172172
- Caddy configuration not needed anymore
173173

174+
* Thu May 15 2025 Rajeev Ranjan <[email protected]> - 1.7.1-1
175+
- Update release service token handling for anonymous
176+
174177
* Thu Apr 03 2025 Rajeev Ranjan <[email protected]> - 1.6.2-1
175178
- Update common to 1.6.8
176179

cgmanifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1847,8 +1847,8 @@
18471847
"type": "other",
18481848
"other": {
18491849
"name": "cluster-agent",
1850-
"version": "1.6.1",
1851-
"downloadUrl": "https://github.com/open-edge-platform/edge-node-agents/archive/refs/tags/cluster-agent/v1.6.1.tar.gz"
1850+
"version": "1.7.0",
1851+
"downloadUrl": "https://github.com/open-edge-platform/edge-node-agents/archive/refs/tags/cluster-agent/v1.7.0.tar.gz"
18521852
}
18531853
}
18541854
},

toolkit/imageconfigs/edge-image-tink.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"Artifacts": [
77
{
88
"Name": "edge-readonly-tink",
9-
"Compression": "tar.gz"
9+
"Type": "tar.gz"
1010
}
1111
]
1212
}
@@ -37,13 +37,17 @@
3737
"FinalizeImageScripts": [
3838
{
3939
"Path": "scripts/cleanup.sh"
40+
},
41+
{
42+
"Path": "scripts/setup-tink-image.sh"
4043
}
4144
],
4245
"KernelCommandLine": {
43-
"ExtraCommandLine": "quiet splash"
46+
"ExtraCommandLine": "root=tmpfs rootflags=size=1G,mode=0755 rd.skipfsck noresume quiet splash"
4447
},
45-
"Hostname": "EdgeMicrovisorToolkitTink",
48+
"Hostname": "EMT-tink",
4649
"DisableRpmDocs": true,
50+
"RemoveRpmDb": true,
4751
"Users": [
4852
{
4953
"Name": "root",

toolkit/imageconfigs/packagelists/tink-packages.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
{
22
"packages": [
3+
"dracut-tmpfsroot",
4+
"tar",
35
"fluent-bit",
46
"caddy",
57
"rng-tools",

0 commit comments

Comments
 (0)