3
0
Fork 0
forked from mirrors/nixpkgs

stage-1: Don't mount /dev/shm if it's already mounted

(cherry picked from commit c8ef598945)
This commit is contained in:
Eelco Dolstra 2015-05-11 15:59:11 +02:00
parent 6bd4e0b8cd
commit 9647609e3e

View file

@ -85,8 +85,10 @@ done
# More special file systems, initialise required directories.
if ! mountpoint -q /dev/shm; then
mkdir -m 0755 /dev/shm
mount -t tmpfs -o "rw,nosuid,nodev,size=@devShmSize@" tmpfs /dev/shm
fi
mkdir -m 0755 -p /dev/pts
[ -e /proc/bus/usb ] && mount -t usbfs usbfs /proc/bus/usb # UML doesn't have USB by default
mkdir -m 01777 -p /tmp