[Bug 276517] disklabel(8) crash

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 22 Jan 2024 20:30:01 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276517

--- Comment #2 from Don Yuniskis <dgy@engineer.com> ---
(In reply to Ed Maste from comment #1)

Note my actions are the result of NOT being able to get
the installer to "do what I wanted".

Drop to shell.  Invoke disklabel(8) from command line.
s/8 partitions/10 partitions/
Append "i: blah blah 4.2BSD blah blah"
Exit

(note result returning to bsdinstall)

Reinvoke disklabel from CLI.
Append "j: blah blah 4.2BSD blah blah"
Exit

(note result returning to bsdinstall)

From shell, invoke disklabel.
Remove all but first 8 partitions.
Exit

Let installer try to use label.  'h' complains of bad type.

I am aware of the special significance of the 'c' partition
(In NetBSD, 'b', c' and 'd' have had similar treatment over
the years)

I was NOT aware of the 8 partition limit (I have 16 partitions
on that disk with the machine now running NetBSD).  This appears
to be a limitation of FreeBSD's disklabel, not "BSD".

As such, you should just verify the '8' limit is enforced properly
even if s/8/10/.  I.e., I would have expected a complaint when
I altered the "8" and the 'i' line to have been elided.

-- 
You are receiving this mail because:
You are the assignee for the bug.