Package: mysql-dfsg-5.1 Version: 5.1.34-1 Severity: normal Tags: patch User: ubuntu-de...@lists.ubuntu.com Usertags: origin-ubuntu karmic ubuntu-patch
*** /tmp/tmpnjdn_U In Ubuntu, we've applied the attached patch to achieve the following: * Merge from debian experimental (and 5.0 from main), remaining changes: - debian/mysql-server-5.1.config: + ask for MySQL root password at priority high instead of medium so that the password prompt is seen on a default install. (LP: #319843) + don't ask for root password when upgrading from a 5.0 install. We thought you might be interested in doing the same. -- System Information: Debian Release: squeeze/sid APT prefers karmic-updates APT policy: (500, 'karmic-updates'), (500, 'karmic-security'), (500, 'karmic') Architecture: amd64 (x86_64) Kernel: Linux 2.6.24-24-server (SMP w/2 CPU cores) Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Shell: /bin/sh linked to /bin/dash
diff -u mysql-dfsg-5.1-5.1.34/debian/mysql-server-5.1.config mysql-dfsg-5.1-5.1.34/debian/mysql-server-5.1.config --- mysql-dfsg-5.1-5.1.34/debian/mysql-server-5.1.config +++ mysql-dfsg-5.1-5.1.34/debian/mysql-server-5.1.config @@ -13,13 +13,14 @@ db_go fi -# only ask this question on fresh installs and during "reconfiguration". +# only ask this question on fresh installs, during "reconfiguration" and when +# not upgrading from an existing 5.0 installation. # there is also an additional check for empty root passwords in the # postinst script when the tools are available for us to use. -if [ "$1" = "configure" ] && [ -z "$2" ] || [ "$1" = "reconfigure" ]; then +if [ "$1" = "configure" ] && ([ -z "$2" ] && [ ! -e "/var/lib/mysql/debian-5.0.flag" ] ) || [ "$1" = "reconfigure" ]; then while :; do RET="" - db_input medium mysql-server/root_password || true + db_input high mysql-server/root_password || true db_go db_get mysql-server/root_password # if password isn't empty we ask for password verification @@ -29,7 +30,7 @@ break fi ROOT_PW="$RET" - db_input medium mysql-server/root_password_again || true + db_input high mysql-server/root_password_again || true db_go db_get mysql-server/root_password_again if [ "$RET" == "$ROOT_PW" ]; then