Bug 623685 - please extend agetty to not require a baud rate to be specified
Summary: please extend agetty to not require a baud rate to be specified
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: util-linux-ng
Version: rawhide
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Karel Zak
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-08-12 14:18 UTC by Lennart Poettering
Modified: 2012-01-10 15:02 UTC (History)
2 users (show)

Fixed In Version: util-linux-ng-2.18-4.fc14
Clone Of:
Environment:
Last Closed: 2012-01-10 15:02:07 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Lennart Poettering 2010-08-12 14:18:46 UTC
In systemd we are currently spawning a getty when console= points to a serial port on that serial port. Using agetty for that is not easy since it likes to override the already configured baudrate with its own settings. It would be cool if agetty would just reuse the serial settings the kernel configured on the port anyway. That way we could just spawn the getty and the settings specified on the kernel command line would be the only ones that matter.

In the times before systemd a tool included in the initscripts package used to read the baud rate from the device and then pass that to agetty. I think it is much cleaner if we can do without such a tool and have agetty just reuse the existing configuration.

Would love if this could happen before the F14 release.

Comment 1 Karel Zak 2010-08-18 08:21:26 UTC
I have added:

-s     Try to keep the existing baud rate. The baud rates from the command line are used when agetty receives a BREAK character.


For example:

  /sbin/agetty -s ttyname 9600

then the baud rate 9600 will be used when kernel setting is useless.

Comment 2 Fedora Update System 2010-08-18 08:38:10 UTC
util-linux-ng-2.18-4.fc14 has been submitted as an update for Fedora 14.
http://admin.fedoraproject.org/updates/util-linux-ng-2.18-4.fc14

Comment 3 Fedora Update System 2010-08-18 19:51:24 UTC
util-linux-ng-2.18-4.fc14 has been pushed to the Fedora 14 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update util-linux-ng'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/util-linux-ng-2.18-4.fc14

Comment 4 Lennart Poettering 2010-08-23 21:41:13 UTC
Awesome, you rock.

Comment 5 Fedora Update System 2010-09-01 05:47:47 UTC
util-linux-ng-2.18-4.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 6 Jon Masters 2010-10-22 06:07:02 UTC
The implementation in rawhide is not working correctly on a newly installed system. I have filed bug #645640.

Comment 7 Jon Masters 2010-10-29 08:15:06 UTC
I see 2.18-5 was built for rawhide but it hasn't turned up there yet. I just pulled the packages from Koji and tested them. I can confirm that the fixed package does correct the problem. Can you get it pushed out, please?

[setting back to assigned to ensure the rawhide bit goes out]


Note You need to log in before you can comment on or make changes to this bug.