@@ -165,13 +165,18 @@ units = [
165165]
166166
167167in_units = [
168+ [' console-getty.service' , '' ],
169+ [' container-getty@.service' , '' ],
168170 [' debug-shell.service' , '' ],
169171 [' emergency.service' , '' ],
172+ [' getty@.service' , '' ,
173+ ' autovt@.service' ],
170174 [' kmod-static-nodes.service' , ' HAVE_KMOD ENABLE_TMPFILES' ,
171175 ' sysinit.target.wants/' ],
172176 [' quotaon.service' , ' ENABLE_QUOTACHECK' ],
173177 [' rc-local.service' , ' HAVE_SYSV_COMPAT' ],
174178 [' rescue.service' , '' ],
179+ [' serial-getty@.service' , '' ],
175180 [' systemd-backlight@.service' , ' ENABLE_BACKLIGHT' ],
176181 [' systemd-binfmt.service' , ' ENABLE_BINFMT' ,
177182 ' sysinit.target.wants/' ],
@@ -247,14 +252,6 @@ in_units = [
247252 [' user@.service' , '' ],
248253]
249254
250- m4_units = [
251- [' console-getty.service' , '' ],
252- [' container-getty@.service' , '' ],
253- [' getty@.service' , '' ,
254- ' autovt@.service ' ],
255- [' serial-getty@.service' , '' ],
256- ]
257-
258255add_wants = []
259256
260257foreach tuple : in_units
@@ -265,15 +262,11 @@ foreach tuple : in_units
265262 install = ((conds.get(0 , '' ) == '' or conf.get(conds[0 ]) == 1 ) and
266263 (conds.get(1 , '' ) == '' or conf.get(conds[1 ]) == 1 ))
267264
268- gen1 = configure_file (
269- input : file + ' .in' ,
270- output : file + ' .tmp' ,
271- configuration : substs)
272- gen2 = custom_target (
265+ custom_target (
273266 file,
274- input : gen1 ,
267+ input : file + ' .in ' ,
275268 output : file,
276- command : [sed, ' /^## /d ' , ' @INPUT@' ],
269+ command : [meson_render_jinja2, config_h , ' @INPUT@' ],
277270 capture : true ,
278271 install : install,
279272 install_dir : systemunitdir)
@@ -285,31 +278,6 @@ foreach tuple : in_units
285278 endif
286279endforeach
287280
288- foreach tuple : m4_units
289- file = tuple[0 ]
290- input = tuple.get(3 , file + ' .m4' )
291-
292- # we do this here because install_data does not accept custom_target output
293- conds = tuple[1 ].split(' ' )
294- install = ((conds.get(0 , '' ) == '' or conf.get(conds[0 ]) == 1 ) and
295- (conds.get(1 , '' ) == '' or conf.get(conds[1 ]) == 1 ))
296-
297- custom_target (
298- file,
299- input : input,
300- output : file,
301- command : [meson_apply_m4, config_h, ' @INPUT@' ],
302- capture : true ,
303- install : install,
304- install_dir : systemunitdir)
305-
306- if tuple.length() > 2 and install
307- foreach target : tuple[2 ].split()
308- add_wants += [systemunitdir, target, file]
309- endforeach
310- endif
311- endforeach
312-
313281foreach tuple : units
314282 file = tuple[0 ]
315283 input = tuple.get(3 , file)
0 commit comments