This commit is contained in:
2026-04-30 11:19:03 -05:00
parent 0664dde3cb
commit 45de18b162
2 changed files with 4 additions and 141 deletions
+4 -4
View File
@@ -81,8 +81,8 @@ main() {
install_grub
cleanup
echo -e "${GREEN}Restore and resize complete!${RESET}"
exit 0
}
root_check() {
@@ -207,7 +207,7 @@ mount_chroot() {
mkdir -p "${MOUNT_PATH}/boot/efi"
mount $EFI_PART "${MOUNT_PATH}/boot/efi"
for i in "${MOUNT_POINTS[@]}"; do mount -B $i ${MOUNT_PATH}${i}; done
for i in "${MOUNT_POINTS[@]}"; do mount --bind $i "${MOUNT_PATH}${i}"; done
echo -e "${GREEN}Mounts prepared for chroot.${RESET}"
}
@@ -229,8 +229,8 @@ gen_fstab() {
install_grub() {
echo "Entering chroot to reinstall GRUB..."
CHROOT_LINUX_INSTALL="apt install --reinstall -y linux-image-amd64"
CHROOT_INITRAMFS="update-initramfs -c -k all"
CHROOT_LINUX_INSTALL="dpkg -i /var/cache/apt/archives/linux-image-amd64_6.1.164-1_amd64.deb"
CHROOT_INITRAMFS="update-initramfs -u -k all"
CHROOT_GRUB_INSTALL="grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=debian"
CHROOT_GRUB_UPDATE="update-grub"