Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-6265

make hostname in agetty(1) prompt optional

    • Normal
    • sst_cs_plumbers
    • ssg_core_services
    • 2
    • False
    • Hide

      None

      Show
      None
    • If docs needed, set a value

      This issue is similar to previously reported issue at
      https://bugzilla.redhat.com/show_bug.cgi?id=1520906
      [make hostname in login(1) prompt optional]

      The problem is that to be complete, it would also require
      agetty to also understand /etc/login.defs LOGIN_PLAIN_PROMPT
      value. Otherwise, it would be required some wrapper passing
      --nohostname
      The patch would not be so trivial, as would most likely require
      a copy of login-utils/logindefs.c added to term-utils and make
      agetty use it. Once added, the pseudo patch would be:

      term-utils/agetty.c:
      """
      printf(_("Hint: %s\n\n"), hint);
      }
      }
      #endif /* KDGKBLED */
      + if (!(op->flags & F_NOHSTNAME) &&
      + (getlogindefs_bool("LOGIN_PLAIN_PROMPT", 0) == 1)
      + op->flags |= F_NOHSTNAME;
      if ((op->flags & F_NOHOSTNAME) == 0) {
      char *hn = xgethostname();
      """

            rhn-engineering-kzak Karel Zak
            rhn-support-pandrade Paulo Andrade
            Karel Zak Karel Zak
            Radka Brychtova Radka Brychtova
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: