Update old comment about partman-auto-lvm and $iflabel.
Colin Watson
13 years ago
|
0 |
partman-auto (98) UNRELEASED; urgency=low
|
|
1 |
|
|
2 |
* Update old comment about partman-auto-lvm and $iflabel.
|
|
3 |
|
|
4 |
-- Colin Watson <[email protected]> Wed, 20 Apr 2011 11:09:22 +0100
|
|
5 |
|
0 | 6 |
partman-auto (97) unstable; urgency=low
|
1 | 7 |
|
2 | 8 |
[ Konstantinos Margaritis ]
|
110 | 110 |
if [ "$ignore" ] && [ "$(echo $line | grep "$ignore")" ]; then
|
111 | 111 |
:
|
112 | 112 |
else
|
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.
|
|
113 |
# Exclude partitions that are only for a
|
|
114 |
# different disk label. The $PWD check
|
|
115 |
# avoids problems when running from older
|
|
116 |
# versions of partman-auto-lvm, where we
|
|
117 |
# weren't in a subdirectory of $DEVICES
|
|
118 |
# while decoding the recipe; we preserve it
|
|
119 |
# in case of custom code with the same
|
|
120 |
# problem.
|
121 | 121 |
iflabel="$(echo $line | sed -n 's/.*\$iflabel{ \([^}]*\) }.*/\1/p')"
|
122 | 122 |
if [ "$iflabel" ]; then
|
123 | 123 |
if [ "${PWD#$DEVICES/}" != "$PWD" ]; then
|