[Bug 2104572] Re: Booting the daily noble RISC-V installer image fails
Nick Rosbrook
2104572 at bugs.launchpad.net
Wed Apr 9 19:55:13 UTC 2025
Regarding the SRU paperwork:
1. Please explain why this change is not needed for plucky or oracular,
and then update the bug tasks accordingly.
2. The "test plan" currently reads more like an "impact" section. All of
the information there is helpful, but please re-arrange so that the
"impact" and "test plan" sections contain the relevant details.
Regarding the upload itself:
1. There is a change to a bug number in the previous changelog entry,
which does not seem appropriate:
diff --git a/debian/changelog b/debian/changelog
index 919efd5..2e816b9 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,7 +1,15 @@
+cd-boot-images-riscv64 (12.2) noble; urgency=medium
+
+ * d/rules: Use "echo 'search.file /.disk/info root' > tree/EFI/boot/grub.cfg"
+ to find correct rootfs, as now debian-cd builds risc-v ISOs and does
+ not set disk label to 'live-media' as it used to. (LP: #2104572)
+
+ -- Adriano Cordova <adriano.cordova at canonical.com> Thu, 27 Mar 2025 16:02:55 -0300
+
cd-boot-images-riscv64 (12.1) noble; urgency=medium
* Rebuild against grub2 2.12-1ubuntu7.1 and u-boot 2024.01+dfsg-1ubuntu5.1
- (LP: #2062166)
+ (LP: #2096766)
-- Mate Kukri <mate.kukri at canonical.com> Mon, 27 Jan 2025 14:10:02 +0000
I realize from looking at these two bug numbers that there was a mistake
at the time 12.1 was uploaded. However, that mistake was noted
accordingly on the bugs, and at this point, it would be better to leave
the previous changelog entry alone. Please remove that change.
2. In the "where problems could occur" section, it is said that:
> The rootfs should be the only filesystem in the image containing a file named
> /.disk/info. If not, we risk loading an incorrect filesystem.
However, I see no attempt to mitigate this in the proposed patch. Is
there safeguard that should be added to this logic? If not, can you
expand the "where problems could occur" section to explain why, despite
that risk, this is the way the patch is written?
** Changed in: cd-boot-images-riscv64 (Ubuntu Noble)
Status: New => Incomplete
** Changed in: cd-boot-images-riscv64 (Ubuntu)
Status: New => Incomplete
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to u-boot in Ubuntu.
https://bugs.launchpad.net/bugs/2104572
Title:
Booting the daily noble RISC-V installer image fails
Status in cd-boot-images-riscv64 package in Ubuntu:
Incomplete
Status in u-boot package in Ubuntu:
Invalid
Status in cd-boot-images-riscv64 source package in Noble:
Incomplete
Status in u-boot source package in Noble:
Invalid
Bug description:
[ Impact ]
* Grub does not properly set the root= variable to identify the
rootfs.
[ Test Plan ]
* I have downloaded
https://cdimage.ubuntu.com/ubuntu-server/daily-live/current/plucky-live-
server-riscv64.iso
https://cdimage.ubuntu.com/ubuntu-server/noble/daily-live/current/noble-live-
server-riscv64.iso
and tried to boot these on a Plucky system.
Booting the noble image with
qemu-system-riscv64 -machine virt -m 4G -smp cpus=2 -nographic \
-kernel /usr/lib/u-boot/qemu-riscv64_smode/u-boot.bin \
-netdev user,id=net0 \
-device virtio-net-device,netdev=net0 \
-drive file=noble-live-server-riscv64.iso,format=raw,if=virtio \
-drive file=disk,format=raw,if=virtio \
-device virtio-rng-pc
ends up in the GRUB rescue console:
grub> ls $root
error: invalid file name `hd0,gpt2'.
grub> ls ($root)/
efi/ dtb/ ubootefi.var
grub>
Same problem with EDK II using
qemu-system-riscv64 -machine virt -m 4G -smp cpus=2 -nographic \
-drive if=pflash,format=raw,unit=0,file=/usr/share/qemu-efi-
riscv64/RISCV_VIRT_CODE.fd,readonly=on \
-drive if=pflash,format=raw,unit=1,file=RISCV_VIRT_VARS.fd \
-netdev user,id=net0 \
-device virtio-net-device,netdev=net0 \
-drive file=disk,format=raw,if=virtio \
-device virtio-blk,drive=ISO,bootindex=1 \
-drive file=noble-live-server-riscv64.iso,if=none,id=ISO \
-device virtio-rng-pci
I don't experience any problem with the Plucky image.
When I emulate a CD-ROM it works
qemu-system-riscv64 -machine virt -m 4G -smp cpus=2 -nographic \
-drive if=pflash,format=raw,unit=0,file=/usr/share/qemu-efi-
riscv64/RISCV_VIRT_CODE.fd,readonly=on \
-drive if=pflash,format=raw,unit=1,file=RISCV_VIRT_VARS.fd \
-netdev user,id=net0 \
-device virtio-net-device,netdev=net0 \
-drive file=disk,format=raw,if=virtio \
-device driver=virtio-scsi-pci,id=scsi0 \
-drive if=none,file=noble-live-server-
riscv64.iso,format=raw,readonly=on,id=CDROM \
-device driver=scsi-cd,bus=scsi0.0,drive=CDROM,bootindex=1 \
-device virtio-rng-pci
So it seems our current Noble ISO is not properly set up to be used a disk
image.
[ Where problems could occur ]
* The rootfs should be the only filesystem in the image containing a file named
/.disk/info. If not, we risk loading an incorrect filesystem.
[ Other Info ]
* n/a
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cd-boot-images-riscv64/+bug/2104572/+subscriptions
More information about the foundations-bugs
mailing list