Bug 514022 - dracut causing 'cannot set terminal process group (-1): Inappropriate ioctl for device' with ttyS0
Summary: dracut causing 'cannot set terminal process group (-1): Inappropriate ioctl f...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: dracut
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Harald Hoyer
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-07-27 16:59 UTC by Mark McLoughlin
Modified: 2009-09-16 13:20 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-09-15 13:59:15 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Mark McLoughlin 2009-07-27 16:59:54 UTC
dracut-0.7-2.fc12

Booting a dracut initrd with console=ttyS0 and then logging over the serial console, gives this for me:

  -bash: cannot set terminal process group (-1): Inappropriate ioctl for device
  -bash: no job control in this shell

This isn't happening with a mkinitrd created initrd; no idea what the problem is yet, haven't debugged it

Comment 1 Harald Hoyer 2009-07-28 08:08:05 UTC
well, bash would have to do what init normally does:

        /* get session leader */
        setsid();

        /* set controlling terminal */
        if (ioctl (0, TIOCSCTTY, 1))
                warn("failed to TIOCSCTTY");

Comment 2 Harald Hoyer 2009-07-28 08:09:26 UTC
maybe we should write a small helper application which does just this and rexecs the shell.

Comment 3 Harald Hoyer 2009-09-15 13:59:15 UTC
sry, won't fix this

Comment 4 Petr Lautrbach 2009-09-16 12:31:20 UTC
it seems to be same problem as https://bugzilla.redhat.com/show_bug.cgi?id=519237

i'd suggest to close this as duplicate

Comment 5 Harald Hoyer 2009-09-16 13:20:33 UTC
#519237 is after we switch_root, so it's different.


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