Skip to content

Commit 0026e6a

Browse files
williamhnavi-desu
authored andcommitted
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.
1 parent a05efd2 commit 0026e6a

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

init.d/meson.build

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,10 @@ install_symlink('functions.sh',
105105
install_dir: init_d_dir)
106106

107107
if get_option('sysvinit') == true and os == 'Linux'
108-
default_runlevel_dir = get_option('sysconfdir') / 'runlevels' / 'default'
109108
foreach x : get_option('agetty')
110109
link_name = 'agetty.' + x
111-
install_symlink(link_name, install_dir: init_d_dir, pointing_to: 'agetty')
112-
install_symlink(link_name, install_dir: default_runlevel_dir,
113-
pointing_to: init_d_dir / link_name)
110+
install_symlink(link_name,
111+
install_dir: init_d_dir,
112+
pointing_to: 'agetty')
114113
endforeach
115114
endif

runlevels/meson.build

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,4 +89,11 @@ foreach runlevel: runlevels.keys()
8989
install_dir: runlevel_dir / runlevel,
9090
pointing_to: init_d_dir / service)
9191
endforeach
92+
if get_option('sysvinit') == true and os == 'Linux' and runlevel == 'default'
93+
foreach tty : get_option('agetty')
94+
install_symlink('agetty.' + tty,
95+
install_dir: runlevel_dir / runlevel,
96+
pointing_to: init_d_dir / 'agetty.' + tty)
97+
endforeach
98+
endif
9299
endforeach

0 commit comments

Comments
 (0)