]> git.pld-linux.org Git - packages/systemd.git/commitdiff
- do not require mktemp with optional TEMPLATE parameter auto/ac/udev-070-4
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 13 Oct 2005 10:11:19 +0000 (10:11 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    start_udev -> 1.16

start_udev

index 4cd016302dd8dbae87f470f4f62bef5e07b0b49e..6a6bdb9bfe10c0ada717f58d554fcc6e84b2455e 100644 (file)
@@ -161,11 +161,11 @@ nls "Starting udev"
 # mount the tmpfs on ${udev_root%/}, if not already done
 LANG=C awk "\$2 == \"${udev_root%/}\" && \$3 == \"tmpfs\" { exit 1 }" /proc/mounts && {
        if LANG=C fgrep -q "none ${udev_root%/}/pts " /proc/mounts; then
-               PTSDIR=$(mktemp -d)
+               PTSDIR=$(mktemp -d ${TMPDIR:-/tmp}/tmpXXXXXX)
                mount --move $udev_root/pts "$PTSDIR"
        fi
        if LANG=C fgrep -q "none ${udev_root%/}/shm " /proc/mounts; then
-               SHMDIR=$(mktemp -d)
+               SHMDIR=$(mktemp -d ${TMPDIR:-/tmp}/tmpXXXXXX)
                mount --move $udev_root/shm "$SHMDIR"
        fi
        mount -n -o mode=0755 -t tmpfs none "$udev_root"
This page took 0.389856 seconds and 4 git commands to generate.