Subversion Repositories livecd

Rev

Rev 33 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 33 Rev 34
Line 87... Line 87...
87
    the Master Boot Record (MBR) of DEVICE. The MBR will be 
87
    the Master Boot Record (MBR) of DEVICE. The MBR will be 
88
    backed up to PARTITION.
88
    backed up to PARTITION.
89
 
89
 
90
  OPTIONS:
90
  OPTIONS:
91
 
91
 
92
    -h   --help         Print this screen
92
    -h   --help       : Print this screen
93
    -swap=[partition]   Use [partition] as swap
93
    -swap=[partition] : Use [partition] as swap
94
    -win=[partition]    Your active Windows partition. If not given, 
94
    -win=[partition]  : Your active Windows partition. If not given, 
95
                        $SCRIPTNAME tries to find it
95
                        $SCRIPTNAME tries to find it
96
    -nogrub             Do not install grub. You have to install 
96
    -nogrub           : Do not install grub. You have to install 
97
                        manually a bootloader (not recommended)
97
                        manually a bootloader (not recommended)
98
    -floppy             Needed, if grub should be installed on floppy
98
    -floppy           : Needed, if grub should be installed on floppy
99
                        In this case use -mbr=/dev/fd0 -floppy
99
                        In this case use -mbr=/dev/fd0 -floppy
100
    -norpmremove        Do not remove RPMs that break future updates 
100
    -norpmremove      : Do not remove RPMs that can break future 
101
                        (not recommended)
101
                        updates (not recommended)
102
    -y                  Answer all questions with yes
102
    -y                : Answer all questions with yes
103
 
103
 
104
  Example:
104
  Example:
105
 
105
 
106
  $SCRIPTNAME -swap=/dev/sda3 -mbr=/dev/sda /dev/sda2
106
  $SCRIPTNAME -swap=/dev/sda3 -mbr=/dev/sda /dev/sda2
107
 
107
 
Line 157... Line 157...
157
	       SWAP_PART=$( echo $1 | sed 's/^-swap=//' )
157
	       SWAP_PART=$( echo $1 | sed 's/^-swap=//' )
158
	   else
158
	   else
159
	       shift
159
	       shift
160
               SWAP_PART=$1
160
               SWAP_PART=$1
161
	   fi
161
	   fi
162
	   shift; continue;;
162
	   ;;
163
 
163
 
164
       -mbr*)
164
       -mbr*)
165
           if echo $1 | grep -q '=' ; then
165
           if echo $1 | grep -q '=' ; then
166
	       MBR_DEV=$( echo $1 | sed 's/^-mbr=//' )
166
	       MBR_DEV=$( echo $1 | sed 's/^-mbr=//' )
167
	   else
167
	   else
168
	       shift
168
	       shift
169
               MBR_DEV=$1
169
               MBR_DEV=$1
170
	   fi
170
	   fi
171
	   shift; continue;;
171
	   ;;
172
 
172
 
173
       -win*)
173
       -win*)
174
           if echo $1 | grep -q '=' ; then
174
           if echo $1 | grep -q '=' ; then
175
	       WIN_PART=$( echo $1 | sed 's/^-win=//' )
175
	       WIN_PART=$( echo $1 | sed 's/^-win=//' )
176
	   else
176
	   else
177
	       shift
177
	       shift
178
               WIN_PART=$1
178
               WIN_PART=$1
179
	   fi
179
	   fi
180
	   shift; continue;;
180
	   ;;
181
 
181
 
182
       -nogrub)
182
       -nogrub)
183
            NOGRUB=$1; shift; continue;;
183
            NOGRUB=$1;;
184
 
184
 
185
       -norpmremove)
185
       -norpmremove)
186
            NORPMREMOVE=$1; shift; continue;;
186
            NORPMREMOVE=$1;;
187
 
187
 
188
       -floppy)
188
       -floppy)
189
            FLOPPY=$1; shift; continue;;
189
            FLOPPY=$1;;
190
 
190
 
191
       -y)
191
       -y)
192
            YES=$1; shift; continue;;
192
            YES=$1;;
193
 
193
 
194
       *)
194
       *)
195
            INSTALL_PART=$1; break;;
195
            INSTALL_PART=$1;;
196
    esac
196
    esac
197
 
197
 
-
 
198
    shift
-
 
199
 
198
done
200
done
199
echo
201
echo
200
 
202
 
201
 
203
 
202
### display fdisk -l
204
### display fdisk -l