Hello community,

here is the log from the commit of package dracut-sshd for openSUSE:Factory 
checked in at 2020-11-17 21:23:15
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/dracut-sshd (Old)
 and      /work/SRC/openSUSE:Factory/.dracut-sshd.new.24930 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "dracut-sshd"

Tue Nov 17 21:23:15 2020 rev:3 rq:848817 version:0.6.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/dracut-sshd/dracut-sshd.changes  2020-11-03 
15:16:27.676034015 +0100
+++ /work/SRC/openSUSE:Factory/.dracut-sshd.new.24930/dracut-sshd.changes       
2020-11-17 21:23:20.361261982 +0100
@@ -1,0 +2,7 @@
+Sat Nov 14 13:07:02 UTC 2020 - Daniel Molkentin <[email protected]>
+
+- Update patch for log-in hints to final upstream version
+  - removes 0001-Give-some-guidance-through-motd-prompt.patch
+  - adds 0001-Give-users-better-hints-after-logging-in.patch
+
+-------------------------------------------------------------------

Old:
----
  0001-Give-users-better-hints-after-logging-in.patch

New:
----
  0001-Give-some-guidance-through-motd-prompt.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ dracut-sshd.spec ++++++
--- /var/tmp/diff_new_pack.MXLPgJ/_old  2020-11-17 21:23:20.869262486 +0100
+++ /var/tmp/diff_new_pack.MXLPgJ/_new  2020-11-17 21:23:20.873262489 +0100
@@ -25,7 +25,7 @@
 Group:          System/Boot
 URL:            https://github.com/gsauthof/dracut-sshd
 Source:         
https://github.com/gsauthof/dracut-sshd/archive/%{version}%{pkg_rel}/%{name}-%{version}%{pkg_rel}.tar.gz
-Patch1:         0001-Give-users-better-hints-after-logging-in.patch
+Patch1:         0001-Give-some-guidance-through-motd-prompt.patch
 BuildRequires:  dracut
 Requires:       dracut
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
@@ -50,6 +50,7 @@
 %files
 %dir %{_prefix}/lib/dracut/modules.d/46sshd
 %{_prefix}/lib/dracut/modules.d/46sshd/module-setup.sh
+%{_prefix}/lib/dracut/modules.d/46sshd/motd
 %{_prefix}/lib/dracut/modules.d/46sshd/profile
 %{_prefix}/lib/dracut/modules.d/46sshd/sshd.service
 %config(noreplace)     

++++++ 0001-Give-some-guidance-through-motd-prompt.patch ++++++
From 351036bcd843345973a34a810e363d280b046f8c Mon Sep 17 00:00:00 2001
From: Georg Sauthoff <[email protected]>
Date: Sat, 14 Nov 2020 10:48:50 +0100
Subject: [PATCH] Give some guidance through motd/prompt

i.e. to make the nature/purpose of this special environment more
obvious to unsuspecting/occasional users.

Based on pull-request https://github.com/gsauthof/dracut-sshd/pull/36
by Daniel Molkentin.

fixes #36
---
 46sshd/module-setup.sh |  3 +++
 46sshd/motd            | 10 ++++++++++
 46sshd/profile         |  7 +++++++
 3 files changed, 20 insertions(+)
 create mode 100644 46sshd/motd
 create mode 100644 46sshd/profile

diff --git a/46sshd/module-setup.sh b/46sshd/module-setup.sh
index c9caca6..b861818 100755
--- a/46sshd/module-setup.sh
+++ b/46sshd/module-setup.sh
@@ -89,6 +89,9 @@ install() {
     mkdir -p -m 0755 "$initdir/var/log"
     touch "$initdir/var/log/lastlog"
 
+    inst_simple "${moddir}/motd" /etc/motd
+    inst_simple "${moddir}/profile" /root/.profile
+
     return 0
 }
 
diff --git a/46sshd/motd b/46sshd/motd
new file mode 100644
index 0000000..e8a4753
--- /dev/null
+++ b/46sshd/motd
@@ -0,0 +1,10 @@
+
+Welcome to the early boot SSH environment. You may type
+
+   systemd-tty-ask-password-agent
+
+(or press "arrow up") to unlock your disks.
+
+This shell will terminate automatically a few seconds after the
+unlocking process has succeeded and when the boot proceeds.  
+
diff --git a/46sshd/profile b/46sshd/profile
new file mode 100644
index 0000000..14d620b
--- /dev/null
+++ b/46sshd/profile
@@ -0,0 +1,7 @@
+if [ -n "$SSH_TTY" ]; then
+    export PS1='initramfs-ssh:${PWD}# '
+fi
+
+if [ -n "$TERM" ]; then
+    export TERM=vt220
+fi
-- 
2.29.2
_______________________________________________
openSUSE Commits mailing list -- [email protected]
To unsubscribe, email [email protected]
List Netiquette: https://en.opensuse.org/openSUSE:Mailing_list_netiquette
List Archives: 
https://lists.opensuse.org/archives/list/[email protected]

Reply via email to