Don't offer guided partitioning if no disks are detected - cleaner implementation
r44105
Frans Pop
17 years ago
1 | 1 |
|
2 | 2 |
. /usr/share/debconf/confmodule
|
3 | 3 |
. /lib/partman/definitions.sh
|
|
4 |
. /lib/partman/auto-shared.sh
|
4 | 5 |
|
5 | 6 |
dev_to_partman () {
|
6 | 7 |
local dev_name="$1"
|
|
20 | 21 |
done
|
21 | 22 |
}
|
22 | 23 |
|
23 | |
# Do not run on S/390
|
24 | |
if [ "$(udpkg --print-architecture)" = s390 ]; then
|
|
24 |
# Skip if no disks detected and don't run on S/390
|
|
25 |
if [ -z "$(get_auto_disks)" ] || \
|
|
26 |
[ "$(udpkg --print-architecture)" = s390 ]; then
|
25 | 27 |
exit 0
|
26 | 28 |
fi
|
27 | 29 |
|
0 | 0 |
#!/bin/sh
|
1 | 1 |
|
2 | 2 |
. /usr/share/debconf/confmodule
|
|
3 |
. /lib/partman/auto-shared.sh
|
3 | 4 |
|
4 | |
# Do not run on S/390
|
5 | |
if [ "$(udpkg --print-architecture)" = s390 ]; then
|
6 | |
exit 0
|
|
5 |
# Skip if no disks detected and don't run on S/390
|
|
6 |
if [ -z "$(get_auto_disks)" ] || \
|
|
7 |
[ "$(udpkg --print-architecture)" = s390 ]; then
|
|
8 |
exit 0
|
7 | 9 |
fi
|
8 | 10 |
|
9 | 11 |
db_metaget partman-auto/text/automatically_partition description
|
10 | 10 |
same as a backup. All other exit codes are handled (99: retry) or
|
11 | 11 |
propagated (anything else) as before.
|
12 | 12 |
|
13 | |
-- Frans Pop <[email protected]> Wed, 10 Jan 2007 17:21:37 +0100
|
|
13 |
[ Frans Pop ]
|
|
14 |
* Don't offer guided partitioning if no disks are detected. Closes: #406325.
|
|
15 |
|
|
16 |
-- Frans Pop <[email protected]> Wed, 10 Jan 2007 18:57:49 +0100
|
14 | 17 |
|
15 | 18 |
partman-auto (62) unstable; urgency=low
|
16 | 19 |
|