Bug#251549: marked as done (partman: "strange" progress bar title when formatting partitions)
Your message dated Tue, 20 Jul 2004 11:47:14 -0400
with message-id <E1Bmwpm-0001yG-00@newraff.debian.org>
and subject line Bug#251549: fixed in partman 42
has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Debian bug tracking system administrator
(administrator, Debian Bugs database)
--------------------------------------
Received: (at submit) by bugs.debian.org; 29 May 2004 02:34:59 +0000
>From bubulle@kheops.frmug.org Fri May 28 19:34:59 2004
Return-path: <bubulle@kheops.frmug.org>
Received: from (mykerinos.kheops.frmug.org) [200.96.104.197]
by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
id 1BTtgL-0000TT-00; Fri, 28 May 2004 19:34:48 -0700
Received: by mykerinos.kheops.frmug.org (Postfix, from userid 7426)
id 9EBFE23263; Fri, 28 May 2004 23:34:23 -0300 (BRT)
Content-Type: multipart/mixed; boundary="===============0246459958=="
MIME-Version: 1.0
From: Christian Perrier <bubulle@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: partman: "strange" progress bar title when formatting partitions
X-Mailer: reportbug 2.60
Date: Fri, 28 May 2004 23:34:23 -0300
Message-Id: <20040529023423.9EBFE23263@mykerinos.kheops.frmug.org>
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-7.0 required=4.0 tests=BAYES_01,HAS_PACKAGE
autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level:
This is a multi-part MIME message sent by reportbug.
--===============0246459958==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
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)
--===============0246459958==
MIME-Version: 1.0
Content-Type: text/x-c++; charset="utf-8"
Content-Disposition: attachment; filename="diff"
Content-Transfer-Encoding: quoted-printable
diff -Nru partman/partman/debian/partman/lib/partman/#definitions.sh# par=
tman.new/partman/debian/partman/lib/partman/#definitions.sh#
--- partman/partman/debian/partman/lib/partman/#definitions.sh# 1969-12-3=
1 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=3D' '
+NL=3D'
+'
+ORIGINAL_IFS=3D"${ORIGINAL_IFS:-$IFS}"; export ORIGINAL_IFS
+
+restore_ifs () {
+ IFS=3D"$ORIGINAL_IFS"
+}
+
+dirname () {
+ local x
+ x=3D"${1%/}"
+ echo "${x%/*}"
+}
+
+basename () {
+ local x
+ x=3D"${1%$2}"
+ x=3D"${x%/}"
+ echo "${x##*/}"
+}
+
+debconf_select () {
+ local IFS priority template choices default_choice default x u newchoic=
es code
+ priority=3D"$1"
+ template=3D"$2"
+ choices=3D"$3"
+ default_choice=3D"$4"
+ default=3D''
+ # Debconf ignores spaces so we have to remove them from $choices
+ newchoices=3D''
+ IFS=3D"$NL"
+ for x in $choices; do
+ local key option
+ restore_ifs
+ key=3D$(echo ${x%$TAB*})
+ # work around bug #243373
+ if [ "$TERM" =3D xterm -o "$TERM" =3D bterm ]; then
+ debconf_select_lead=3D'=C2=A0'
+ else
+ debconf_select_lead=3D"> "
+ fi
+ option=3D$(echo "${x#*$TAB}" | sed 's/ *$//g' | sed "s/^ /$debconf_sel=
ect_lead/g")
+ newchoices=3D"${newchoices}${NL}${key}${TAB}${option}"
+ if [ "$key" =3D "$default_choice" ]; then
+ default=3D"$option"
+ fi
+ done
+ choices=3D"$newchoices"
+ u=3D''
+ IFS=3D"$NL"
+ # escape the commas and leading whitespace but keep them unescaped
+ # in $choices
+ for x in $choices; do
+ u=3D"$u, `echo ${x#*$TAB} | sed 's/,/\\\\,/g' | sed 's/^=
/\\\\ /'`"
+ done
+ u=3D${u#, }
+ if [ -n "$default" ]; then
+ db_set $template "$default"
+ fi
+ db_subst $template CHOICES "$u"
+ code=3D0
+ db_input $priority $template || code=3D1
+ db_go || return 255
+ db_get $template
+ IFS=3D"$NL"
+ for x in $choices; do
+ if [ "$RET" =3D "${x#*$TAB}" ]; then
+ RET=3D"${x%$TAB*}"
+ break
+ fi
+ done
+ return $code
+}
+
+menudir_default_choice () {
+ printf "%s__________%s\n" "$(basename $1/??$2)" "$3" > $1/default_ch=
oice
+}
+
+ask_user () {
+ local IFS dir template priority default choices plugin name option
+ dir=3D"$1"; shift
+ template=3D$(cat $dir/question)
+ priority=3D$(cat $dir/priority)
+ if [ -f $dir/default_choice ]; then
+ default=3D$(cat $dir/default_choice)
+ else
+ default=3D""
+ fi
+ choices=3D$(
+ for plugin in $dir/*; do
+ [ -d $plugin ] || continue
+ name=3D$(basename $plugin)
+ IFS=3D"$NL"
+ for option in $($plugin/choices "$@"); do
+ printf "%s__________%s\n" $name "$option"
+ done
+ restore_ifs
+ done
+ )
+ db_fset $template seen false
+ code=3D0
+ debconf_select $priority $template "$choices" "$default" || code=3D$=
?
+ 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=3D"$(read_paragraph)"
+ close_dialog
+=09
+ IFS=3D"$TAB"
+ echo "$partitions" |
+ while { read num id size type fs path name; [ "$id" ]; }; do
+ part=3D${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=3D$(expr "$1" : '0*\(.*\)')
+ y=3D$(expr "$2" : '0*\(.*\)')
+ if [ ${#x} -lt ${#y} ]; then
+ return 0
+ elif [ ${#x} -gt ${#y} ]; then
+ return 1
+ elif [ "$x" =3D "$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=3D"${deci:-.}"
+ case ${#1} in
+ 1|2|3)
+ suffix=3DB
+ longint=3D${1}0
+ ;;
+ 4|5|6)
+ suffix=3DkB
+ longint=3D${1%??}
+ ;;
+ 7|8|9)
+ suffix=3DMB
+ longint=3D${1%?????}
+ ;;
+ 10|11|12)
+ suffix=3DGB
+ longint=3D${1%????????}
+ ;;
+ *)
+ suffix=3DTB
+ longint=3D${1%???????????}
+ ;;
+ esac
+ int=3D${longint%?}
+ frac=3D${longint#$int}
+ printf "%i%s%i %s\n" $int $deci $frac $suffix
+}
+
+human2longint () {
+ local human suffix int frac longint
+ set -- $*; human=3D"$1$2$3$4$5" # without the spaces
+ human=3D${human%b} #remove last b
+ human=3D${human%B} #remove last B
+ suffix=3D${human#${human%?}} # the last symbol of $human
+ case $suffix in
+ k|K|m|M|g|G|t|T)
+ human=3D${human%$suffix}
+ ;;
+ *)
+ suffix=3D''
+ ;;
+ esac
+ int=3D"${human%[.,]*}"
+ [ "$int" ] || int=3D0
+ frac=3D${human#$int}
+ frac=3D"${frac#[.,]}0000" # to be sure there are at least 4 digits
+ frac=3D${frac%${frac#????}} # only the first 4 digits of $frac
+ longint=3D$(($int * 10000 + $frac))
+ case $suffix in
+ k|K)
+ longint=3D${longint%?}
+ ;;
+ m|M)
+ longint=3D${longint}00
+ ;;
+ g|G)
+ longint=3D${longint}00000
+ ;;
+ t|T)
+ longint=3D${longint}00000000
+ ;;
+ *) # no suffix:
+ # bytes
+ #longint=3D${longint%????}
+ #[ "$longint" ] || longint=3D0
+ # megabytes
+ longint=3D${longint}00
+ ;;
+ esac
+ echo $longint
+}
+
+valid_human () {
+ local IFS patterns
+ patterns=3D'[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=3D"$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
+}
+ =20
+DEVICES=3D/var/lib/partman/devices
+
+# 0, 1 and 2 are standard input, output and error.
+# 3, 4 and 5 are used by cdebconf
+# 6=3Dinfifo
+# 7=3Doutfifo
+
+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=3D''
+ while { read_line item; [ "$item" ]; }; do
+ log "option: $item"
+ if [ "$list" ]; then
+ list=3D"$list, $item"
+ else
+ list=3D"$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 s=
kipped
+ while { read_line exception_type; [ "$exception_type" !=3D OK ]; }; =
do
+ log error_handler: exception with type $exception_type
+ case "$exception_type" in
+ Timer)
+ if [ -f /var/lib/partman/progress_info ]; then
+ info=3D$(cat /var/lib/partman/progress_info)
+ else
+ info=3Dpartman/processing
+ fi
+ db_progress START 0 1000 partman/text/please_w
+ db_progress INFO $info
+ while { read_line frac state; [ "$frac" !=3D ready ]; }; do
+ if [ "$state" ]; then
+ db_subst $info STATE "$state"=20
+ db_progress INFO $info
+ fi
+ db_progress SET $frac
+ done
+ db_progress STOP
+ continue
+ ;;
+ Information)
+ type=3D'Information'
+ priority=3Dlow
+ ;;
+ Warning)
+ type=3D'Warning!'
+ priority=3Dmedium
+ ;;
+ Error)
+ type=3D'ERROR!!!'
+ priority=3Dhigh
+ ;;
+ Fatal)
+ type=3D'FATAL ERROR!!!'
+ priority=3Dcritical
+ ;;
+ Bug)
+ type=3D'A bug has been discovered!!!'
+ priority=3Dcritical
+ ;;
+ No?Implementation)
+ type=3D'Not yet implemented!'
+ priority=3Dcritical
+ ;;
+ *)
+ type=3D"??? $exception_type ???"
+ priority=3Dcritical
+ ;;
+ esac
+ log error_handler: reading message
+ message=3D$(read_paragraph)
+ log error_handler: reading options
+ options=3D$(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=3D"$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=3D`echo $1 | sed 's,/dev/ide/host\(.*\)/bus.*/target[01]/lun0/=
disc,\1,'`
+ bus=3D`echo $1 | sed 's,/dev/ide/host.*/bus\(.*\)/target[01]/lun0/d=
isc,\1,'`
+ target=3D`echo $1 | sed 's,/dev/ide/host.*/bus.*/target\([01]\)/lun=
0/disc,\1,'`
+ idenum=3D$((2 * $host + $bus + 1))
+ linux=3D$(mapdevfs $1)
+ linux=3D${linux#/dev/}
+ if [ "$target" =3D 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=3D`echo $1 | sed 's,/dev/ide/host\(.*\)/bus.*/target[01]/lun0/=
part.*,\1,'`
+ bus=3D`echo $1 | sed 's,/dev/ide/host.*/bus\(.*\)/target[01]/lun0/p=
art.*,\1,'`
+ target=3D`echo $1 | sed 's,/dev/ide/host.*/bus.*/target\([01]\)/lun=
0/part.*,\1,'`
+ part=3D`echo $1 | sed 's,/dev/ide/host.*/bus.*/target[01]/lun0/part=
\(.*\),\1,'`
+ idenum=3D$((2 * $host + $bus + 1))
+ linux=3D$(mapdevfs $1)
+ linux=3D${linux#/dev/}
+ if [ "$target" =3D 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=3D`echo $1 | sed 's,/dev/scsi/host\(.*\)/bus.*/target.*/lun.*/=
disc,\1,'`
+ bus=3D`echo $1 | sed 's,/dev/scsi/host.*/bus\(.*\)/target.*/lun.*/d=
isc,\1,'`
+ target=3D`echo $1 | sed 's,/dev/scsi/host.*/bus.*/target\(.*\)/lun.=
*/disc,\1,'`
+ lun=3D`echo $1 | sed 's,/dev/scsi/host.*/bus.*/target.*/lun\(.*\)/d=
isc,\1,'`
+ scsinum=3D$(($host + 1))
+ linux=3D$(mapdevfs $1)
+ linux=3D${linux#/dev/}
+ db_metaget partman/text/scsi_disk description
+ printf "$RET" ${scsinum} ${bus} ${target} ${lun} ${linux}
+ ;;
+ /dev/scsi/host*/bus*/target*/lun*/part*)
+ host=3D`echo $1 | sed 's,/dev/scsi/host\(.*\)/bus.*/target.*/lun.*/=
part.*,\1,'`
+ bus=3D`echo $1 | sed 's,/dev/scsi/host.*/bus\(.*\)/target.*/lun.*/p=
art.*,\1,'`
+ target=3D`echo $1 | sed 's,/dev/scsi/host.*/bus.*/target\(.*\)/lun.=
*/part.*,\1,'`
+ lun=3D`echo $1 | sed 's,/dev/scsi/host.*/bus.*/target.*/lun\(.*\)/p=
art.*,\1,'`
+ part=3D`echo $1 | sed 's,/dev/scsi/host.*/bus.*/target.*/lun.*/part=
\(.*),\1,'`
+ scsinum=3D$(($host + 1))
+ linux=3D$(mapdevfs $1)
+ linux=3D${linux#/dev/}
+ db_metaget partman/text/scsi_partition description
+ printf "$RET" ${scsinum} ${bus} ${target} ${lun} ${part} ${linux}
+ ;;
+ /dev/md/*)
+ device=3D`echo "$1" | sed -e "s/.*md\/\?\(.*\)/\1/"`
+ type=3D`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=3D${1#/dev/mapper/}
+ vglv=3D`echo "$vglv" | sed -e 's/\([^-]\)-\([^-]\)/\1 \2/' | sed -e=
's/--/-/g'`
+ vg=3D`echo "$vglv" | cut -d" " -f1`
+ lv=3D`echo "$vglv" | cut -d" " -f2`
+ db_metaget partman/text/lvm_lv description
+ printf "$RET" $vg $lv
+ ;;
+ *)
+ # Check if it's an LVM1 device
+ vg=3D`echo "$1" | sed -e 's,/dev/\([^/]\+\).*,\1,'`
+ lv=3D`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 $(c=
at 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=3D''
+ 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 !=3D free ] || continue
+ [ -f "$id/method" ] || continue
+ [ -f "$id/acting_filesystem" ] || continue
+ filesystem=3D$(cat $id/acting_filesystem)
+ if [ "$filesystem" =3D linux-swap ]; then
+ swaps=3D"$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=3D$(archdetect)
+ else
+ archdetect=3Dunknown/generic
+ fi
+ arch=3D${archdetect%/*}
+ sub=3D${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;; =20
+ 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/tem=
plates
--- partman/partman/debian/templates 2004-05-28 18:48:58.000000000 -0300
+++ partman.new/partman/debian/templates 2004-05-28 19:20:26.000000000 -0=
300
@@ -141,6 +141,10 @@
Type: text
_Description: Please wait...
=20
+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 -0=
300
+++ partman.new/partman/debian/templates.old 2004-05-28 19:41:00.00000000=
0 -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 partition=
s and mount points. Select a partition to modify its settings (file syste=
m, 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 partitio=
ns
+ 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 sys=
tem"
+_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_basicfilesyste=
ms partman.new/partman-basicfilesystems/commit.d/format_basicfilesystems
--- partman/partman-basicfilesystems/commit.d/format_basicfilesystems 200=
4-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" !=3D 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.n=
ew/partman-basicfilesystems/commit.d/format_swap
--- partman/partman-basicfilesystems/commit.d/format_swap 2004-05-14 13:5=
7: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
=20
. /lib/partman/definitions.sh
=20
@@ -37,7 +37,7 @@
close_dialog
sync
if [ "$status" !=3D 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/partm=
an-ext2r0/commit.d/format_ext2r0
--- partman/partman-ext2r0/commit.d/format_ext2r0 2004-05-14 20:25:56.000=
000000 -0300
+++ partman.new/partman-ext2r0/commit.d/format_ext2r0 2004-05-28 22:47:43=
.000000000 -0300
@@ -50,7 +50,7 @@
=20
status=3Dfailed
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-e=
xt3/commit.d/format_ext3
--- partman/partman-ext3/commit.d/format_ext3 2004-05-14 13:57:19.0000000=
00 -0300
+++ partman.new/partman-ext3/commit.d/format_ext3 2004-05-28 20:04:53.000=
000000 -0300
@@ -61,7 +61,7 @@
fi
fi
if [ "$status" !=3D 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.00000=
0000 -0300
@@ -48,7 +48,7 @@
db_subst $template PARTITION "$num"
db_subst $template DEVICE $(humandev $(cat device))
=20
- 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/deb=
ian/templates~
--- partman/partman-md/debian/templates~ 2004-05-28 16:15:43.000000000 -0=
300
+++ partman.new/partman-md/debian/templates~ 1969-12-31 21:00:00.00000000=
0 -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 RAI=
D?
- 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/p=
artman-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:0=
3:58.000000000 -0300
@@ -56,7 +56,7 @@
close_dialog
sync
if [ "$status" !=3D 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.00000=
0000 -0300
@@ -48,7 +48,7 @@
db_subst $template PARTITION "$num"
db_subst $template DEVICE $(humandev $(cat device))
=20
- 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
--===============0246459958==--
---------------------------------------
Received: (at 251549-close) by bugs.debian.org; 20 Jul 2004 15:53:02 +0000
>From katie@ftp-master.debian.org Tue Jul 20 08:53:02 2004
Return-path: <katie@ftp-master.debian.org>
Received: from newraff.debian.org [208.185.25.31] (mail)
by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
id 1BmwvO-0002dc-00; Tue, 20 Jul 2004 08:53:02 -0700
Received: from katie by newraff.debian.org with local (Exim 3.35 1 (Debian))
id 1Bmwpm-0001yG-00; Tue, 20 Jul 2004 11:47:14 -0400
From: Anton Zinoviev <zinoviev@debian.org>
To: 251549-close@bugs.debian.org
X-Katie: $Revision: 1.51 $
Subject: Bug#251549: fixed in partman 42
Message-Id: <E1Bmwpm-0001yG-00@newraff.debian.org>
Sender: Archive Administrator <katie@ftp-master.debian.org>
Date: Tue, 20 Jul 2004 11:47:14 -0400
Delivered-To: 251549-close@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER
autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level:
X-CrossAssassin-Score: 6
Source: partman
Source-Version: 42
We believe that the bug you reported is fixed in the latest version of
partman, which is due to be installed in the Debian FTP archive:
partman_42.dsc
to pool/main/p/partman/partman_42.dsc
partman_42.tar.gz
to pool/main/p/partman/partman_42.tar.gz
partman_42_i386.udeb
to pool/main/p/partman/partman_42_i386.udeb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 251549@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Anton Zinoviev <zinoviev@debian.org> (supplier of updated partman package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.7
Date: Tue, 20 Jul 2004 15:53:27 +0300
Source: partman
Binary: partman
Architecture: source i386
Version: 42
Distribution: unstable
Urgency: low
Maintainer: Debian Install System Team <debian-boot@lists.debian.org>
Changed-By: Anton Zinoviev <zinoviev@debian.org>
Description:
partman - Partition the storage devices (partman) (udeb)
Closes: 241476 246523 250895 250969 251549 254814 255102
Changes:
partman (42) unstable; urgency=low
.
* Anton Zinoviev
- Add confirmation dialog for the <Back> button of the main
partitioning menu. Thanks to Yann Dirson, closes: #241476.
- templates (confirm): more precise text
- choose_partition/partition_tree/do_option, templates (destroyed,
active_partition): add a warning in the partition setup menu when
the data in the partition is going to be formated.
- partman: partman/confirm dialog doesn't exit to main menu but
returns to the partitioning screen. Thanks to Joey Hess, closes: #250895
- definitions.sh (enable_swap): the swap is no more a file system but
a method. Thanks to Joey Hess, closes: #250969
- parted_server.c: new command IS_CHANGED
- partman: move the confirmation dialog in a separate function
confirm_changes.
- partman: Show not only a list of the partitions to be formatted but
also a list of changed partition tables. Show a customized
confirmation dialog when there are no changes. Thanks to Scott
Robinson and Joey Hess, closes: #255102, #246523
- parted_server.c (resize_partition): allow resizing of file system
which boundaries are not equal with the boundaries of the partition
provided the file system is completely inside the partition. Thanks
to David Rasch, closes: #254814
- apply patch by Christian Perrier to give title to some of the
progress bars when formatting partitions. Thanks to Christian
Perrier, closes: #251549
* Updated translations:
- German (de.po) by Dennis Stampfer
- Persian (fa.po) by Arash Bijanzadeh
Files:
d3facb02f57dbf0502127b55002fc28a 654 debian-installer standard partman_42.dsc
074d345782e5a3c057bd9bf57f86a931 236863 debian-installer standard partman_42.tar.gz
f0c95c7aedaa272995668066162746d0 93776 debian-installer standard partman_42_i386.udeb
package-type: udeb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFA/RwFJP1eZJv0KwcRArK1AKCC7V9TcHFfUcI30G8zL9POP/4xWgCfQ3rs
MvWDkN5PSFlT7S84ioQukpY=
=Dm8O
-----END PGP SIGNATURE-----
Reply to: