forked from pool/systemd
Accepting request 173023 from home:fcrozat:branches:Base:System
- Use drop-in file to fix bnc#804158. OBS-URL: https://build.opensuse.org/request/show/173023 OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=370
This commit is contained in:
parent
1d570af07b
commit
f4535f0410
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Apr 23 14:58:47 CEST 2013 - fcrozat@suse.com
|
||||
|
||||
- Use drop-in file to fix bnc#804158.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Apr 23 12:44:16 UTC 2013 - coolo@suse.com
|
||||
|
||||
|
@ -554,10 +554,13 @@ mkdir -p %{buildroot}%{_prefix}/lib/systemd/system-sleep/
|
||||
mkdir -p %{buildroot}%{_prefix}/lib/systemd/system/default.target.wants
|
||||
mkdir -p %{buildroot}%{_prefix}/lib/systemd/system/dbus.target.wants
|
||||
|
||||
src="%buildroot/%_libexecdir/systemd/system/getty@.service"
|
||||
dst="${src/@/@tty1}"
|
||||
cp "$src" "$dst"
|
||||
perl -i -pe 's{^# the VT is cleared.*}{}i;s{(^TTYVTDisallocate=.*)}{}' "$dst"
|
||||
# create drop-in to prevent tty1 to be cleared (bnc#804158)
|
||||
mkdir -p %{buildroot}%{_prefix}/lib/systemd/system/getty@tty1.service.d/
|
||||
echo << EOF > %{buildroot}%{_prefix}/lib/systemd/system/getty@tty1.service.d/noclear.conf
|
||||
[Service]
|
||||
# ensure tty1 isn't cleared (bnc#804158)
|
||||
TTYVTDisallocate=no
|
||||
EOF
|
||||
|
||||
%fdupes -s %{buildroot}%{_mandir}
|
||||
|
||||
@ -792,6 +795,8 @@ fi
|
||||
%dir %{_prefix}/lib/systemd/system-sleep/
|
||||
%dir %{_prefix}/lib/systemd/system/default.target.wants
|
||||
%dir %{_prefix}/lib/systemd/system/dbus.target.wants
|
||||
%dir %{_prefix}/lib/systemd/system/getty@tty1.service.d
|
||||
%{_prefix}/lib/systemd/system/getty@tty1.service.d/noclear.conf
|
||||
%if ! 0%{?bootstrap}
|
||||
%{_prefix}/lib/systemd/system-generators/systemd-cryptsetup-generator
|
||||
%endif
|
||||
|
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Apr 23 14:58:47 CEST 2013 - fcrozat@suse.com
|
||||
|
||||
- Use drop-in file to fix bnc#804158.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Apr 23 12:44:16 UTC 2013 - coolo@suse.com
|
||||
|
||||
|
13
systemd.spec
13
systemd.spec
@ -549,10 +549,13 @@ mkdir -p %{buildroot}%{_prefix}/lib/systemd/system-sleep/
|
||||
mkdir -p %{buildroot}%{_prefix}/lib/systemd/system/default.target.wants
|
||||
mkdir -p %{buildroot}%{_prefix}/lib/systemd/system/dbus.target.wants
|
||||
|
||||
src="%buildroot/%_libexecdir/systemd/system/getty@.service"
|
||||
dst="${src/@/@tty1}"
|
||||
cp "$src" "$dst"
|
||||
perl -i -pe 's{^# the VT is cleared.*}{}i;s{(^TTYVTDisallocate=.*)}{}' "$dst"
|
||||
# create drop-in to prevent tty1 to be cleared (bnc#804158)
|
||||
mkdir -p %{buildroot}%{_prefix}/lib/systemd/system/getty@tty1.service.d/
|
||||
echo << EOF > %{buildroot}%{_prefix}/lib/systemd/system/getty@tty1.service.d/noclear.conf
|
||||
[Service]
|
||||
# ensure tty1 isn't cleared (bnc#804158)
|
||||
TTYVTDisallocate=no
|
||||
EOF
|
||||
|
||||
%fdupes -s %{buildroot}%{_mandir}
|
||||
|
||||
@ -787,6 +790,8 @@ fi
|
||||
%dir %{_prefix}/lib/systemd/system-sleep/
|
||||
%dir %{_prefix}/lib/systemd/system/default.target.wants
|
||||
%dir %{_prefix}/lib/systemd/system/dbus.target.wants
|
||||
%dir %{_prefix}/lib/systemd/system/getty@tty1.service.d
|
||||
%{_prefix}/lib/systemd/system/getty@tty1.service.d/noclear.conf
|
||||
%if ! 0%{?bootstrap}
|
||||
%{_prefix}/lib/systemd/system-generators/systemd-cryptsetup-generator
|
||||
%endif
|
||||
|
Loading…
Reference in New Issue
Block a user