Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
rc.boot: Fix issue with Bedrock Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanaraps committed Mar 14, 2020
1 parent 3a457ab commit f8695f2
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions lib/init/rc.boot
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,15 @@ log "Mounting pseudo filesystems..."; {

# udev created these for us, however other device managers
# don't. This is fine even when udev is in use.
ln -sf /proc/self/fd /dev/fd
ln -sf fd/0 /dev/stdin
ln -sf fd/1 /dev/stdout
ln -sf fd/2 /dev/stderr
{
ln -sf /proc/self/fd /dev/fd

# Check that these don't already exist as symlinks to
# avoid issues when KISS is used with Bedrock Linux.
[ -h fd/0 ] || ln -sf fd/0 /dev/stdin
[ -h fd/1 ] || ln -sf fd/1 /dev/stdout
[ -h fd/2 ] || ln -sf fd/2 /dev/stderr
}
}

log "Starting device manager..."; {
Expand Down

0 comments on commit f8695f2

Please sign in to comment.