Skip to content

Commit

Permalink
Merge pull request #175 from bcressey/improve-login
Browse files Browse the repository at this point in the history
login: start the getty services earlier
  • Loading branch information
bcressey authored Oct 4, 2024
2 parents 0cb4ddd + f9c6c29 commit 428e89b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/login/getty.drop-in.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[Install]
WantedBy=preconfigured.target
8 changes: 7 additions & 1 deletion packages/login/login.spec
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@ Release: 1%{?dist}
Summary: A login helper
License: Apache-2.0 OR MIT
URL: https://github.com/bottlerocket-os/bottlerocket
Source0: login
BuildRequires: %{_cross_os}glibc-devel
Requires: %{_cross_os}bash
Requires: %{_cross_os}systemd-console

Source0: login
Source1: getty.drop-in.conf

%description
%{summary}.

Expand All @@ -25,8 +27,12 @@ install -p -m 0755 %{S:0} %{buildroot}%{_cross_bindir}/login
install -d %{buildroot}%{_cross_sbindir}
ln -s ../bin/login %{buildroot}%{_cross_sbindir}/sulogin

install -d %{buildroot}%{_cross_unitdir}/getty.target.d
install -p -m 0644 %{S:1} %{buildroot}%{_cross_unitdir}/getty.target.d/001-login.conf

%files
%{_cross_bindir}/login
%{_cross_sbindir}/sulogin
%{_cross_unitdir}/getty.target.d/001-login.conf

%changelog

0 comments on commit 428e89b

Please sign in to comment.