Skip to content

Commit 92d869e

Browse files
author
andy.peng
committed
[Tink] update device-discovery rpm
1 parent 85e4c95 commit 92d869e

File tree

4 files changed

+7
-11
lines changed

4 files changed

+7
-11
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"Signatures": {
33
"device-discovery-1.17.2.tar.gz": "32b5439533c61ee4d53f5caa58698fee08e1fd520adb2f3790fd9416f96598d4",
4-
"vendor.tar.gz": "997e40026d04be283d65dbe202a5ffe23b49cb42311a769b2910d4a2a7919a09",
4+
"device-discovery-1.17.2-vendor.tar.gz": "997e40026d04be283d65dbe202a5ffe23b49cb42311a769b2910d4a2a7919a09",
55
"device-discovery.service": "31b947a64d1a3316aa594a1de9cad2e777948d51247ce0940edae6b2ac3534be"
66
}
77
}

SPECS/device-discovery/device-discovery.spec

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,14 @@ License: Apache-2.0
1010
URL: https://tinkerbell.org
1111
Source0: https://%{infraonboarding_gitpath}/archive/refs/tags/tinker-actions/%{version}.tar.gz#/%{name}-%{version}.tar.gz
1212
Source1: device-discovery.service
13-
Source2: vendor.tar.gz
13+
Source2: device-discovery-1.17.2-vendor.tar.gz
1414

1515
%{?systemd_requires}
1616

1717
BuildRequires: golang >= 1.23
1818
BuildRequires: systemd-rpm-macros
1919
Requires: curl
2020

21-
%global debug_package %{nil}
2221

2322
%description
2423
The Device Discovery Agent for Edge Node in order to retrieve the specific configuration to start for the current/correct machine.
@@ -30,7 +29,7 @@ The Device Discovery Agent for Edge Node in order to retrieve the specific confi
3029
%build
3130
cd hook-os/device_discovery
3231
tar -xzvf %{SOURCE2} -C .
33-
CGO_ENABLED=0 go build -buildmode=pie -mod=vendor -trimpath -ldflags '-s -w -extldflags "-static"' -gcflags=all="-l -B" -o device-discovery
32+
CGO_ENABLED=0 go build -buildmode=pie -mod=vendor -trimpath -ldflags '-extldflags "-static"' -gcflags=all="-l -B" -o device-discovery
3433

3534
%install
3635
# command
@@ -44,9 +43,6 @@ cp %{SOURCE1} %{buildroot}%{_unitdir}
4443

4544
%post
4645
%systemd_post device-discovery.service
47-
# The package is allowed to autostart:
48-
systemctl enable device-discovery.service >/dev/null 2>&1
49-
systemctl start device-discovery.service >/dev/null 2>&1
5046

5147
%files
5248
%{_bindir}/device-discovery/*
-3.01 MB
Binary file not shown.
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"packages": [
3+
"caddy",
4+
"containerd",
5+
"device-discovery",
36
"dracut-tmpfsroot",
4-
"tar",
57
"fluent-bit",
6-
"caddy",
78
"rng-tools",
8-
"device-discovery",
9-
"containerd"
9+
"tar"
1010
]
1111
}

0 commit comments

Comments
 (0)