Bug 256395 - Kernel waits 30 seconds for CD drive before mounting root filesystem
Summary: Kernel waits 30 seconds for CD drive before mounting root filesystem
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 13.0-RELEASE
Hardware: amd64 Any
: --- Affects Some People
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-03 05:05 UTC by miner.ben07
Modified: 2021-06-06 19:33 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description miner.ben07 2021-06-03 05:05:18 UTC
I dual-boot Fedora Silverblue (which I'm using for this bug report) and FreeBSD. When booting FreeBSD in verbose mode and with boot_mute off, I can see that the kernel waits 30 seconds from getting ready to mount the root filesystem and actually doing it. In this time, it repeatedly prints out this message, once every second:

Root mount waiting for: usbus1
Root mount waiting for: usbus1
...and so on...

If I put a CD or DVD in my laptop's DVD drive, or a USB in one of the ports, this does not happen, which means it can't be one of the ports specifically, or whatever usbus1 is changes.

I have very little FreeBSD experience, but have used Linux for nearly a year and as far as I can tell, Linux avoids waiting for a root filesystem on a USB or CD by making GrUB specify the root device in the command line.

Is there a way to specify the root device in loader.conf or something or is this a bug without a workaround?
Comment 1 miner.ben07 2021-06-03 05:13:22 UTC
Wait, the problem still happens when I plug in a USB stick, so it's specific to the CD drive.