Changeset 3284 in /cluster/svnroot


Ignore:
Timestamp:
Jul 1, 2011 9:15:15 AM (9 years ago)
Author:
skylar
Message:

creating nvidia device nodes at start up (#627)

Location:
bccd-ng/branches/skylar-devel
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • bccd-ng/branches/skylar-devel/bin/build_livecd.pl

    r3229 r3284  
    947947    "",
    948948    "Created non-root user account.",
    949     "/usr/sbin/chroot $BUILDDIR /usr/sbin/useradd -s /bin/bash -G fuse,adm -u 1000 -g 1000 -d /home/$USER -m -p '\$1\$Agm0SXPB\$JnObEvwBQdg4WCovvMKST1' $USER",
     949    "/usr/sbin/chroot $BUILDDIR /usr/sbin/useradd -s /bin/bash -G video,fuse,adm -u 1000 -g 1000 -d /home/$USER -m -p '\$1\$Agm0SXPB\$JnObEvwBQdg4WCovvMKST1' $USER",
    950950    );
    951951
  • bccd-ng/branches/skylar-devel/trees/etc/init.d/bccd-nvidia

    r3283 r3284  
    2929# Default-Start:     S
    3030# Default-Stop:
    31 # Short-Description: Start NFS if requested
     31# Short-Description: Create NVIDIA nodes if necessary
    3232### END INIT INFO
    3333
    34 . /usr/local/Modules/3.2.6/init/bash
    35 module load modules cuda
     34set -eo pipefail
     35
     36if [[ ! -c "/dev/nvidia0" ]]; then
     37        /bin/mknod -m 660 /dev/nvidia0 c 195 0
     38fi
     39
     40if [[ ! -c "/dev/nvidiactl" ]]; then
     41        /bin/mknod -m 660 /dev/nvidiactl c 195 255
     42fi
     43
     44/bin/chgrp video /dev/nvidia{0,ctl}
Note: See TracChangeset for help on using the changeset viewer.