Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mknod /dev/console can fail #54

Open
myo73 opened this issue Apr 1, 2019 · 0 comments
Open

mknod /dev/console can fail #54

myo73 opened this issue Apr 1, 2019 · 0 comments

Comments

@myo73
Copy link
Contributor

myo73 commented Apr 1, 2019

On 1/2/19 9:07 PM, Jan Kiszka wrote:

Hi all,

just saw this in CI build:

[...]
2019-01-02 19:37:55 - INFO - | localepurge: Removing disabled auto-generated config file.
2019-01-02 19:37:55 - INFO - |
2019-01-02 19:37:55 - INFO - | To reinstall all the packages which localepurge has been taking care
2019-01-02 19:37:55 - INFO - | of before, you can use the following command:
2019-01-02 19:37:55 - INFO - |
2019-01-02 19:37:55 - INFO - | apt-get -u --reinstall --fix-missing install $(dpkg -S LC_MESSAGES | cut -d: -f1 | tr ', ' '' | sort -u)
2019-01-02 19:37:55 - INFO - |
2019-01-02 19:37:55 - INFO - | mknod: /dev/console: File exists
2019-01-02 19:37:55 - INFO - | WARNING: exit code 1 from a shell command.
2019-01-02 19:37:55 - INFO - | ERROR: Function failed: do_rootfs (log file is located at /builds/ebsy/debian/build/tmp/work/jailhouse-demo-amd64/demo-image-qemu-amd64/temp/log.do_rootfs.66135)

I strongly suspect it comes from debian-configscript.sh:

Create console device if [ ! -e /dev/console ]; then mknod /dev/console c 5 1 fi
Something must be creating /dev/console in the background while the
config script runs. That is weird. Any ideas what could be the race
partner?

Do we still need this mknod? It date back to e7e5915. Removing this
would be the safest option because the case might be hard to reproduce -
I've only seen this once so far.

Jan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant