X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=start_udev;h=7d1e0bd0d94c02351da3e8a5e9d1c01224ea925f;hb=559728728e255ee0b0b9036f6b12258cb3286187;hp=3f85f42d3f11e3a3b6cab6885576af8e85e27ee9;hpb=401263e16d4d28c09f38e80e38463ce08ac5c6ae;p=packages%2Fsystemd.git diff --git a/start_udev b/start_udev index 3f85f42..7d1e0bd 100644 --- a/start_udev +++ b/start_udev @@ -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 $? }