Use install_replace_figlet's newly introduced 'getty' escape mode to
escape '\' with '\\' and prevent any possible variable interpolation
when /etc/issue is displayed by getty.

Signed-off-by: Roland Hieber <roh...@rohieb.name>
---
 rules/rootfs.make | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/rules/rootfs.make b/rules/rootfs.make
index 81d4cd93a..ef5bba7df 100644
--- a/rules/rootfs.make
+++ b/rules/rootfs.make
@@ -194,10 +194,12 @@ ifdef PTXCONF_ROOTFS_ISSUE
                $(call remove_quotes,$(PTXCONF_ROOTFS_ETC_HOSTNAME)))
        @$(call install_replace_figlet, rootfs, /etc/issue, \
                @FIGLET:VENDOR@, \
-               `sed -r 's/ ?([\.:;,]) ?/ \1 /' <<< $(PTXCONF_PROJECT_VENDOR)`)
+               `sed -r 's/ ?([\.:;,]) ?/ \1 /' <<< $(PTXCONF_PROJECT_VENDOR)`, 
\
+               etcissue)
        @$(call install_replace_figlet, rootfs, /etc/issue, \
                @FIGLET:HOSTNAME@, \
-               `sed -r 's/ ?([\.:;,]) ?/ \1 /' <<< 
$(PTXCONF_ROOTFS_ETC_HOSTNAME)`)
+               `sed -r 's/ ?([\.:;,]) ?/ \1 /' <<< 
$(PTXCONF_ROOTFS_ETC_HOSTNAME)`, \
+               etcissue)
 endif
 
 ifdef PTXCONF_ROOTFS_HOSTS
-- 
2.15.0


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

Reply via email to