Bug#251549: partman: "strange" progress bar title when formatting partitions
Package: partman
Severity: normal
Tags: patch
This bug shows up when partman-* format partitions. The progress box title
is then "Please wait..." which seems a bit nasty as a title.
I propose using "Partition formatting" by *adding* a new template of type
"text" ("Please wait..." is still needed in other situations). The attached
patch changes this in partman templates as well as all templates in
partman-* packages which use this templates.
This is why this patch should be applied to the partman *tree* and not only
the partman package.
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.6-1-686
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (ignored: LC_ALL set to fr_FR.UTF-8)
diff -Nru partman/partman/debian/partman/lib/partman/#definitions.sh# partman.new/partman/debian/partman/lib/partman/#definitions.sh#
--- partman/partman/debian/partman/lib/partman/#definitions.sh# 1969-12-31 21:00:00.000000000 -0300
+++ partman.new/partman/debian/partman/lib/partman/#definitions.sh# 2004-05-28 20:01:18.000000000 -0300
@@ -0,0 +1,680 @@
+
+. /usr/share/debconf/confmodule
+
+TAB=' '
+NL='
+'
+ORIGINAL_IFS="${ORIGINAL_IFS:-$IFS}"; export ORIGINAL_IFS
+
+restore_ifs () {
+ IFS="$ORIGINAL_IFS"
+}
+
+dirname () {
+ local x
+ x="${1%/}"
+ echo "${x%/*}"
+}
+
+basename () {
+ local x
+ x="${1%$2}"
+ x="${x%/}"
+ echo "${x##*/}"
+}
+
+debconf_select () {
+ local IFS priority template choices default_choice default x u newchoices code
+ priority="$1"
+ template="$2"
+ choices="$3"
+ default_choice="$4"
+ default=''
+ # Debconf ignores spaces so we have to remove them from $choices
+ newchoices=''
+ IFS="$NL"
+ for x in $choices; do
+ local key option
+ restore_ifs
+ key=$(echo ${x%$TAB*})
+ # work around bug #243373
+ if [ "$TERM" = xterm -o "$TERM" = bterm ]; then
+ debconf_select_lead=' '
+ else
+ debconf_select_lead="> "
+ fi
+ option=$(echo "${x#*$TAB}" | sed 's/ *$//g' | sed "s/^ /$debconf_select_lead/g")
+ newchoices="${newchoices}${NL}${key}${TAB}${option}"
+ if [ "$key" = "$default_choice" ]; then
+ default="$option"
+ fi
+ done
+ choices="$newchoices"
+ u=''
+ IFS="$NL"
+ # escape the commas and leading whitespace but keep them unescaped
+ # in $choices
+ for x in $choices; do
+ u="$u, `echo ${x#*$TAB} | sed 's/,/\\\\,/g' | sed 's/^ /\\\\ /'`"
+ done
+ u=${u#, }
+ if [ -n "$default" ]; then
+ db_set $template "$default"
+ fi
+ db_subst $template CHOICES "$u"
+ code=0
+ db_input $priority $template || code=1
+ db_go || return 255
+ db_get $template
+ IFS="$NL"
+ for x in $choices; do
+ if [ "$RET" = "${x#*$TAB}" ]; then
+ RET="${x%$TAB*}"
+ break
+ fi
+ done
+ return $code
+}
+
+menudir_default_choice () {
+ printf "%s__________%s\n" "$(basename $1/??$2)" "$3" > $1/default_choice
+}
+
+ask_user () {
+ local IFS dir template priority default choices plugin name option
+ dir="$1"; shift
+ template=$(cat $dir/question)
+ priority=$(cat $dir/priority)
+ if [ -f $dir/default_choice ]; then
+ default=$(cat $dir/default_choice)
+ else
+ default=""
+ fi
+ choices=$(
+ for plugin in $dir/*; do
+ [ -d $plugin ] || continue
+ name=$(basename $plugin)
+ IFS="$NL"
+ for option in $($plugin/choices "$@"); do
+ printf "%s__________%s\n" $name "$option"
+ done
+ restore_ifs
+ done
+ )
+ db_fset $template seen false
+ code=0
+ debconf_select $priority $template "$choices" "$default" || code=$?
+ if [ $code -ge 100 ]; then return 255; fi
+ echo "$RET" >$dir/default_choice
+ $dir/${RET%__________*}/do_option ${RET#*__________} "$@" || return $?
+ return 0
+}
+
+partition_tree_choices () {
+ local IFS
+ for dev in $DEVICES/*; do
+ [ -d $dev ] || continue
+ printf "%s//\t%s\n" $dev "$(device_name $dev)" # GETTEXT?
+ cd $dev
+
+ open_dialog PARTITIONS
+ partitions="$(read_paragraph)"
+ close_dialog
+
+ IFS="$TAB"
+ echo "$partitions" |
+ while { read num id size type fs path name; [ "$id" ]; }; do
+ part=${dev}/$id
+ [ -f $part/view ] || continue
+ printf "%s//%s\t %s\n" "$dev" "$id" $(cat $part/view)
+ done
+ restore_ifs
+ done
+}
+
+longint_le () {
+ local x y
+ # remove the leading 0
+ x=$(expr "$1" : '0*\(.*\)')
+ y=$(expr "$2" : '0*\(.*\)')
+ if [ ${#x} -lt ${#y} ]; then
+ return 0
+ elif [ ${#x} -gt ${#y} ]; then
+ return 1
+ elif [ "$x" = "$y" ]; then
+ return 0
+ elif [ "$x" '<' "$y" ]; then
+ return 0
+ else
+ return 1
+ fi
+}
+
+longint2human () {
+ local longint suffix bytes int frac deci
+ # fallback value for $deci:
+ deci="${deci:-.}"
+ case ${#1} in
+ 1|2|3)
+ suffix=B
+ longint=${1}0
+ ;;
+ 4|5|6)
+ suffix=kB
+ longint=${1%??}
+ ;;
+ 7|8|9)
+ suffix=MB
+ longint=${1%?????}
+ ;;
+ 10|11|12)
+ suffix=GB
+ longint=${1%????????}
+ ;;
+ *)
+ suffix=TB
+ longint=${1%???????????}
+ ;;
+ esac
+ int=${longint%?}
+ frac=${longint#$int}
+ printf "%i%s%i %s\n" $int $deci $frac $suffix
+}
+
+human2longint () {
+ local human suffix int frac longint
+ set -- $*; human="$1$2$3$4$5" # without the spaces
+ human=${human%b} #remove last b
+ human=${human%B} #remove last B
+ suffix=${human#${human%?}} # the last symbol of $human
+ case $suffix in
+ k|K|m|M|g|G|t|T)
+ human=${human%$suffix}
+ ;;
+ *)
+ suffix=''
+ ;;
+ esac
+ int="${human%[.,]*}"
+ [ "$int" ] || int=0
+ frac=${human#$int}
+ frac="${frac#[.,]}0000" # to be sure there are at least 4 digits
+ frac=${frac%${frac#????}} # only the first 4 digits of $frac
+ longint=$(($int * 10000 + $frac))
+ case $suffix in
+ k|K)
+ longint=${longint%?}
+ ;;
+ m|M)
+ longint=${longint}00
+ ;;
+ g|G)
+ longint=${longint}00000
+ ;;
+ t|T)
+ longint=${longint}00000000
+ ;;
+ *) # no suffix:
+ # bytes
+ #longint=${longint%????}
+ #[ "$longint" ] || longint=0
+ # megabytes
+ longint=${longint}00
+ ;;
+ esac
+ echo $longint
+}
+
+valid_human () {
+ local IFS patterns
+ patterns='[0-9][0-9]* *$
+[0-9][0-9]* *[bB] *$
+[0-9][0-9]* *[kKmMgGtT] *$
+[0-9][0-9]* *[kKmMgGtT][bB] *$
+[0-9]*[.,][0-9]* *$
+[0-9]*[.,][0-9]* *[bB] *$
+[0-9]*[.,][0-9]* *[kKmMgGtT] *$
+[0-9]*[.,][0-9]* *[kKmMgGtT][bB] *$'
+ IFS="$NL"
+ for regex in $patterns; do
+ if expr "$1" : "$regex" >/dev/null; then return 0; fi
+ done
+ return 1
+}
+
+update_partition () {
+ local u
+ cd $1
+ open_dialog PARTITION_INFO $2
+ read_line part
+ close_dialog
+ [ "$part" ] || return 0
+ for u in /lib/partman/update.d/*; do
+ [ -x "$u" ] || continue
+ $u $1 $part
+ done
+}
+
+DEVICES=/var/lib/partman/devices
+
+# 0, 1 and 2 are standard input, output and error.
+# 3, 4 and 5 are used by cdebconf
+# 6=infifo
+# 7=outfifo
+
+open_infifo() {
+ exec 6>/var/lib/partman/infifo
+}
+
+close_infifo() {
+ exec 6>&-
+}
+
+open_outfifo () {
+ exec 7</var/lib/partman/outfifo
+}
+
+close_outfifo () {
+ exec 7<&-
+}
+
+write_line () {
+ log IN: "$@"
+ echo "$@" >&6
+}
+
+read_line () {
+ read "$@" <&7
+}
+
+synchronise_with_server () {
+ exec 6>/var/lib/partman/stopfifo
+ exec 6>&-
+}
+
+read_paragraph () {
+ local line
+ while { read_line line; [ "$line" ]; }; do
+ log "paragraph: $line"
+ echo "$line"
+ done
+}
+
+read_list () {
+ local item list
+ list=''
+ while { read_line item; [ "$item" ]; }; do
+ log "option: $item"
+ if [ "$list" ]; then
+ list="$list, $item"
+ else
+ list="$item"
+ fi
+ done
+ echo "$list"
+}
+
+name_progress_bar () {
+ echo $1 >/var/lib/partman/progress_info
+}
+
+error_handler () {
+ local exception_type info state frac type priority message options skipped
+ while { read_line exception_type; [ "$exception_type" != OK ]; }; do
+ log error_handler: exception with type $exception_type
+ case "$exception_type" in
+ Timer)
+ if [ -f /var/lib/partman/progress_info ]; then
+ info=$(cat /var/lib/partman/progress_info)
+ else
+ info=partman/processing
+ fi
+ db_progress START 0 1000 partman/text/please_w
+ db_progress INFO $info
+ while { read_line frac state; [ "$frac" != ready ]; }; do
+ if [ "$state" ]; then
+ db_subst $info STATE "$state"
+ db_progress INFO $info
+ fi
+ db_progress SET $frac
+ done
+ db_progress STOP
+ continue
+ ;;
+ Information)
+ type='Information'
+ priority=low
+ ;;
+ Warning)
+ type='Warning!'
+ priority=medium
+ ;;
+ Error)
+ type='ERROR!!!'
+ priority=high
+ ;;
+ Fatal)
+ type='FATAL ERROR!!!'
+ priority=critical
+ ;;
+ Bug)
+ type='A bug has been discovered!!!'
+ priority=critical
+ ;;
+ No?Implementation)
+ type='Not yet implemented!'
+ priority=critical
+ ;;
+ *)
+ type="??? $exception_type ???"
+ priority=critical
+ ;;
+ esac
+ log error_handler: reading message
+ message=$(read_paragraph)
+ log error_handler: reading options
+ options=$(read_list)
+ db_subst partman/exception_handler TYPE "$type"
+ db_subst partman/exception_handler DESCRIPTION "$message"
+ db_fset partman/exception_handler seen false
+ db_subst partman/exception_handler CHOICES "$options"
+ if
+ expr "$options" : '.*,.*' >/dev/null \
+ && db_input $priority partman/exception_handler
+ then
+ if db_go; then
+ db_get partman/exception_handler
+ write_line "$RET"
+ else
+ write_line "unhandled"
+ fi
+ else
+ db_subst partman/exception_handler_note TYPE "$type"
+ db_subst partman/exception_handler_note DESCRIPTION "$message"
+ db_fset partman/exception_handler_note seen false
+ db_input $priority partman/exception_handler_note || true
+ db_go || true
+ write_line "unhandled"
+ fi
+ done
+ if [ -f /var/lib/partman/progress_info ]; then
+ rm /var/lib/partman/progress_info
+ fi
+}
+
+open_dialog () {
+ command="$1"
+ shift
+ open_infifo
+ write_line "$command" "${PWD##*/}" "$@"
+ open_outfifo
+ error_handler
+}
+
+close_dialog () {
+ close_outfifo
+ close_infifo
+ exec 6>/var/lib/partman/stopfifo
+ exec 6>&-
+ exec 7>/var/lib/partman/outfifo
+ exec 7>&-
+ exec 6>/var/lib/partman/stopfifo
+ exec 6>&-
+ exec 6</var/lib/partman/infifo
+ cat <&6 >/dev/null
+ exec 6<&-
+ exec 6>/var/lib/partman/stopfifo
+ exec 6>&-
+}
+
+log () {
+ local program
+ echo $0: "$@" >>/var/log/partman
+}
+
+####################################################################
+# The functions below are not yet documented
+####################################################################
+
+# TODO: this should not be global
+humandev () {
+ local host bus target part lun idenum targtype scsinum linux
+ case "$1" in
+ /dev/ide/host*/bus[01]/target[01]/lun0/disc)
+ host=`echo $1 | sed 's,/dev/ide/host\(.*\)/bus.*/target[01]/lun0/disc,\1,'`
+ bus=`echo $1 | sed 's,/dev/ide/host.*/bus\(.*\)/target[01]/lun0/disc,\1,'`
+ target=`echo $1 | sed 's,/dev/ide/host.*/bus.*/target\([01]\)/lun0/disc,\1,'`
+ idenum=$((2 * $host + $bus + 1))
+ linux=$(mapdevfs $1)
+ linux=${linux#/dev/}
+ if [ "$target" = 0 ]; then
+ db_metaget partman/text/ide_master_disk description
+ printf "$RET" ${idenum} ${linux}
+ else
+ db_metaget partman/text/ide_slave_disk description
+ printf "$RET" ${idenum} ${linux}
+ fi
+ ;;
+ /dev/ide/host*/bus[01]/target[01]/lun0/part*)
+ host=`echo $1 | sed 's,/dev/ide/host\(.*\)/bus.*/target[01]/lun0/part.*,\1,'`
+ bus=`echo $1 | sed 's,/dev/ide/host.*/bus\(.*\)/target[01]/lun0/part.*,\1,'`
+ target=`echo $1 | sed 's,/dev/ide/host.*/bus.*/target\([01]\)/lun0/part.*,\1,'`
+ part=`echo $1 | sed 's,/dev/ide/host.*/bus.*/target[01]/lun0/part\(.*\),\1,'`
+ idenum=$((2 * $host + $bus + 1))
+ linux=$(mapdevfs $1)
+ linux=${linux#/dev/}
+ if [ "$target" = 0 ]; then
+ db_metaget partman/text/ide_master_partition description
+ printf "$RET" ${idenum} "$part" "${linux}"
+ else
+ db_metaget partman/text/ide_slave_partition description
+ printf "$RET" ${idenum} "$part" "${linux}"
+ fi
+ ;;
+ /dev/scsi/host*/bus*/target*/lun*/disc)
+ host=`echo $1 | sed 's,/dev/scsi/host\(.*\)/bus.*/target.*/lun.*/disc,\1,'`
+ bus=`echo $1 | sed 's,/dev/scsi/host.*/bus\(.*\)/target.*/lun.*/disc,\1,'`
+ target=`echo $1 | sed 's,/dev/scsi/host.*/bus.*/target\(.*\)/lun.*/disc,\1,'`
+ lun=`echo $1 | sed 's,/dev/scsi/host.*/bus.*/target.*/lun\(.*\)/disc,\1,'`
+ scsinum=$(($host + 1))
+ linux=$(mapdevfs $1)
+ linux=${linux#/dev/}
+ db_metaget partman/text/scsi_disk description
+ printf "$RET" ${scsinum} ${bus} ${target} ${lun} ${linux}
+ ;;
+ /dev/scsi/host*/bus*/target*/lun*/part*)
+ host=`echo $1 | sed 's,/dev/scsi/host\(.*\)/bus.*/target.*/lun.*/part.*,\1,'`
+ bus=`echo $1 | sed 's,/dev/scsi/host.*/bus\(.*\)/target.*/lun.*/part.*,\1,'`
+ target=`echo $1 | sed 's,/dev/scsi/host.*/bus.*/target\(.*\)/lun.*/part.*,\1,'`
+ lun=`echo $1 | sed 's,/dev/scsi/host.*/bus.*/target.*/lun\(.*\)/part.*,\1,'`
+ part=`echo $1 | sed 's,/dev/scsi/host.*/bus.*/target.*/lun.*/part\(.*),\1,'`
+ scsinum=$(($host + 1))
+ linux=$(mapdevfs $1)
+ linux=${linux#/dev/}
+ db_metaget partman/text/scsi_partition description
+ printf "$RET" ${scsinum} ${bus} ${target} ${lun} ${part} ${linux}
+ ;;
+ /dev/md/*)
+ device=`echo "$1" | sed -e "s/.*md\/\?\(.*\)/\1/"`
+ type=`cat /proc/mdstat|grep "^md${device}[ :]" | sed -e "s/^.* : active raid\([[:alnum:]]\).*/\1/"`
+ db_metaget partman/text/raid_device description
+ printf "$RET" ${type} ${device}
+ ;;
+ /dev/mapper/*)
+ # LVM2 devices are found as /dev/mapper/<vg>-<lv>. If the vg
+ # or lv contains a dash, the dash is replaced by two dashes.
+ # In order to decode this into vg and lv, first find the
+ # occurance of one single dash to split the string into vg and
+ # lv, and then replace two dashes next to each other with one.
+ vglv=${1#/dev/mapper/}
+ vglv=`echo "$vglv" | sed -e 's/\([^-]\)-\([^-]\)/\1 \2/' | sed -e 's/--/-/g'`
+ vg=`echo "$vglv" | cut -d" " -f1`
+ lv=`echo "$vglv" | cut -d" " -f2`
+ db_metaget partman/text/lvm_lv description
+ printf "$RET" $vg $lv
+ ;;
+ *)
+ # Check if it's an LVM1 device
+ vg=`echo "$1" | sed -e 's,/dev/\([^/]\+\).*,\1,'`
+ lv=`echo "$1" | sed -e 's,/dev/[^/]\+/,,'`
+ if [ -e "/proc/lvm/VGs/$vg/LVs/$lv" ] ; then
+ db_metaget partman/text/lvm_lv description
+ printf "$RET" $vg $lv
+ else
+ echo "$1"
+ fi
+ ;;
+ esac
+}
+
+device_name () {
+ cd $1
+ printf "%s - %s %s" "$(humandev $(cat device))" "$(longint2human $(cat size))" "$(cat model)"
+}
+
+enable_swap () {
+ local swaps dev num id size type fs path name method filesystem
+ # do swapon only when we will be able to swapoff afterwards
+ [ -f /proc/swaps ] || return 0
+ swaps=''
+ for dev in $DEVICES/*; do
+ [ -d $dev ] || continue
+ cd $dev
+ open_dialog PARTITIONS
+ while { read_line num id size type fs path name; [ "$id" ]; }; do
+ [ $fs != free ] || continue
+ [ -f "$id/method" ] || continue
+ [ -f "$id/acting_filesystem" ] || continue
+ filesystem=$(cat $id/acting_filesystem)
+ if [ "$filesystem" = linux-swap ]; then
+ swaps="$swaps $path"
+ fi
+ done
+ close_dialog
+ done
+ for path in $swaps; do
+ swapon $path
+ done
+}
+
+disable_swap () {
+ [ -f /proc/swaps ] || return 0
+ cat /proc/swaps | grep '^/dev' \
+ | while read path x; do
+ swapoff $path
+ done
+}
+
+default_disk_label () {
+ if [ -x /bin/archdetect ]; then
+ archdetect=$(archdetect)
+ else
+ archdetect=unknown/generic
+ fi
+ arch=${archdetect%/*}
+ sub=${archdetect#*/}
+ case "$arch" in
+ alpha)
+ # Load srm_env.o if we can; this should fail on ARC-based systems.
+ (modprobe srm_env || true) 2> /dev/null
+ if [ -f /proc/srm_environment/named_variables/booted_dev ]; then
+ # Have SRM, so need BSD disklabels
+ echo bsd
+ else
+ echo msdos
+ fi;;
+ arm)
+ case "$sub" in
+ riscstation)
+ echo msdos;;
+ netwinder)
+ echo msdos;;
+ bast)
+ echo msdos;;
+ *)
+ echo UNKNOWN;;
+ esac;;
+ amd64)
+ echo msdos;;
+ hppa)
+ echo msdos;;
+ ia64)
+ echo gpt;;
+ i386)
+ echo msdos;;
+ m68k)
+ case "$sub" in
+ amiga)
+ echo amiga;;
+ atari)
+ echo UNSUPPORTED;; # atari is unsupported by parted
+ mac)
+ echo mac;;
+ *vme*)
+ echo msdos;;
+ q40)
+ echo UNSUPPORTED;; # (same as atari)
+ sun*)
+ echo sun;;
+ *)
+ echo UNKNOWN;;
+ esac;;
+ mips)
+ case "$sub" in
+ r4k-ip22)
+ echo dvh;;
+ r5k-ip22)
+ echo dvh;;
+ sb1-swarm-bn)
+ echo msdos;;
+ *)
+ echo UNKNOWN;;
+ esac;;
+ mipsel)
+ case "$sub" in
+ r3k-kn02)
+ echo msdos;;
+ r4k-kn04)
+ echo msdos;;
+ sb1-swarm-bn)
+ echo msdos;;
+ cobalt)
+ echo msdos;;
+ *)
+ echo UNKNOWN;;
+ esac;;
+ powerpc)
+ case "$sub" in
+ apus)
+ echo amiga;;
+ amiga)
+ echo amiga;;
+ chrp)
+ echo msdos;; # guess
+ chrp_rs6k)
+ echo msdos;; # guess
+ chrp_pegasos)
+ echo amiga;;
+ prep)
+ echo msdos;; # guess
+ powermac_newworld)
+ echo mac;;
+ powermac_oldworld)
+ echo mac;;
+ *)
+ echo UNKNOWN;;
+ esac;;
+ s390)
+ echo UNSUPPORTED;; # ibm is unsupported by parted
+ sparc)
+ echo sun;;
+ *)
+ echo UNKNOWN;;
+ esac
+}
+
+log '*******************************************************'
+
+# Local Variables:
+# coding: utf-8
+# End:
diff -Nru partman/partman/debian/templates partman.new/partman/debian/templates
--- partman/partman/debian/templates 2004-05-28 18:48:58.000000000 -0300
+++ partman.new/partman/debian/templates 2004-05-28 19:20:26.000000000 -0300
@@ -141,6 +141,10 @@
Type: text
_Description: Please wait...
+Template: partman/text/formatting
+Type: text
+_Description: Partitions formatting
+
Template: partman/text/processing
Type: text
_Description: Processing...
diff -Nru partman/partman/debian/templates.old partman.new/partman/debian/templates.old
--- partman/partman/debian/templates.old 1969-12-31 21:00:00.000000000 -0300
+++ partman.new/partman/debian/templates.old 2004-05-28 19:41:00.000000000 -0300
@@ -0,0 +1,253 @@
+Template: partman/progress/init/title
+Type: text
+_Description: Starting up the partitioner
+
+Template: partman/progress/init/fallback
+Type: text
+_Description: Please wait...
+
+Template: partman/progress/init/parted
+Type: text
+_Description: Scanning disks...
+
+Template: partman/progress/init/update_partitions
+Type: text
+_Description: Detecting file systems...
+
+Template: partman/exception_handler
+Type: select
+Choices: ${CHOICES}
+Description: ${TYPE}
+ ${DESCRIPTION}
+
+Template: partman/exception_handler_note
+Type: note
+Description: ${TYPE}
+ ${DESCRIPTION}
+
+Template: partman/unknown_label
+Type: boolean
+Default: true
+_Description: Continue with partitioning?
+ This partitioner doesn't have information about the default type of
+ the partition tables on your architecture. Please send an e-mail
+ message to debian-boot@lists.debian.org with information.
+ .
+ Please note that if the type of the partition table is unsupported by
+ libparted, then this partitioner will not work properly.
+
+Template: partman/unsupported_label
+Type: boolean
+Default: false
+_Description: Continue with partitioning?
+ This partitioner is based on the library libparted which doesn't have
+ support for the partition tables used on your architecture. It is
+ strongly recommended that you exit this partitioner.
+ .
+ If you can, please help to add support for your partition table type
+ to libparted.
+
+Template: partman/no_partitionable_media
+Type: error
+_Description: No partitionable media
+ No partitionable media was found.
+ .
+ Please check that a hard disk is attached to this machine.
+
+Template: partman/choose_partition
+Type: select
+Choices: ${CHOICES}
+_Description: This is an overview of your currently configured partitions and mount points. Select a partition to modify its settings (file system, mount point, etc.), a free space to create partitions, or a device to initialise its partition table.
+
+Template: partman/confirm_new_label
+Type: boolean
+Default: false
+_Description: Create new empty partition table on this device?
+ You have selected an entire device to partition. If you proceed with
+ creating a new partition table on the device, then all current partitions
+ will be removed.
+ .
+ Note that you will be able to undo this operation later if you wish.
+
+Template: partman/confirm_write_new_label
+Type: boolean
+Default: false
+_Description: Write a new empty partition table?
+ Because of limitations in the current implementation of the Sun
+ partition tables in libparted, the newly created partition table has
+ to be written to the disk immediately.
+ .
+ You will NOT be able to undo this operation later and all existing
+ data on the disk will be irreversibly removed.
+ .
+ Confirm whether you actually want to create a new partition table and
+ write it to disk.
+
+Template: partman/confirm
+Type: boolean
+Default: false
+_Description: Write these changes to disk?
+ If you continue, these changes to the partition table will be
+ written to disk.
+ .
+ WARNING: This will destroy all data on any partitions you have
+ removed as well as on the partitions on which you have chosen to
+ create new file systems.
+ .
+ ${ITEMS}
+
+Template: partman/text/confirm_item_header
+Type: text
+_Description: The following partitions are going to be formatted:
+
+Template: partman/text/confirm_item
+Type: text
+# for example: "partition #6 of IDE0 master as ext3 journalling file system"
+_Description: partition #${PARTITION} of ${DEVICE} as ${TYPE}
+
+Template: partman/storage_device
+Type: select
+Choices: ${CHOICES}
+_Description: What to do with this device:
+
+Template: partman/free_space
+Type: select
+Choices: ${CHOICES}
+_Description: How to use this free space:
+
+Template: partman/active_partition
+Type: select
+Choices: ${CHOICES}
+_Description: Partition settings:
+ You are editing partition #${PARTITION} of ${DEVICE}. ${OTHERINFO}
+
+Template: partman/text/there_is_detected
+Type: text
+_Description: This partition is formatted with the ${FILESYSTEM}.
+
+Template: partman/text/none_detected
+Type: text
+_Description: No existing file system was detected in this partition.
+
+Template: partman/show_partition_chs
+Type: note
+_Description: The partition starts from ${FROMCHS} and ends at ${TOCHS}.
+
+Template: partman/show_free_chs
+Type: note
+_Description: The free space starts from ${FROMCHS} and ends at ${TOCHS}.
+
+Template: partman/text/please_wait
+Type: text
+_Description: Please wait...
+
+Template: partman/text/processing
+Type: text
+_Description: Processing...
+
+Template: partman/text/text_template
+Type: text
+Description: ${DESCRIPTION}
+
+Template: partman/text/show_chs
+Type: text
+_Description: Show Cylinder/Head/Sector information
+
+Template: partman/text/finished_with_partition
+Type: text
+_Description: Done setting up the partition
+
+Template: partman/text/end_the_partitioning
+Type: text
+_Description: Finish partitioning and write changes to disk
+
+Template: partman/text/undo_everything
+Type: text
+_Description: Undo changes to partitions
+
+Template: partman/text/show_chs_free
+Type: text
+_Description: Show Cylinder/Head/Sector information
+
+Template: partman/text/dump_partition_info
+Type: text
+_Description: Dump partition info in %s
+
+Template: partman/text/free_space
+Type: text
+# Keep short
+_Description: FREE SPACE
+
+Template: partman/text/unusable
+Type: text
+# "unusable free space". No more than 8 symbols.
+_Description: unusable
+
+Template: partman/text/primary
+Type: text
+# "primary partition". No more than 8 symbols.
+_Description: primary
+
+Template: partman/text/logical
+Type: text
+# "logical partition". No more than 8 symbols.
+_Description: logical
+
+Template: partman/text/pri/log
+Type: text
+# "primary or logical". No more than 8 symbols.
+_Description: pri/log
+
+Template: partman/text/number
+Type: text
+# How to print the partition numbers in your language
+# Examples:
+# %s.
+# No %s
+# N. %s
+_Description: #%s
+
+Template: partman/text/ide_master_disk
+Type: text
+# For example IDE0 master (hda)
+_Description: IDE%s master (%s)
+
+Template: partman/text/ide_slave_disk
+Type: text
+# For example IDE1 slave (hdd)
+_Description: IDE%s slave (%s)
+
+Template: partman/text/ide_master_partition
+Type: text
+# For example IDE1 master, partition #5 (hdc5)
+_Description: IDE%s master, partition #%s (%s)
+
+Template: partman/text/ide_slave_partition
+Type: text
+# For example IDE2 slave, partition #5 (hdf5)
+_Description: IDE%s slave, partition #%s (%s)
+
+Template: partman/text/scsi_disk
+Type: text
+_Description: SCSI%s (%s,%s,%s) (%s)
+
+Template: partman/text/scsi_partition
+Type: text
+_Description: SCSI%s (%s,%s,%s), partition #%s (%s)
+
+Template: partman/text/raid_device
+Type: text
+_Description: RAID%s device #%s
+
+Template: partman/text/lvm_lv
+Type: text
+_Description: LVM VG %s, LV %s
+
+Template: partman/text/cancel_menu
+Type: text
+_Description: Cancel this menu
+
+Template: debian-installer/partman/title
+Type: text
+# Main menu entry
+_Description: Partition disks
diff -Nru partman/partman-basicfilesystems/commit.d/format_basicfilesystems partman.new/partman-basicfilesystems/commit.d/format_basicfilesystems
--- partman/partman-basicfilesystems/commit.d/format_basicfilesystems 2004-05-14 13:57:21.000000000 -0300
+++ partman.new/partman-basicfilesystems/commit.d/format_basicfilesystems 2004-05-28 22:41:01.000000000 -0300
@@ -55,7 +55,7 @@
close_dialog
sync
if [ "$status" != OK ]; then
- db_progress START 0 3 partman/text/please_wait
+ db_progress START 0 3 partman/text/formatting
db_progress INFO $template
db_progress SET 1
if
diff -Nru partman/partman-basicfilesystems/commit.d/format_swap partman.new/partman-basicfilesystems/commit.d/format_swap
--- partman/partman-basicfilesystems/commit.d/format_swap 2004-05-14 13:57:21.000000000 -0300
+++ partman.new/partman-basicfilesystems/commit.d/format_swap 2004-05-28 22:46:57.000000000 -0300
@@ -1,4 +1,4 @@
-#!/bin/sh
+please_wai!/bin/sh
. /lib/partman/definitions.sh
@@ -37,7 +37,7 @@
close_dialog
sync
if [ "$status" != OK ]; then
- db_progress START 0 3 partman/text/please_wait
+ db_progress START 0 3 partman/text/formatting
db_progress INFO $template
db_progress SET 1
if
diff -Nru partman/partman-ext2r0/commit.d/format_ext2r0 partman.new/partman-ext2r0/commit.d/format_ext2r0
--- partman/partman-ext2r0/commit.d/format_ext2r0 2004-05-14 20:25:56.000000000 -0300
+++ partman.new/partman-ext2r0/commit.d/format_ext2r0 2004-05-28 22:47:43.000000000 -0300
@@ -50,7 +50,7 @@
status=failed
if [ -x /sbin/mkfs.ext2 ]; then
- db_progress START 0 3 partman/text/please_wait
+ db_progress START 0 3 partman/text/formatting
db_progress INFO $template
db_progress SET 1
if
diff -Nru partman/partman-ext3/commit.d/format_ext3 partman.new/partman-ext3/commit.d/format_ext3
--- partman/partman-ext3/commit.d/format_ext3 2004-05-14 13:57:19.000000000 -0300
+++ partman.new/partman-ext3/commit.d/format_ext3 2004-05-28 20:04:53.000000000 -0300
@@ -61,7 +61,7 @@
fi
fi
if [ "$status" != OK ]; then
- db_progress START 0 3 partman/text/please_wait
+ db_progress START 0 3 partman/text/formatting
db_progress INFO $template
db_progress SET 1
if
diff -Nru partman/partman-jfs/commit.d/format_jfs partman.new/partman-jfs/commit.d/format_jfs
--- partman/partman-jfs/commit.d/format_jfs 2004-05-14 13:57:19.000000000 -0300
+++ partman.new/partman-jfs/commit.d/format_jfs 2004-05-28 22:47:24.000000000 -0300
@@ -48,7 +48,7 @@
db_subst $template PARTITION "$num"
db_subst $template DEVICE $(humandev $(cat device))
- db_progress START 0 3 partman/text/please_wait
+ db_progress START 0 3 partman/text/formatting
db_progress INFO $template
db_progress SET 1
mkfs.jfs -c -q $device >/dev/null 2>>/var/log/messages
diff -Nru partman/partman-md/debian/templates~ partman.new/partman-md/debian/templates~
--- partman/partman-md/debian/templates~ 2004-05-28 16:15:43.000000000 -0300
+++ partman.new/partman-md/debian/templates~ 1969-12-31 21:00:00.000000000 -0300
@@ -1,48 +0,0 @@
-Template: partman-md/text/device
-Type: text
-_Description: Software RAID device
-
-Template: partman-md/text/configure_md
-Type: text
-_Description: Configure software RAID
-
-Template: partman-md/text/method
-Type: text
-_Description: Use the partition as a RAID device
-
-Template: partman-md/confirm
-Type: boolean
-Default: false
-_Description: Write the changes to the storage devices and configure RAID?
- Before RAID can be configured, the changes
- have to be written to the storage devices. These changes cannot be
- undone.
- .
- When RAID is configured, no additional changes
- to the partitions in the disks containing physical volumes are
- allowed. Please convince yourself that you are satisfied with the
- current partitioning scheme in these disks.
- .
- Confirm whether you are ready to configure RAID.
-
-Template: partman-md/commit_failed
-Type: error
-_Description: RAID configuration failure
- An error occurred while writing the changes to the storage devices.
- .
- The configuration of RAID is aborted.
-
-Template: partman/method_long/raid
-Type: text
-_Description: physical volume for RAID
-
-Template: partman/method_short/raid
-Type: text
-_Description: raid
-
-Template: partman-md/md_root_boot
-Type: boolean
-Default: false
-_Description: Really use software RAID?
- Debian does not currently support RAID used for the root filesystem or
- /boot partition. A system installed in this way will not boot.
diff -Nru partman/partman-reiserfs/commit.d/format_reiserfs partman.new/partman-reiserfs/commit.d/format_reiserfs
--- partman/partman-reiserfs/commit.d/format_reiserfs 2004-05-14 13:57:11.000000000 -0300
+++ partman.new/partman-reiserfs/commit.d/format_reiserfs 2004-05-28 20:03:58.000000000 -0300
@@ -56,7 +56,7 @@
close_dialog
sync
if [ "$status" != OK ]; then
- db_progress START 0 3 partman/text/please_wait
+ db_progress START 0 3 partman/text/formatting
db_progress INFO $template
db_progress SET 1
if
diff -Nru partman/partman-xfs/commit.d/format_xfs partman.new/partman-xfs/commit.d/format_xfs
--- partman/partman-xfs/commit.d/format_xfs 2004-05-14 13:57:11.000000000 -0300
+++ partman.new/partman-xfs/commit.d/format_xfs 2004-05-28 20:00:59.000000000 -0300
@@ -48,7 +48,7 @@
db_subst $template PARTITION "$num"
db_subst $template DEVICE $(humandev $(cat device))
- db_progress START 0 3 partman/text/please_wait
+ db_progress START 0 3 partman/text/formatting
db_progress INFO $template
db_progress SET 1
mkfs.xfs -f $device >/dev/null 2>>/var/log/messages
Reply to: