]> git.pld-linux.org Git - packages/systemd.git/commitdiff
- try both (selinux and non-selinux) even if there is selinux available
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Sat, 25 Sep 2004 21:14:18 +0000 (21:14 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    start_udev -> 1.4

start_udev

index 7d1e0bd0d94c02351da3e8a5e9d1c01224ea925f..7d1de6b448d2d8ecd400643412836f2373231a96 100644 (file)
@@ -60,9 +60,8 @@ make_extra_nodes () {
 }
 
 mount_udev() {
-       [ -e "/selinux/enforce" ] && mountopt=",fscontext=system_u:object_r:device_t"
-       mount -n -o mode=0755${mountopt} \
-               -t tmpfs none "$udev_root"
+       mount -n -o fscontext=system_u:object_r:device_t,mode=0755 -t tmpfs none "$udev_root" 2> /dev/null || \
+               mount -n -o mode=0755 -t tmpfs none "$udev_root" 2> /dev/null
        return $?
 }
 
This page took 0.395614 seconds and 4 git commands to generate.