* Mount vfat filesystems with the utf8 mount option if the locale contains
".UTF-8" (closes: #413248).
r45945
Colin Watson
17 years ago
|
0 |
partman-basicfilesystems (54) UNRELEASED; urgency=low
|
|
1 |
|
|
2 |
* Mount vfat filesystems with the utf8 mount option if the locale contains
|
|
3 |
".UTF-8" (closes: #413248).
|
|
4 |
|
|
5 |
-- Colin Watson <cjwatson@debian.org> Sun, 18 Mar 2007 17:39:14 +0000
|
|
6 |
|
0 | 7 |
partman-basicfilesystems (53) unstable; urgency=low
|
1 | 8 |
|
2 | 9 |
* Fix handling of partman-basicfilesystems/no_swap so it can be preseeded.
|
0 | 0 |
#!/bin/sh
|
1 | 1 |
|
2 | 2 |
. /lib/partman/definitions.sh
|
|
3 |
|
|
4 |
utf8=false
|
|
5 |
if db_get debian-installer/locale; then
|
|
6 |
# This check breaks for certain locales (e.g. se_NO, vi_VN) that use the
|
|
7 |
# UTF-8 encoding but whose names don't include ".UTF-8". This is
|
|
8 |
# difficult to fix without adding more encoding intelligence to
|
|
9 |
# localechooser.
|
|
10 |
case $RET in
|
|
11 |
*.UTF-8)
|
|
12 |
utf8=:
|
|
13 |
;;
|
|
14 |
esac
|
|
15 |
fi
|
3 | 16 |
|
4 | 17 |
for dev in $DEVICES/*; do
|
5 | 18 |
[ -d $dev ] || continue
|
|
35 | 48 |
[ -f "$id/mountpoint" ] || continue
|
36 | 49 |
mountpoint=$(cat $id/mountpoint)
|
37 | 50 |
options=$(get_mountoptions $dev $id)
|
|
51 |
if $utf8; then
|
|
52 |
options="$options,utf8"
|
|
53 |
fi
|
38 | 54 |
echo "$path" "$mountpoint" vfat $options 0 0
|
39 | 55 |
;;
|
40 | 56 |
esac
|