Subversion Repositories livecd

Rev

Rev 104 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 104 Rev 108
Line 316... Line 316...
316
find_live_data_dir()
316
find_live_data_dir()
317
{
317
{
318
   if [ "$NFSROOT" != "" ]; then 
318
   if [ "$NFSROOT" != "" ]; then 
319
      DIR="/$1/nfs"
319
      DIR="/$1/nfs"
320
      mkdir -p $DIR
320
      mkdir -p $DIR
-
 
321
 
-
 
322
      # disable kernel warnings
-
 
323
      PRINTK=`cat /proc/sys/kernel/printk`
-
 
324
      echo "0" >/proc/sys/kernel/printk
-
 
325
      # try to mount nfs dir
321
      mount -t nfs -o nolock,ro,rsize=8192,wsize=8192,hard,intr $NFSROOT $DIR
326
      mount -t nfs -o nolock,ro,rsize=8192,wsize=8192,hard,intr $NFSROOT $DIR
-
 
327
      # enable kernel warnings
-
 
328
      echo "$PRINTK" >/proc/sys/kernel/printk
-
 
329
 
322
      FOUND=`ls -A1d $DIR/livecd.sgn $DIR/*/livecd.sgn 2>/dev/null | head -n 1`
330
      FOUND=`ls -A1d $DIR/livecd.sgn $DIR/*/livecd.sgn 2>/dev/null | head -n 1`
323
      if [ "$FOUND" != "" ]; then 
331
      if [ "$FOUND" != "" ]; then 
324
         dirname "$FOUND"
332
         dirname "$FOUND"
325
      fi
333
      fi
326
   else
334
   else
Line 356... Line 364...
356
# modprobe kernel modules needed for the LiveCD
364
# modprobe kernel modules needed for the LiveCD
357
#
365
#
358
modprobe_essential_modules()
366
modprobe_essential_modules()
359
{
367
{
360
   echolog "starting loop device support"
368
   echolog "starting loop device support"
361
   modprobe_module loop max_loop=32
369
   modprobe_module loop max_loop=255
362
   echolog "starting cdrom support"
370
   echolog "starting cdrom support"
363
   modprobe_module ide_cd
371
   modprobe_module ide_cd
364
   modprobe_module ide-cd
372
   modprobe_module ide-cd
365
   modprobe_module sr_mod
373
   modprobe_module sr_mod
366
   modprobe_module cdrom
374
   modprobe_module cdrom