From 0026e6a1ee924a57764bdd0176959a0b3ddb0eb9 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Tue, 29 Apr 2025 10:16:53 -0500 Subject: [PATCH] build: fix installation of getty symlinks The getty symlinks are installed both in the init.d directory and the default runlevel directory. This makes the getty installation consistent with the rest of the runlevel setup. --- init.d/meson.build | 7 +++---- runlevels/meson.build | 7 +++++++ 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/init.d/meson.build b/init.d/meson.build index 8ef77e3e..387ba2f8 100644 --- a/init.d/meson.build +++ b/init.d/meson.build @@ -105,11 +105,10 @@ install_symlink('functions.sh', install_dir: init_d_dir) if get_option('sysvinit') == true and os == 'Linux' - default_runlevel_dir = get_option('sysconfdir') / 'runlevels' / 'default' foreach x : get_option('agetty') link_name = 'agetty.' + x - install_symlink(link_name, install_dir: init_d_dir, pointing_to: 'agetty') - install_symlink(link_name, install_dir: default_runlevel_dir, - pointing_to: init_d_dir / link_name) + install_symlink(link_name, + install_dir: init_d_dir, + pointing_to: 'agetty') endforeach endif diff --git a/runlevels/meson.build b/runlevels/meson.build index 56bc2f66..a634b1e4 100644 --- a/runlevels/meson.build +++ b/runlevels/meson.build @@ -89,4 +89,11 @@ foreach runlevel: runlevels.keys() install_dir: runlevel_dir / runlevel, pointing_to: init_d_dir / service) endforeach + if get_option('sysvinit') == true and os == 'Linux' and runlevel == 'default' + foreach tty : get_option('agetty') + install_symlink('agetty.' + tty, + install_dir: runlevel_dir / runlevel, + pointing_to: init_d_dir / 'agetty.' + tty) + endforeach + endif endforeach