-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
10.10.9 aborts in presence of a backup whose rootfs is on a "missing" disk #66
Comments
ydirson
added a commit
to xcp-ng/host-installer
that referenced
this issue
Oct 4, 2023
Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
ydirson
added a commit
to xcp-ng/host-installer
that referenced
this issue
Oct 4, 2023
…rver#66) Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
ydirson
added a commit
to xcp-ng/host-installer
that referenced
this issue
Oct 4, 2023
…rver#66) Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
ydirson
added a commit
to xcp-ng/host-installer
that referenced
this issue
Oct 5, 2023
Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
ydirson
added a commit
to xcp-ng/host-installer
that referenced
this issue
Oct 5, 2023
…rver#66) Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
ydirson
added a commit
to xcp-ng/host-installer
that referenced
this issue
Oct 6, 2023
…rver#66) Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
ydirson
added a commit
to xcp-ng/host-installer
that referenced
this issue
Oct 6, 2023
…rver#66) Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
ydirson
added a commit
to xcp-ng/host-installer
that referenced
this issue
Jun 12, 2024
Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
ydirson
added a commit
to xcp-ng/host-installer
that referenced
this issue
Jun 12, 2024
…rver#66) Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
My recently-merged "tui: show the disk on which an existing installation or backup is found" patch reveals an old issue.
In a nested BIOS install a backup detected as
<XenServerBackup: XCP-ng 8.3 (8.3.0-cloud) on /dev/sda2>
, where thePRIMARY_DISK
is/dev/disk/by-id/nvme-QEMU_NVMe_Ctrl_nvme0
(denoting that backup was originally installed as UEFI), is presented to the user as a valid choice to restore from.However, since 10.10.9 we now display more detailed entries, and this causes a exception, as:
getDiskDeviceSize("/dev/disk/by-id/nvme-QEMU_NVMe_Ctrl_nvme0")
returnsNone
because of a missingelse:
branch (dev = "disk!by-id!nvme-QEMU_NVMe_Ctrl_nvme0"
founds nothing matching/sys/block/%s/device/block/size
or/sys/block/%s/size
)getExtendedDiskInfo()
attempts to divideNone / 2048
, which causes the installer to abortNo such problem when booting the installer from UEFI, the backup entry succeeds in getting formatted.
The
disk!by-id!nvme-QEMU_NVMe_Ctrl_nvme0
string, where in UEFI boot/sys/block/
containsnvme0n1
makes me suspecting we're trying to find a non-existent device, do not catch the failure to get its realpath, and go on using the bad device path.This issue is linked to #11, in that a UEFI backup should be considered invalid on a BIOS install, and not proposed.
Note that in theory any
PRIMARY_DISK
pointing to a "missing disk" would lead to this, this could e.g. also happen if in a future platform udev rules change the/disk/by-id/
link.The text was updated successfully, but these errors were encountered: