Add the rest of the support necessary to allow reusing EFI partitions.
In 4df358695167c0b6e2af5816f364d8a9a734ec05 Steve McIntyre added
initial support for UEFI leveraging a lot of code from Ubuntu.
The modifications made in lib/auto-shared.sh from Ubuntu are also
necessary however for the installer to allow the EFI System Partition
to be reused.
Mario Limonciello authored 10 years ago
Colin Watson committed 9 years ago
|
0 |
partman-auto (119) UNRELEASED; urgency=medium
|
|
1 |
|
|
2 |
[ Mario Limonciello ]
|
|
3 |
* Add the rest of the support necessary to allow reusing EFI partitions
|
|
4 |
(closes: #729326).
|
|
5 |
|
|
6 |
-- Colin Watson <[email protected]> Tue, 08 Jul 2014 12:54:44 +0100
|
|
7 |
|
0 | 8 |
partman-auto (118) unstable; urgency=low
|
1 | 9 |
|
2 | 10 |
* Add arm64 recipe
|
91 | 91 |
)"
|
92 | 92 |
}
|
93 | 93 |
|
|
94 |
reuse_partitions() {
|
|
95 |
cd $dev
|
|
96 |
local scheme
|
|
97 |
|
|
98 |
scheme="$scheme_reused"
|
|
99 |
foreach_partition '
|
|
100 |
id="$(echo " $*" | sed -n '\''s/.* \$reuse{ \([^}]*\) }.*/\1/p'\'')"
|
|
101 |
if [ -z "$id" ]; then
|
|
102 |
db_progress STOP
|
|
103 |
autopartitioning_failed
|
|
104 |
fi
|
|
105 |
setup_partition $id $*
|
|
106 |
# Hack to stop EFI partitions showing up as formatted when
|
|
107 |
# they will actually not be. We do not have a good
|
|
108 |
# interface for this yet.
|
|
109 |
if [ -f $id/method ] && [ "$(cat $id/method)" = efi ] && \
|
|
110 |
[ -f $id/detected_filesystem ]; then
|
|
111 |
rm -f $id/format
|
|
112 |
fi'
|
|
113 |
}
|
|
114 |
|
94 | 115 |
create_primary_partitions() {
|
95 | 116 |
cd $dev
|
96 | |
|
97 | 117 |
while [ "$free_type" = pri/log ] && \
|
98 | 118 |
echo $scheme | grep -q '\$primary{'; do
|
99 | 119 |
pull_primary
|