nixos/stage-1: set up /dev/fd

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
This commit is contained in:
Cole Helbling 2020-09-22 15:33:21 -07:00
parent 684d691c6e
commit 4586810487
No known key found for this signature in database
GPG key ID: B37E0F2371016A4C

View file

@ -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