Code: Select all
bash: cannot set terminal process group (-1): inappropriate ioctl for device
bash: no job control in this shellCode: Select all
bash: cannot set terminal process group (-1): inappropriate ioctl for device
bash: no job control in this shellAre you using/creating your custom initramfs?[b]JdeBP[/b] @ unix.stackexchange wrote:As I said at https://unix.stackexchange.com/a/197472/5132, init=/bin/sh doesn't get "API" fileystems mounted, crashes in an ungainly fashion with no cache flush when one types exit (https://unix.stackexchange.com/a/195978/5132), and in general leaves it to the (super)user to manually do the actions that make the system minimally usable.
One of those actions (if you want to use a job control shell, as you apparently do) is acquiring a controlling terminal. /dev/tty isn't an actual terminal device. It's a device that redirects to whatever the opening process' controlling terminal is. If it does not have one, as process #1 does not to begin with (and usually all of the time when a real system manager program is being run as process #1), then opening the device fails.
Your system is too minimal. You need to run a program that sets up a controlling terminal, initializes a proper session, and probably does some of the bare minima of system management such as shutting down properly and cleanly, that then runs your job control shell.
Code: Select all
0100100100100000011000010110110100100000
0100111001100001010011100010000100100000
0100100100100000011000010110110100100000
0110000100100000011011010110000101101110
00100001Code: Select all
0100100100100000011000010110110100100000
0100111001100001010011100010000100100000
0100100100100000011000010110110100100000
0110000100100000011011010110000101101110
00100001

Code: Select all
mount -t proc proc /proc
mount -t sysfs sys /sysI have added proc and sys in /etc/fstab. What else should I do?NeddySeagoon wrote:colag,
When you get to the bash shell, mount them.
Code: Select all
mount -t proc proc /proc mount -t sysfs sys /sys
This does not help because you boot into a "naked" bash ... then ALL RC-startup-scripts will not be started ... and THEY do the job of reading /etc/fstab and mounting all. For example:colag wrote:I have added proc and sys in /etc/fstab. What else should I do?

What are you doing, assembling a Linux From Scratch-like operating system piece by piece?colag wrote:I have installed shadow, sysvinit.
Hard to say without more knowledge about what you have installed so far and what state it currently is in. It is not a Gentoo system, is it?colag wrote:Now after booting, I can see a login prompt. After typing root then Enter, it does not prompt for password. Waiting for sometime, it shows the login prompt again to enter user. I get no prompt for password. Why is this?
Ionen wrote:As a packager I just don't want things to get messier with weird build systems and multiple toolchains requirements though