Date: Thu, 04 Jun 2020 16:31:17 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 246986] userboot.so can't open rootfs partition if you use raw BSD partitions directly on disk without any slices Message-ID: <bug-246986-227@https.bugs.freebsd.org/bugzilla/>
index | next in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=246986 Bug ID: 246986 Summary: userboot.so can't open rootfs partition if you use raw BSD partitions directly on disk without any slices Product: Base System Version: 12.1-STABLE Hardware: amd64 OS: Any Status: New Severity: Affects Many People Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: misho@elwix.org Created attachment 215231 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=215231&action=edit Patch for disk_open() >From FreeBSD 12.1 till current version of FreeBSD. userboot.so loader haves issue with raw BSD partitions directly on disk without any PC slice schema aka MBR or GPT. Bug came after commit, when predefine constant values was replaced with macro definitions in userboot/main.c and common/disk.c. These two members of devsw structure d_slice and d_partition now have defined constants. One of them have different value from previous version of code. D_PARTWILD now have value -2, before that change dev.d_partition has 0. I didn't take easy step directly to change macro D_PARTWILD to 0, because I saw that uboot loader already used this macro. I made patch in common/disk.c file into disk_open() function -- You are receiving this mail because: You are the assignee for the bug.help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-246986-227>
