Codebase list partman-auto / b83faee
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
5 changed file(s) with 35 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
00 partman-auto (89) UNRELEASED; urgency=low
11
22 * 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.
36
47 -- Colin Watson <[email protected]> Thu, 27 Aug 2009 00:39:31 +0100
58
2626 unnamed=0
2727
2828 decode_recipe () {
29 local ignore ram line word min factor max fs -
29 local ignore ram line word min factor max fs iflabel label -
3030 ignore="${2:+${2}ignore}"
3131 unnamed=$(($unnamed + 1))
3232 ram=$(grep ^Mem: /proc/meminfo | { read x y z; echo $y; }) # in bytes
110110 if [ "$ignore" ] && [ "$(echo $line | grep "$ignore")" ]; then
111111 :
112112 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
114132 fi
115133 line=''
116134 ;;
00 partman-auto/text/atomic_scheme ::
1
2 1 1 1 free
3 $iflabel{ gpt }
4 method{ biosgrub } .
15
26 128 512 256 ext2
37 $defaultignore{ }
00 partman-auto/text/home_scheme ::
1
2 1 1 1 free
3 $iflabel{ gpt }
4 method{ biosgrub } .
15
26 128 512 256 ext2
37 $defaultignore{ }
00 partman-auto/text/multi_scheme ::
1
2 1 1 1 free
3 $iflabel{ gpt }
4 method{ biosgrub } .
15
26 128 512 256 ext2
37 $defaultignore{ }