Update grub with the new uuids.
This commit is contained in:
@@ -269,9 +269,10 @@ sudo sync
|
|||||||
echo "Finalizing installation..."
|
echo "Finalizing installation..."
|
||||||
|
|
||||||
# Mount the new root partition to make final adjustments
|
# Mount the new root partition to make final adjustments
|
||||||
TARGET_ROOT_PART="${TARGET_DEVICE}1"
|
if [[ "$TARGET_DEVICE" =~ (nvme|mmcblk) ]]; then
|
||||||
if [[ "$TARGET_DEVICE" =~ nvme|mmcblk ]]; then
|
|
||||||
TARGET_ROOT_PART="${TARGET_DEVICE}p1"
|
TARGET_ROOT_PART="${TARGET_DEVICE}p1"
|
||||||
|
else
|
||||||
|
TARGET_ROOT_PART="${TARGET_DEVICE}1"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Find the actual root partition (might not be partition 1)
|
# Find the actual root partition (might not be partition 1)
|
||||||
@@ -345,9 +346,10 @@ if sudo mount "$TARGET_ROOT_PART" "$TEMP_MOUNT" 2>/dev/null; then
|
|||||||
sudo mkdir -p "$EFI_MOUNT"
|
sudo mkdir -p "$EFI_MOUNT"
|
||||||
|
|
||||||
# Find EFI partition (should be partition 2)
|
# Find EFI partition (should be partition 2)
|
||||||
EFI_PART="${TARGET_DEVICE}2"
|
if [[ "$TARGET_DEVICE" =~ (nvme|mmcblk) ]]; then
|
||||||
if [[ "$TARGET_DEVICE" =~ nvme|mmcblk ]]; then
|
|
||||||
EFI_PART="${TARGET_DEVICE}p2"
|
EFI_PART="${TARGET_DEVICE}p2"
|
||||||
|
else
|
||||||
|
EFI_PART="${TARGET_DEVICE}2"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if sudo mount "$EFI_PART" "$EFI_MOUNT" 2>/dev/null; then
|
if sudo mount "$EFI_PART" "$EFI_MOUNT" 2>/dev/null; then
|
||||||
|
|||||||
Reference in New Issue
Block a user