[Pkg-sysvinit-devel] Bug#909118: /proc not mounted before use
George Taylor
grgtlr5 at googlemail.com
Tue Sep 18 18:27:13 BST 2018
Package: sysv-rc
Version: 2.88dsf-59.9
Severity: minor
On boot:
ERROR: could not open /proc/stat: No such file or directory
Related to:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=659480
Caused by /etc/init.d/rc from sysv-rc:
<code>
if ! test -e /proc/stat; then
# startpar requires /proc/stat
if [ "$(uname)" = "GNU/kFreeBSD" ] ; then
mount -t linprocfs linprocfs /proc
elif [ "$(uname)" = "GNU" ] ; then
mount -t proc none /proc
fi
fi
</code>
because uname only returns GNU on Hurd. When running a Linux kernel it
returns Linux and proc is not mounted, and booting without initramfs
produces the above error.
I suggest replacing elif with a simple else.
More information about the Pkg-sysvinit-devel
mailing list