Subversion Repositories livecd

Rev

Rev 219 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 219 Rev 220
Line 109... Line 109...
109
                           In this case use -mbr=/dev/fd0 -floppy
109
                           In this case use -mbr=/dev/fd0 -floppy
110
    -norpmremove         : Do not remove RPMs that can break future 
110
    -norpmremove         : Do not remove RPMs that can break future 
111
                           updates (not recommended)
111
                           updates (not recommended)
112
    -fstype              : File system type (ext3,xfs,etc.), default is $FS_TYPE
112
    -fstype              : File system type (ext3,xfs,etc.), default is $FS_TYPE
113
    -y                   : Answer all questions with yes
113
    -y                   : Answer all questions with yes
114
    -f                   : force formating 
-
 
115
 
114
 
116
  Example:
115
  Example:
117
 
116
 
118
  $SCRIPTNAME -swap=/dev/sda3 -mbr=/dev/sda /dev/sda2
117
  $SCRIPTNAME -swap=/dev/sda3 -mbr=/dev/sda /dev/sda2
119
 
118
 
Line 200... Line 199...
200
 
199
 
201
       -floppy)
200
       -floppy)
202
            FLOPPY=$1;;
201
            FLOPPY=$1;;
203
 
202
 
204
       -fstype)
203
       -fstype)
205
            $FS_TYPE=$1;;
204
            shift
206
 
-
 
207
       -f)
-
 
208
            $FORCE=$1;;
205
	    FS_TYPE=$1;;
209
 
206
 
210
       -y)
207
       -y)
211
            YES=$1;;
208
            YES=$1;;
212
 
209
 
213
       *)
210
       *)
Line 403... Line 400...
403
if [ $MOUNTED = "0" ]; then
400
if [ $MOUNTED = "0" ]; then
404
    ### format $INSTALL_PART
401
    ### format $INSTALL_PART
405
    ### -----------------------------------------------------------
402
    ### -----------------------------------------------------------
406
 
403
 
407
    # define force option for mkfs command
404
    # define force option for mkfs command
408
    if [ "$FORCE" ] && [ "$FS_TYPE" = "ext3" ];     then  FORCE="-F"; fi
-
 
409
    if [ "$FORCE" ] && [ "$FS_TYPE" = "ext2" ];     then  FORCE="-F"; fi
405
    FORCE=""
410
    if [ "$FORCE" ] && [ "$FS_TYPE" = "xfs" ];      then  FORCE="-f"; fi
406
    [ "$FS_TYPE" = "xfs" ] && FORCE="-f"
411
    if [ "$FORCE" ] && [ "$FS_TYPE" = "reiserfs" ]; then  FORCE=""; fi
-
 
412
    
407
    
413
    echo -n "Format $INSTALL_PART, please wait ... " 
408
    echo -n "Format $INSTALL_PART as $FS_TYPE, please wait ... " 
414
    mkfs.$FS_TYPE $FORCE -q $INSTALL_PART || exit_now 1
409
    mkfs.$FS_TYPE $FORCE -q $INSTALL_PART || exit_now 1
415
    echo "done."; echo
410
    echo "done."; echo
416
 
411
 
417
    ### mount $INSTALL_PART
412
    ### mount $INSTALL_PART
418
    ### -----------------------------------------------------------
413
    ### -----------------------------------------------------------