Bug 52862
Summary: | Serial module not loading correct devices | ||||||
---|---|---|---|---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Lawrence M. Shaw <lmshaw> | ||||
Component: | setserial | Assignee: | Tim Waugh <twaugh> | ||||
Status: | CLOSED RAWHIDE | QA Contact: | Brock Organ <borgan> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 7.1 | CC: | kiosso | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | i386 | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2001-09-28 23:42:02 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Lawrence M. Shaw
2001-08-30 04:06:14 UTC
Anyone able to look at this? The 'test: too many arguments' problem: I'm pretty sure this is due to the serial driver being compiled statically into the kernel and not built as a module, and the initscript not coping with that very gracefully. I have fixed that here. The 'no such device' issue is due to standard error not being redirected as it should be. Fixing that up now. Created attachment 31617 [details]
Can you try this initscript, to see what is left to fix after those two things are cleared up?
I'll test the initscript tomorrow and let you know. Thanks very much for the fix. Question: Is the serial driver supposed to be compiled statically into the kernel? Is this related to Bug# 49426. Will it take a new kernel to solve being unable to unload the driver. Probably be fixed in 7.2? This is unrelated to that bug report. There is no need for serial port support to be modular. In fact there is a strong reason for not doing that: serial console. OK I've done some of the testing. Shutdown still has problems as follows: /etc/rc6.d/K75serial: test: too many arguments Startup looks much better. I only get the four ttyS0-S3 listed. Great! Might be a good idea to also show the serial startup the same as the other processes: "Starting serial" just before listing the ttys. I still need to test the ###AUTOSAVE### feature (per the serial HOWTO). Give me a couple days. Okay, I think I found the last cause of the 'too many arguments' problem: `head -1 /etc/serial.conf 2>/dev/null`X = "###AUTOSAVE###X" ; then should instead be: "$(head -1 /etc/serial.conf 2>/dev/null)" = "###AUTOSAVE###" ; then If you make that change, does that problem go away? Yes, that solves the shutdown errors. I still need to check the ###AUTOSAVE###. Will do this later this week. Thanks guys, this was perfect timing for me. A minor documentation point that could be fixed at the same time would be to make the instructions to run chkconfig in the last line of /usr/share/doc/setserial-2.17/README say "chkconfig --add serial" instead of "chkconfig -add serial". Fixed in setserial-2.17-5. Tested ###AUTOSAVE### feature and it now seems to work per documentation. I did get a couple "bad serial port count" errors as the serial.conf file was created but possibly this is normal. File looked OK. |