Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[12.0-stable] mkimage-raw-efi: Find persist partition when installing into another disk #4283

Merged
merged 1 commit into from
Sep 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pkg/mkimage-raw-efi/install
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ if [ "$INSTALL_ZFS" = true ]; then
done
fi
else
P3="$(find_part P3 "$INSTALL_DEV")"
P3="$(find_part P3 "$INSTALL_PERSIST")"
[ -z "$P3" ] && bail "Installation failed. Cannot found P3. Entering shell..."
# attempt to zero the first and last 5Mb of the P3 (to get rid of any residual prior data)
dd if=/dev/zero of="/dev/$P3" bs=512 count=10240 2>/dev/null
Expand All @@ -428,7 +428,7 @@ else
mkfs -t ext4 -v -F -F -O encrypt "/dev/$P3"
mkdir -p /persist
# now the disk is ready - mount partitions
mount_part P3 "$INSTALL_DEV" /persist 2>/dev/null
mount_part P3 "$INSTALL_PERSIST" /persist 2>/dev/null
fi


Expand Down
Loading