Codebase list partman-auto / b74ed10
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
2 changed file(s) with 29 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
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
08 partman-auto (118) unstable; urgency=low
19
210 * Add arm64 recipe
9191 )"
9292 }
9393
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
94115 create_primary_partitions() {
95116 cd $dev
96
97117 while [ "$free_type" = pri/log ] && \
98118 echo $scheme | grep -q '\$primary{'; do
99119 pull_primary