The officially official Devuan Forum!

You are not logged in.

#1 2021-07-21 11:40:21

lordwolf
Member
Registered: 2021-07-21
Posts: 2  

Custom Live Boot for Devuan Base System

Hello all,

I am playing with some scripts that runs in initramfs and loads squashfs-compressed Devuan Beowulf root fs created using debootstrap. It runs ok, but I found an error message that I simply cannot find solution for... plus an itch...

INIT: version 2.93 booting
[info] Using makefile-style concurrent boot in runlevel S.
ERROR: could not open /proc/stat: No such file or directory
[info] Setting the system clock.
[info] System Clock set to: Wed Jul 21 11:29:42 UTC 2021.
[ ok ] Activating swap...done.
[....] Checking file systems...fsck from util-linux 2.33.1
done.
[ ok ] Cleaning up temporary files....
[ ok ] Mounting local filesystems...done.
[ ok ] Activating swapfile swap...done.
[ ok ] Cleaning up temporary files....
[ ok ] Cleaning up temporary files....
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.

1) Notice that ERROR on third line - about not being able to open /proc/stat. Any ideas on what can cause this? Are there anything special I need to setup before starting init? I use busybox switch_root for that...

2) I actually have no filesystems to check... a single overlayfs mounted on tmpfs as root. Is there a way for me to tell init to skip that so that I do not see the fsck message? I skipped the root by simply marking 0 in fstab. I have no idea what it is trying to check...

The system boots fine and I can login and run apt and everything... but, I simply have to make those things go away tongue

Thanks for any ideas!

Last edited by lordwolf (2021-07-21 11:41:28)

Offline

#2 2021-07-21 12:27:52

fsmithred
Administrator
Registered: 2016-11-25
Posts: 2,486  

Re: Custom Live Boot for Devuan Base System

I don't have any ideas on what you should do to fix it, but I found the following by poking around in the sysvinit-core source. This can be found in /lib/init/rc.

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 -ocompatible
        fi
fi

Maybe use this or figure out how it does what it does:

# Skip fsck on reboot.
shutdown -f     

Offline

#3 2021-07-22 05:16:37

lordwolf
Member
Registered: 2021-07-21
Posts: 2  

Re: Custom Live Boot for Devuan Base System

fsmithred wrote:

I don't have any ideas on what you should do to fix it, but I found the following by poking around in the sysvinit-core source. This can be found in /lib/init/rc....

Thanks.... I will try to look at that.

Offline

Board footer