NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

bin/55917: /etc/rc.d/cgd stalls on encrypted swap partitions



>Number:         55917
>Category:       bin
>Synopsis:       /etc/rc.d/cgd stalls on encrypted swap partitions
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jan 10 18:45:00 +0000 2021
>Originator:     Stefan Schaeckeler
>Release:        NetBSD 9.1
>Organization:
>Environment:
NetBSD XXX 9.1_STABLE NetBSD 9.1_STABLE (GENERIC) #2: Sun Jan  3 11:19:52 PST 2021  root%dell.wonderland.de@localhost:/usr/obj/sys/arch/amd64/compile/GENERIC amd6
>Description:
/etc/rc.d/cgd stalls in cgdconfig -C on encrypted swap partitions when following /wiki.netbsd.org/guide/cgd/

The stall happens only during boot. When invoking /etc/rc.d/cgd after completion of the boot process, cgdconfig does not stall. See cgdconfig(8) for an explanation:

     urandomkey         The method simply reads /dev/urandom and uses the
                        resulting bits as the key.  This is similar to the
                        randomkey method, but it guarantees that cgdconfig
                        will not stall waiting for hard-random bits (useful
                        when configuring a cgd for swap at boot time).

>How-To-Repeat:

>Fix:
Please replace randomkey with urandomkey in section "Using a random-key cgd for swap".



Home | Main Index | Thread Index | Old Index