Add a biosgrub partition to default recipes, used only if the disk label
is GPT (closes: #491376). Requires partman-partitioning 71. Thanks to
Otavio Salvador for reviewing this.
r60612
Colin Watson
14 years ago
0 | 0 |
partman-auto (89) UNRELEASED; urgency=low
|
1 | 1 |
|
2 | 2 |
* Upgrade to debhelper v7.
|
|
3 |
* Add a biosgrub partition to default recipes, used only if the disk label
|
|
4 |
is GPT (closes: #491376). Requires partman-partitioning 71. Thanks to
|
|
5 |
Otavio Salvador for reviewing this.
|
3 | 6 |
|
4 | 7 |
-- Colin Watson <[email protected]> Thu, 27 Aug 2009 00:39:31 +0100
|
5 | 8 |
|
26 | 26 |
unnamed=0
|
27 | 27 |
|
28 | 28 |
decode_recipe () {
|
29 | |
local ignore ram line word min factor max fs -
|
|
29 |
local ignore ram line word min factor max fs iflabel label -
|
30 | 30 |
ignore="${2:+${2}ignore}"
|
31 | 31 |
unnamed=$(($unnamed + 1))
|
32 | 32 |
ram=$(grep ^Mem: /proc/meminfo | { read x y z; echo $y; }) # in bytes
|
|
110 | 110 |
if [ "$ignore" ] && [ "$(echo $line | grep "$ignore")" ]; then
|
111 | 111 |
:
|
112 | 112 |
else
|
113 | |
scheme="${scheme:+$scheme$NL}$line"
|
|
113 |
# Exclude partitions that are only for a different
|
|
114 |
# disk label. The $PWD check avoids problems when
|
|
115 |
# running from partman-auto-lvm, where we aren't in
|
|
116 |
# a subdirectory of $DEVICES while decoding the
|
|
117 |
# recipe; but we do need to perform this check early
|
|
118 |
# so that size calculations work. As a result, for
|
|
119 |
# now, $iflabel will not work when doing automatic
|
|
120 |
# LVM partitioning.
|
|
121 |
iflabel="$(echo $line | sed -n 's/.*\$iflabel{ \([^}]*\) }.*/\1/p')"
|
|
122 |
if [ "$iflabel" ] && [ "${PWD#$DEVICES/}" != "$PWD" ]; then
|
|
123 |
open_dialog GET_LABEL_TYPE
|
|
124 |
read_line label
|
|
125 |
close_dialog
|
|
126 |
if [ "$iflabel" = "$label" ]; then
|
|
127 |
scheme="${scheme:+$scheme$NL}$line"
|
|
128 |
fi
|
|
129 |
else
|
|
130 |
scheme="${scheme:+$scheme$NL}$line"
|
|
131 |
fi
|
114 | 132 |
fi
|
115 | 133 |
line=''
|
116 | 134 |
;;
|
0 | 0 |
partman-auto/text/atomic_scheme ::
|
|
1 |
|
|
2 |
1 1 1 free
|
|
3 |
$iflabel{ gpt }
|
|
4 |
method{ biosgrub } .
|
1 | 5 |
|
2 | 6 |
128 512 256 ext2
|
3 | 7 |
$defaultignore{ }
|
0 | 0 |
partman-auto/text/home_scheme ::
|
|
1 |
|
|
2 |
1 1 1 free
|
|
3 |
$iflabel{ gpt }
|
|
4 |
method{ biosgrub } .
|
1 | 5 |
|
2 | 6 |
128 512 256 ext2
|
3 | 7 |
$defaultignore{ }
|
0 | 0 |
partman-auto/text/multi_scheme ::
|
|
1 |
|
|
2 |
1 1 1 free
|
|
3 |
$iflabel{ gpt }
|
|
4 |
method{ biosgrub } .
|
1 | 5 |
|
2 | 6 |
128 512 256 ext2
|
3 | 7 |
$defaultignore{ }
|