NetBSD Problem Report #56271

From www@netbsd.org  Wed Jun 23 08:32:17 2021
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 520431A921F
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 23 Jun 2021 08:32:17 +0000 (UTC)
Message-Id: <20210623083216.0E1371A9239@mollari.NetBSD.org>
Date: Wed, 23 Jun 2021 08:32:16 +0000 (UTC)
From: ky0ko@disroot.org
Reply-To: ky0ko@disroot.org
To: gnats-bugs@NetBSD.org
Subject: default cgdroot setup doesn't work on systems using wedges
X-Send-Pr-Version: www-1.0

>Number:         56271
>Category:       kern
>Synopsis:       default cgdroot setup doesn't work on systems using wedges
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jun 23 08:35:00 +0000 2021
>Originator:     linear
>Release:        9.2
>Organization:
>Environment:
NetBSD  9.2 NetBSD 9.2 (GENERIC) #0: Wed May 12 13:15:55 UTC 2021  mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/amd64/compile/GENERIC amd64
>Description:
the default cgdroot setup does not work properly on systems that use wedges and a fake disklabel, such as amd64 uefi systems. it only attempts to mount wd0a or ld0a, which does not map to a valid filesystem - all the partitions are mapped to /dev/dkX instead.
>How-To-Repeat:

>Fix:
a quick fix would be to add dk0 (and maybe dk1) to the list of devices that it tries to mount.

a nicer fix would be not to have a hardcoded list at all but to instead implement a way for the bootloader to pass in the device name to try and mount. this would also work around the fact that the first partition (dk0) on uefi setups is generally msdosfs by necessity, and therefore not ideal for this setup

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.