Skip to content

Commit

Permalink
nixos/stage-1: set up /dev/fd
Browse files Browse the repository at this point in the history
Otherwise, stage-2-init.sh will complain about not having access to
/dev/fd/62 as of systemd v246.

On IRC, flokli said:

    15:14 <flokli> cole-h: hmmm... I could imagine some of the setup inside /dev has been moved into other parts of systemd
    15:14 <flokli> And given we run systemd much later (outside initramfs only) it doesn't work properly here
    15:17 <flokli> We probably don't invoke udev correctly
  • Loading branch information
cole-h committed Sep 22, 2020
1 parent 684d691 commit 4586810
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nixos/modules/system/boot/stage-1-init.sh
Expand Up @@ -218,6 +218,7 @@ done
# Create device nodes in /dev.
@preDeviceCommands@
echo "running udev..."
ln -sfn /proc/self/fd /dev/fd
mkdir -p /etc/systemd
ln -sfn @linkUnits@ /etc/systemd/network
mkdir -p /etc/udev
Expand Down

0 comments on commit 4586810

Please sign in to comment.