# HG changeset patch # User Dominique Corbex # Date 1331578466 -3600 # Node ID 5b379dc437a351227eb1647431197e9da968a2ff # Parent 0e2ea7cafc1526d302800d4903011188a181109e installer.cgi: repartitioning page added + fixes diff -r 0e2ea7cafc15 -r 5b379dc437a3 installer.cgi --- a/installer.cgi Mon Mar 12 16:56:04 2012 +0000 +++ b/installer.cgi Mon Mar 12 19:54:26 2012 +0100 @@ -7,7 +7,7 @@ # Authors : Dominique Corbex # -VERSION=0.28 +VERSION=0.29 # Common functions from libtazpanel . lib/libtazpanel @@ -139,28 +139,15 @@ cat <

$(gettext "SliTaz Installer")

-

$(gettext "The SliTaz Installer installs or upgrades SliTaz to a hard disk - drive from a device like a Live-CD or LiveUSB key, from a SliTaz ISO file, or - from the web by downloading an ISO file.")

+

+ $(gettext "The SliTaz Installer installs or upgrades SliTaz to a hard disk + drive from a device like a Live-CD or LiveUSB key, from a SliTaz ISO file, + or from the web by downloading an ISO file.") +

EOT } -select_gparted() -{ - cat < -

$(gettext "About")

-

- $(gettext "Before installation, you may need to resize partitions - on your hard disk drive in order to make space for SliTaz GNU/Linux. - You can graphically manage your partitions with Gparted") -

- -$(gettext "Execute Gparted") -EOT -} - select_install() { cat <$(gettext "Install")

$(gettext "Install SliTaz on a partition of your hard disk drive. If - you decide to format your HDD, all data will be lost. If you do not + you decide to format your partition, all data will be lost. If you do not format, all data except for any existing /home directory will be removed, the home directory will be kept as is.")

+

+ $(gettext "Before installation, you may need to create or resize partitions + on your hard disk drive in order to make space for SliTaz GNU/Linux. + You can graphically manage your partitions with Gparted") +

-$(gettext "Install SliTaz") +$(gettext "Install SliTaz") EOT } @@ -196,6 +188,58 @@ EOT } +select_gparted() +{ + cat <$(gettext "Partitioning") +

+

+ $(gettext "On most used systems, the hard drive is already dedicated to + partitions for Windows©, or Linux, or another operating + system. You'll need to resize these partitions in order to make space for + SliTaz GNU/Linux. SliTaz will co-exist with other operating systems already + installed on your hard drive.") +

+

+ $(gettext "The amount of space needed depends on how much software you + plan to install and how much space you require for users. It's conceivable + that you could run a minimal SliTaz system in 300 megs or less, but 2 gigs + is indeed more comfy.") +

+ $(gettext "A separate home partition, and a partition that will be used + as Linux swap space may be created if needed. Slitaz detects and uses swap + partitions automatically.") +

+

+
+
+

+ $(gettext "You can graphically manage your partitions with Gparted. GParted + is a partition editor for graphically managing your disk partitions. Gparted + allows you to create, destroy, resize and copy partitions without data + loss.") +

+

+ $(gettext "Gparted supports ext2, ext3, ext4, linux swap, ntfs and fat32 + filesystems right out of the box. Support for xjs, jfs, hfs and other + filesystems is available as well but you first need to add drivers for + these filesystems by installing the related packages xfsprogs, jfsutils, + linux-hfs and so on.") +

+
+$(gettext "Execute Gparted") +
$(gettext "Continue installation")
+ $(gettext "Once you've made room for SliTaz on your drive, you + should be able to continue installation.") + +
+ + $(gettext "Back to Installer Start Page") + + $(gettext "Continue Installation") +EOT +} + display_action() { case $1 in @@ -230,7 +274,7 @@ { cat < -

$(gettext "Source")

+

$(gettext "Slitaz source media")

@@ -276,14 +320,20 @@ EOT } +select_hdd() +{ +cat < +

$(gettext "Hard Disk Drive")

+EOT +} + select_partition() { - has_partitions=1 cat < -

$(gettext "Main Partition")

-
-$(gettext "Partition to use:") +$(gettext "Install Slitaz to partition:") " - - if [ has_partitions == 0 ]; then - echo "$(gettext "Gparted")" - fi cat << EOT +
@@ -321,10 +366,9 @@ select_old_slitaz() { cat < -

$(gettext "Existing SliTaz Partition")

-
-$(gettext "Partition in use:") +$(gettext "Existing SliTaz partition to upgrade:") " + cat < +
+EOT } select_hostname() { cat << EOT +
-

$(gettext "Host")

-$(gettext "Hostname:") +
$(gettext "Hostname")
+$(gettext "Set Hostname to:") +
EOT } select_root() { cat << EOT +
-

$(gettext "Root")

+
$(gettext "Root")
$(gettext "Root passwd:") $(gettext "Confirm password:") +
EOT } select_user() { cat << EOT +
-

$(gettext "User")

+
$(gettext "User")
$(gettext "User login:") @@ -412,71 +473,29 @@ $(gettext "Confirm password:") +
EOT } select_grub() { cat << EOT +
-

$(gettext "Grub")

+
$(gettext "Grub")
- + - + +
EOT } -validate() -{ - case $1 in - install) - cat << EOT - - -EOT - ;; - *) - cat << EOT - -EOT - ;; - esac -} - moveto_page() { case $1 in + partitioning) + title1=$(gettext "Back to partitioning") ;; *) page=home title1=$(gettext "Back to Installer Start Page") ;; @@ -496,7 +515,7 @@
$title1 -$title2 + EOT } @@ -587,7 +606,49 @@ form_start() { cat < + + +
EOT } @@ -601,35 +662,48 @@ # case "$(GET page)" in + home) + xhtml_header + select_action + select_install + select_upgrade + ;; + partitioning) + xhtml_header + display_action install + select_gparted + ;; gparted) su - -c "exec env DISPLAY=':0.0' XAUTHORITY='/var/run/slim.auth' /usr/sbin/gparted" xhtml_header - page_redirection home + page_redirection partitioning ;; install) xhtml_header - form_start + form_start install display_action install - validate install read_setup select_source + select_hdd select_partition + select_options select_home select_hostname select_root select_user select_grub - moveto_page home write + moveto_page partitioning write form_end ;; upgrade) xhtml_header - form_start + form_start upgrade display_action upgrade - validate upgrade read_setup select_source + select_hdd select_old_slitaz + select_options select_grub moveto_page home write form_end @@ -641,7 +715,7 @@ page_redirection $(GET INST_ACTION) else read_setup - form_start + form_start write display_action $(GET INST_ACTION) if run_tazinst; then moveto_page home reboot @@ -653,13 +727,6 @@ ;; reboot) reboot ;; - home) - xhtml_header - select_action - select_gparted - select_install - select_upgrade - ;; failed) xhtml_header display_log @@ -667,7 +734,7 @@ menu_install) xhtml_header if check_ressources; then - page_redirection install + page_redirection partitioning fi ;; menu_upgrade) diff -r 0e2ea7cafc15 -r 5b379dc437a3 styles/default/header.html --- a/styles/default/header.html Mon Mar 12 16:56:04 2012 +0000 +++ b/styles/default/header.html Mon Mar 12 19:54:26 2012 +0100 @@ -86,7 +86,6 @@
  • Install