Re: [RFC PATCH] sgetty: Smart serial console getty

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 Hi Daniel,

On Wed, Dec 04, 2013 at 11:31:37PM +0100, Daniel Kiper wrote:
> Very often when I was switching from Xen to Linux I was forced
> to change /etc/inittab to make serial console working. It was
> boring so I thought how to solve that problem. I was not able
> to find sensible solution. So I decided to write something.
> Here it is.

Would be better to extend agetty(1) to read console name from kernel
command line rather than introduce a special wrapper?

Something like:

   agetty --detect-console [baud_rate...] [term]

Note that in login-utils/sulogin-consoles.c we have code to detect
consoles for sulogin, for example detect_consoles_from_cmdline().

We did a lot of work to consolidate and clean up agetty and kill
things like mingetty in last years. So I'd like to have only util,
especially if all the magic is just console name only.

> I posted this patch earlier to Xen-devel list but Ian Campbell
> stated that it is more generic and maybe I should try to include

yeah, that's probably a generic issue.

BTW, I guess that systemd does not use hardcoded console names (like
/etc/inittab), ... just for the record :-) (I have no problem to
support classic inittab.)

    Karel

-- 
 Karel Zak  <kzak@xxxxxxxxxx>
 http://karelzak.blogspot.com
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux