7 |
# Niels Rogalla <niro@magellan-linux.de> |
# Niels Rogalla <niro@magellan-linux.de> |
8 |
# |
# |
9 |
|
|
10 |
# ignore the environment |
# setup locales |
11 |
LC_ALL=C |
TEXTDOMAIN=installer |
12 |
|
LC_MESSAGES=C |
13 |
|
|
14 |
# include dir |
# include dir |
15 |
INSTALLER_LIBDIR="%LIBDIR%" |
INSTALLER_LIBDIR="%LIBDIR%" |
16 |
|
|
115 |
local SHDD="${HDD//\/dev\/}" |
local SHDD="${HDD//\/dev\/}" |
116 |
|
|
117 |
messagebox -h $"[ Harddrive partitioning ]" \ |
messagebox -h $"[ Harddrive partitioning ]" \ |
118 |
$"\nPlease create 1 partition.\n\n\[ \Z3${SHDD}1\Zn ] type: \Z3linux\Zn with the whole diskspace\n\Please mark ${SHDD}1 \Z3bootable\Zn." |
$"Please create 1 partition.\n\n[ \Z3${SHDD}1\Zn ] type: \Z3linux\Zn with the whole diskspace.\nPlease mark ${SHDD}1 \Z3bootable\Zn." |
119 |
} |
} |
120 |
|
|
121 |
dialog_setup_hdd_info_auto() |
dialog_setup_hdd_info_auto() |
182 |
zotac*) message+=$"\n\Z2Zotac device detected.\Zn" ;; |
zotac*) message+=$"\n\Z2Zotac device detected.\Zn" ;; |
183 |
rangee) message+=$"\n\Z2Rangee device detected.\Zn" ;; |
rangee) message+=$"\n\Z2Rangee device detected.\Zn" ;; |
184 |
maxdata) message+=$"\n\Z2Maxdata device detected.\Zn" ;; |
maxdata) message+=$"\n\Z2Maxdata device detected.\Zn" ;; |
185 |
*) message+=$"\n \\ZnCommon device detected.\Zn" ;; |
*) message+=$"\n\ZnCommon device detected.\Zn" ;; |
186 |
esac |
esac |
187 |
if [[ ${FORMFACTOR} = laptop ]] |
if [[ ${FORMFACTOR} = laptop ]] |
188 |
then |
then |
189 |
message+=$"\n\ZnFormfactor Laptop, activating 'ondemand' powersaving mode.\Zn" |
message+=$"\n\ZnFormfactor Laptop, activating 'ondemand' powersaving mode.\Zn" |
190 |
fi |
fi |
191 |
|
|
192 |
messagebox -y 15 -h $"Detected hardware:" "${message}" |
messagebox -y 12 -h $"Detected hardware:" "${message}" |
193 |
} |
} |
194 |
|
|
195 |
dialog_setup_hdd_partitions_manual() |
dialog_setup_hdd_partitions_manual() |
255 |
|
|
256 |
while [[ ${method} -le 2 ]] |
while [[ ${method} -le 2 ]] |
257 |
do |
do |
258 |
method=$(menubox $"Configuration:" \ |
method=$(CANCEL_LABEL=$"Exit" menubox $"Configuration:" \ |
259 |
$"1:Install system" \ |
$"1:Install system" \ |
260 |
$"2:Show detected harddrives" \ |
$"2:Show detected harddrives" \ |
261 |
$"3:Exit and reboot" \ |
$"3:Exit and reboot" \ |
470 |
popd > /dev/null |
popd > /dev/null |
471 |
} |
} |
472 |
|
|
473 |
install_bootsector_chroot() |
disabled_install_bootsector_chroot() |
474 |
{ |
{ |
475 |
local my_roothdd |
local my_roothdd |
476 |
local grubconf="${INSTALLROOT}/boot/grub/grub.conf" |
local grubconf="${INSTALLROOT}/boot/grub/grub.conf" |
575 |
rm ${INSTALLROOT}/root/.installrc |
rm ${INSTALLROOT}/root/.installrc |
576 |
} |
} |
577 |
|
|
578 |
install_initrd_chroot() |
disabled_install_initrd_chroot() |
579 |
{ |
{ |
580 |
# only generate initrds if the cmd exists |
# only generate initrds if the cmd exists |
581 |
is_initrd_supported || return 0 |
is_initrd_supported || return 0 |