Skip to content

Create /dev/null in new root to prevent hangs#3

Merged
agners merged 1 commit intoagners:masterfrom
depau-forks:bug/devnull
Apr 17, 2020
Merged

Create /dev/null in new root to prevent hangs#3
agners merged 1 commit intoagners:masterfrom
depau-forks:bug/devnull

Conversation

@depau
Copy link
Copy Markdown
Contributor

@depau depau commented Apr 16, 2020

gnupg post install script does dirmngr </dev/null &>/dev/null.

Since pacman -r does not mount any filesystems but it does chroot into the new root to install the new packages, /dev/null does not exist, making the script hang forever.

This patch creates $newroot/dev/null before running pacman, and then removes it to prevent any issues.

gnupg post install script does "dirmngr </dev/null &>/dev/null".
Since "pacman -r" does not mount any filesystems but it does chroot
into the new root, /dev/null does not exist, making the script hang
forever.
@agners
Copy link
Copy Markdown
Owner

agners commented Apr 17, 2020

LGTM.

@agners agners merged commit 9229347 into agners:master Apr 17, 2020
@depau depau deleted the bug/devnull branch April 17, 2020 16:31
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

Successfully merging this pull request may close these issues.

2 participants