Bug 274223 - scriptedpart utility fails refuses to generate an fstab file, making automated v14.0 installs impossible.
Summary: scriptedpart utility fails refuses to generate an fstab file, making automate...
Status: Closed DUPLICATE of bug 273723
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 14.0-CURRENT
Hardware: Any Any
: --- Affects Many People
Assignee: freebsd-bugs (Nobody)
URL:
Keywords: install
Depends on:
Blocks:
 
Reported: 2023-10-02 19:31 UTC by Ladar Levison
Modified: 2023-10-17 17:07 UTC (History)
2 users (show)

See Also:


Attachments
Error message when /mnt fills up. (5.13 KB, image/png)
2023-10-02 19:31 UTC, Ladar Levison
no flags Details
Screenshot showing the empty fstab file, and partition table, confirming the bug. (10.11 KB, image/png)
2023-10-02 19:32 UTC, Ladar Levison
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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 ***