Skip to content

Commit 0841f16

Browse files
committed
quattor/server/config: enable tftpd service on EL9
1 parent 5f34fc4 commit 0841f16

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

quattor/aii/server/config.pan

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,23 @@ variable AII_DHCP_DHCPD_CONF_FILE ?= '/etc/dhcpd.conf';
1111

1212
include 'components/aiiserver/config';
1313

14-
# aii-shellfe configuration
14+
# Enable tftpd (on EL9 only for backward compatibility)
15+
include 'components/systemd/config';
16+
'/software/components/systemd/unit/tftp' = {
17+
if ( OS_VERSION_PARAMS['majorversion'] >= '9' ) {
18+
SELF['type'] = 'socket';
19+
SELF['state'] = 'enabled';
20+
SELF['startstop'] = true;
21+
};
1522

23+
if ( is_defined(SELF) ) {
24+
SELF;
25+
} else {
26+
null;
27+
};
28+
};
29+
30+
# aii-shellfe configuration
1631

1732
prefix '/software/components/aiiserver/aii-shellfe';
1833

0 commit comments

Comments
 (0)