From 906c41bd27214b917a375b76edbd2e263811ec8f Mon Sep 17 00:00:00 2001 From: Andrew David Wong Date: Wed, 10 Mar 2021 21:35:28 -0800 Subject: [PATCH 1/4] Generalize ISO offset instructions --- user/troubleshooting/uefi-troubleshooting.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/user/troubleshooting/uefi-troubleshooting.md b/user/troubleshooting/uefi-troubleshooting.md index 81ca5641..6263e7fa 100644 --- a/user/troubleshooting/uefi-troubleshooting.md +++ b/user/troubleshooting/uefi-troubleshooting.md @@ -21,10 +21,11 @@ If you've installed successfully in legacy mode but had to change some kernel pa **Change xen configuration directly in an iso image** 01. Get EFI partition boundaries `parted Qubes-R4.0-rc4-x86_64.iso unit B print` -02. Using the start address and the size of the EFI partition, setup a loop device for it `sudo losetup -o 524288 --sizelimit 30562304 /dev/loop0 Qubes-R4.0-rc4-x86_64.iso` -03. Mount the loop device `sudo mount /dev/loop0 /mnt` -04. Edit `EFI/BOOT/BOOTX64.cfg` to add your params to the `kernel` configuration key -05. Save your changes, unmount and dd to usb device +02. Find the offset for your ISO (see [here](https://unix.stackexchange.com/questions/270171/why-offset-specific-in-loop-mount)). +03. Using the start address and the size of the EFI partition, setup a loop device for it. This depends on the offset you found in the previous step and is specific to your ISO. Here is an example command using a specific Qubes ISO (if your ISO is different, you will have to adjust the command accordingly): `sudo losetup -o 524288 --sizelimit 30562304 /dev/loop0 Qubes-R4.0-rc4-x86_64.iso` +04. Mount the loop device `sudo mount /dev/loop0 /mnt` +05. Edit `EFI/BOOT/BOOTX64.cfg` to add your params to the `kernel` configuration key +06. Save your changes, unmount and dd to usb device ## Installation freezes before displaying installer ## From fff68fbd62852bfd84cdfc88cfcfb7fd3fb345b5 Mon Sep 17 00:00:00 2001 From: Andrew David Wong Date: Sun, 14 Mar 2021 21:10:20 -0700 Subject: [PATCH 2/4] Simplify loop device command Clean up surrounding text and headings --- user/troubleshooting/uefi-troubleshooting.md | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/user/troubleshooting/uefi-troubleshooting.md b/user/troubleshooting/uefi-troubleshooting.md index 6263e7fa..6e40c073 100644 --- a/user/troubleshooting/uefi-troubleshooting.md +++ b/user/troubleshooting/uefi-troubleshooting.md @@ -20,12 +20,11 @@ If you've installed successfully in legacy mode but had to change some kernel pa 04. Install using your modified boot entry **Change xen configuration directly in an iso image** -01. Get EFI partition boundaries `parted Qubes-R4.0-rc4-x86_64.iso unit B print` -02. Find the offset for your ISO (see [here](https://unix.stackexchange.com/questions/270171/why-offset-specific-in-loop-mount)). -03. Using the start address and the size of the EFI partition, setup a loop device for it. This depends on the offset you found in the previous step and is specific to your ISO. Here is an example command using a specific Qubes ISO (if your ISO is different, you will have to adjust the command accordingly): `sudo losetup -o 524288 --sizelimit 30562304 /dev/loop0 Qubes-R4.0-rc4-x86_64.iso` -04. Mount the loop device `sudo mount /dev/loop0 /mnt` -05. Edit `EFI/BOOT/BOOTX64.cfg` to add your params to the `kernel` configuration key -06. Save your changes, unmount and dd to usb device +01. Get EFI partition boundaries (replacing `X` with your ISO's version name): `parted Qubes-RX-x86_64.iso unit B print` +02. Set up a loop device (replacing `X` with your ISO's version name): `losetup -P /dev/loop0 Qubes-RX-x86_64.iso` +03. Mount the loop device: `sudo mount /dev/loop0 /mnt` +04. Edit `EFI/BOOT/BOOTX64.cfg` to add your params to the `kernel` configuration key +05. Save your changes, unmount and dd to usb device ## Installation freezes before displaying installer ## From cad8c5536a9d9f4ce4bb854518535ab834e58491 Mon Sep 17 00:00:00 2001 From: Andrew David Wong Date: Mon, 15 Mar 2021 15:11:53 -0700 Subject: [PATCH 3/4] Update user/troubleshooting/uefi-troubleshooting.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Marek Marczykowski-Górecki --- user/troubleshooting/uefi-troubleshooting.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/user/troubleshooting/uefi-troubleshooting.md b/user/troubleshooting/uefi-troubleshooting.md index 6e40c073..d20876a7 100644 --- a/user/troubleshooting/uefi-troubleshooting.md +++ b/user/troubleshooting/uefi-troubleshooting.md @@ -22,7 +22,7 @@ If you've installed successfully in legacy mode but had to change some kernel pa **Change xen configuration directly in an iso image** 01. Get EFI partition boundaries (replacing `X` with your ISO's version name): `parted Qubes-RX-x86_64.iso unit B print` 02. Set up a loop device (replacing `X` with your ISO's version name): `losetup -P /dev/loop0 Qubes-RX-x86_64.iso` -03. Mount the loop device: `sudo mount /dev/loop0 /mnt` +03. Mount the loop device: `sudo mount /dev/loop0p2 /mnt` 04. Edit `EFI/BOOT/BOOTX64.cfg` to add your params to the `kernel` configuration key 05. Save your changes, unmount and dd to usb device From fcc3f650d565f3a6aa79aa593df175854a62039e Mon Sep 17 00:00:00 2001 From: Andrew David Wong Date: Mon, 15 Mar 2021 15:14:10 -0700 Subject: [PATCH 4/4] Remove unnecessary step --- user/troubleshooting/uefi-troubleshooting.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/user/troubleshooting/uefi-troubleshooting.md b/user/troubleshooting/uefi-troubleshooting.md index d20876a7..58c8d63a 100644 --- a/user/troubleshooting/uefi-troubleshooting.md +++ b/user/troubleshooting/uefi-troubleshooting.md @@ -20,11 +20,10 @@ If you've installed successfully in legacy mode but had to change some kernel pa 04. Install using your modified boot entry **Change xen configuration directly in an iso image** -01. Get EFI partition boundaries (replacing `X` with your ISO's version name): `parted Qubes-RX-x86_64.iso unit B print` -02. Set up a loop device (replacing `X` with your ISO's version name): `losetup -P /dev/loop0 Qubes-RX-x86_64.iso` -03. Mount the loop device: `sudo mount /dev/loop0p2 /mnt` -04. Edit `EFI/BOOT/BOOTX64.cfg` to add your params to the `kernel` configuration key -05. Save your changes, unmount and dd to usb device +01. Set up a loop device (replacing `X` with your ISO's version name): `losetup -P /dev/loop0 Qubes-RX-x86_64.iso` +02. Mount the loop device: `sudo mount /dev/loop0p2 /mnt` +03. Edit `EFI/BOOT/BOOTX64.cfg` to add your params to the `kernel` configuration key +04. Save your changes, unmount and dd to usb device ## Installation freezes before displaying installer ##