Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151557065
D50334.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
839 B
Referenced Files
None
Subscribers
None
D50334.diff
View Options
diff --git a/stand/common/metadata.c b/stand/common/metadata.c
--- a/stand/common/metadata.c
+++ b/stand/common/metadata.c
@@ -111,7 +111,7 @@
* tested/set by MI code before launching the kernel.
*/
rootdevname = getenv("rootdev");
- if (rootdevname == NULL)
+ if (rootdevname == NULL || *rootdevname == '\0')
rootdevname = getenv("currdev");
/* Try reading the /etc/fstab file to select the root device */
getrootmount(rootdevname);
diff --git a/stand/efi/loader/main.c b/stand/efi/loader/main.c
--- a/stand/efi/loader/main.c
+++ b/stand/efi/loader/main.c
@@ -513,7 +513,7 @@
* it's wrong.
*/
rootdev = getenv("rootdev");
- if (rootdev != NULL) {
+ if (rootdev != NULL && *rootdev != '\0') {
printf(" Setting currdev to configured rootdev %s\n",
rootdev);
set_currdev(rootdev);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Apr 10, 4:32 AM (4 h, 24 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31199537
Default Alt Text
D50334.diff (839 B)
Attached To
Mode
D50334: loader - guard against empty rootdev
Attached
Detach File
Event Timeline
Log In to Comment