Bug 274223

Summary: scriptedpart utility fails refuses to generate an fstab file, making automated v14.0 installs impossible.
Product: Base System Reporter: Ladar Levison <ladar>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed DUPLICATE    
Severity: Affects Many People CC: emaste, jhb
Priority: --- Keywords: install
Version: 14.0-CURRENT   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
Error message when /mnt fills up.
none
Screenshot showing the empty fstab file, and partition table, confirming the bug. none

Description Ladar Levison 2023-10-02 19:31:54 UTC
Created attachment 245389 [details]
Error message when /mnt fills up.

The v14.0 installer has a broken version of the /usr/libexec/bsdinstall/scriptedpart utility. It partitions the target disk properly, but doesn't write the target disk layout to an fstab file, as it should. Because of this, the '
'bsdinstall mount' step fails to mount the target disk onto the /mnt mountpoint. Because the /mnt directory is setup as a tmpfs (with my configs), the installer continues. It then either a) fails when the /mnt partition runs out of space, or b) if the tmpfs is large enough, completes the install, only to have it disappear when the VM reboots.

This issue was discovered with HBSD v14.0 and then confirmed using the FBSD 14.0 BETA4 and BETA1 installers. See these emails for more verbosity on the subject.

https://groups.google.com/a/hardenedbsd.org/g/users/c/co6oSBfmdOE/m/0aBHQ54qAwAJ

https://groups.google.com/a/hardenedbsd.org/g/users/c/co6oSBfmdOE/m/yvs6JkQ9AwAJ

https://groups.google.com/a/hardenedbsd.org/g/users/c/co6oSBfmdOE/m/8xCnhSJAAwAJ

https://groups.google.com/a/hardenedbsd.org/g/users/c/co6oSBfmdOE/m/wL2mf8xOAwAJ

I've confirmed this bug on QEMU using the AMD64. The other hypervisor installs (Vbox, Vmware, Hyper-V, etc) also failed, so I assume the bug isn't platform specific, but I haven't pulled up the console on the systems to confirm.
Comment 1 Ladar Levison 2023-10-02 19:32:31 UTC
Created attachment 245390 [details]
Screenshot showing the empty fstab file, and partition table, confirming the bug.
Comment 2 John Baldwin freebsd_committer freebsd_triage 2023-10-17 17:07:12 UTC

*** This bug has been marked as a duplicate of bug 273723 ***