Subversion Repositories livecd

Rev

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

Rev 30 Rev 31
Line 89... Line 89...
89
    -win=[partition]    Your active Windows partition. If not given, 
89
    -win=[partition]    Your active Windows partition. If not given, 
90
                        $SCRIPTNAME tries to find it
90
                        $SCRIPTNAME tries to find it
91
    -nogrub             Do not install grub. You have to install 
91
    -nogrub             Do not install grub. You have to install 
92
                        manually a bootloader (not recommended)
92
                        manually a bootloader (not recommended)
93
    -floppy             Needed, if grub should be installed on floppy
93
    -floppy             Needed, if grub should be installed on floppy
-
 
94
                        In this case use -mbr=/dev/fd0 -floppy
94
    -norpmremove        Do not remove RPMs that break future updates 
95
    -norpmremove        Do not remove RPMs that break future updates 
95
                        (not recommended)
96
                        (not recommended)
96
    -y                  Answer all questions with yes
97
    -y                  Answer all questions with yes
97
 
98
 
98
  Example:
99
  Example:
Line 102... Line 103...
102
    Will install LiveCD on /dev/sda2 (= second partition on 
103
    Will install LiveCD on /dev/sda2 (= second partition on 
103
    first SATA disk). All data on /dev/sda2 will be deleted.
104
    first SATA disk). All data on /dev/sda2 will be deleted.
104
    /dev/sda3 has to be a Linux Swap partion. GRUB will be 
105
    /dev/sda3 has to be a Linux Swap partion. GRUB will be 
105
    installed in the MBR of /dev/sda (= first SATA disk).
106
    installed in the MBR of /dev/sda (= first SATA disk).
106
   
107
   
-
 
108
  Remarks:
-
 
109
 
-
 
110
    To display your hard disk partitions, user 'fdisk -l'.
-
 
111
    Use fdisk, qtparted or parted to create an empty Linux
-
 
112
    partition.
-
 
113
 
107
EOF
114
EOF
108
}
115
}
109
 
116
 
110
 
117
 
111
function exit_now() {
118
function exit_now() {
Line 122... Line 129...
122
###############################################################
129
###############################################################
123
 
130
 
124
### are we root?
131
### are we root?
125
### -----------------------------------------------------------
132
### -----------------------------------------------------------
126
if [ "$( whoami )" != "root" ]; then
133
if [ "$( whoami )" != "root" ]; then
127
    echo "Please run this script as roo/home/l_beyerle/svn-livecd/livecd/trunkt."
134
    echo; echo "Please run this script as root: 'su - -c $SCRIPTNAME'"; echo
128
    exit_now 1
135
    exit_now 1
129
fi
136
fi
130
 
137
 
131
 
138
 
132
### read options from command-line
139
### read options from command-line