Bug 514022

Summary: dracut causing 'cannot set terminal process group (-1): Inappropriate ioctl for device' with ttyS0
Product: [Fedora] Fedora Reporter: Mark McLoughlin <markmc>
Component: dracutAssignee: Harald Hoyer <harald>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: harald, plautrba
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-09-15 13:59:15 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:

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.