]> git.pld-linux.org Git - packages/systemd.git/blobdiff - start_udev
- fix nonselinux case
[packages/systemd.git] / start_udev
index 3f85f42d3f11e3a3b6cab6885576af8e85e27ee9..7d1e0bd0d94c02351da3e8a5e9d1c01224ea925f 100644 (file)
@@ -60,7 +60,8 @@ make_extra_nodes () {
 }
 
 mount_udev() {
-       mount -n -o fscontext=system_u:object_r:device_t,mode=0755 \
+       [ -e "/selinux/enforce" ] && mountopt=",fscontext=system_u:object_r:device_t"
+       mount -n -o mode=0755${mountopt} \
                -t tmpfs none "$udev_root"
        return $?
 }
This page took 0.080322 seconds and 4 git commands to generate.