mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-18 02:44:30 +00:00
Mount devtmpfs in the initrd
It seems that udev now requires devtmpfs, so enable it.
This commit is contained in:
parent
cd7872b758
commit
cacd608c37
@ -66,17 +66,10 @@ mkdir -p /proc
|
||||
mount -t proc none /proc
|
||||
mkdir -p /sys
|
||||
mount -t sysfs none /sys
|
||||
mount -t tmpfs -o "mode=0755,size=@devSize@" none /dev
|
||||
mount -t devtmpfs -o "size=@devSize@" none /dev
|
||||
mkdir -p /run
|
||||
mount -t tmpfs -o "mode=0755,size=@runSize@" none /run
|
||||
|
||||
# Some console devices, for the interactivity
|
||||
mknod /dev/console c 5 1
|
||||
mknod /dev/tty c 5 0
|
||||
mknod /dev/tty1 c 4 1
|
||||
mknod /dev/ttyS0 c 4 64
|
||||
mknod /dev/ttyS1 c 4 65
|
||||
|
||||
# Process the kernel command line.
|
||||
export stage2Init=/init
|
||||
for o in $(cat /proc/cmdline); do
|
||||
@ -127,10 +120,6 @@ for i in @kernelModules@; do
|
||||
done
|
||||
|
||||
|
||||
# Create /dev/null.
|
||||
mknod /dev/null c 1 3
|
||||
|
||||
|
||||
# Create device nodes in /dev.
|
||||
echo "running udev..."
|
||||
export UDEV_CONFIG_FILE=@udevConf@
|
||||
|
@ -154,7 +154,6 @@ let
|
||||
# Copy some coreutils.
|
||||
cp -v ${pkgs.coreutils}/bin/basename $out/bin
|
||||
cp -v ${pkgs.coreutils}/bin/mkdir $out/bin
|
||||
cp -v ${pkgs.coreutils}/bin/mknod $out/bin
|
||||
cp -v ${pkgs.coreutils}/bin/chmod $out/bin
|
||||
cp -v ${pkgs.coreutils}/bin/cat $out/bin
|
||||
cp -v ${pkgs.coreutils}/bin/chroot $out/bin
|
||||
|
@ -39,7 +39,7 @@ if [ ! -e /proc/1 ]; then
|
||||
mkdir -m 0755 -p /sys
|
||||
mount -t sysfs none /sys
|
||||
mkdir -m 0755 -p /dev
|
||||
mount -t tmpfs -o "mode=0755" none /dev
|
||||
mount -t devtmpfs none /dev
|
||||
|
||||
# Create the minimal device nodes needed for the activation scripts
|
||||
# and Upstart.
|
||||
|
Loading…
Reference in New Issue
Block a user