Skip to main content
Topic: OpenRC 0.35 (Read 1349 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

OpenRC 0.35

OpenRC 0.35 is here and now in our gremlins repo. This version has had many major changes to the code such as forced deptree update during sysinit runlevel, Bash and ZSH completions included in upstream, cgroups mount changes, string memory management changes, and changes to openrc-init. The list of changes are much larger and can be seen here: https://github.com/OpenRC/openrc/compare/0.34.11...0.35

Please be aware that some of the changes are very major and could cause the system to be unbootable. If you don't know how to recover from an unbootable system, do not install 0.35 while it is still in the gremlins repo.

The bash completions are in the package "openrc-bash-completions" and zsh are in "openrc-zsh-completions".

If you guys encounter any problems, errors, or issues, please let us know so that we can look into it.
Chris Cromer

Re: OpenRC 0.35

Reply #1
It didn't work, recovery didn't work either, it didn't make it that far, only tty1 was functional and the only thing it could be done at that point was ctrl-alt-del which enabled openrc to shut down what had been started and rebooted.

I downgraded (chroot) to 0.34-11-3 from cache and it is back up and running again.

Re: OpenRC 0.35

Reply #2
It didn't work, recovery didn't work either, it didn't make it that far, only tty1 was functional and the only thing it could be done at that point was ctrl-alt-del which enabled openrc to shut down what had been started and rebooted.

I downgraded (chroot) to 0.34-11-3 from cache and it is back up and running again.

Have you modified the agettys in anyway?

Could you give us what is in your config files for your agettys?
Chris Cromer


Re: OpenRC 0.35

Reply #4
I have not done any modifications

Code: [Select]
 # /etc/init.d/agetty.tty2 --debug start

* WARNING: agetty.tty2 has already been started

/etc/init.d/agetty

Code: [Select]
#!/usr/bin/openrc-run
# Copyright (c) 2017 The OpenRC Authors.
# See the Authors file at the top-level directory of this distribution and
# https://github.com/OpenRC/openrc/blob/master/AUTHORS
#
# This file is part of OpenRC. It is subject to the license terms in
# the LICENSE file found in the top-level directory of this
# distribution and at https://github.com/OpenRC/openrc/blob/master/LICENSE
# This file may not be copied, modified, propagated, or distributed
# except according to the terms contained in the LICENSE file.

description="start agetty on a terminal line"
supervisor=supervise-daemon
port="${RC_SVCNAME#*.}"
term_type="${term_type:-linux}"
command=/sbin/agetty
command_args_foreground="${agetty_options} ${port} ${baud} ${term_type}"
pidfile="/run/${RC_SVCNAME}.pid"
export EINFO_QUIET="${quiet:-yes}"

depend() {
after local
keyword -prefix
}

start_pre() {
if [ -z "$port" ]; then
eerror "${RC_SVCNAME} cannot be started directly. You must create"
eerror "symbolic links to it for the ports you want to start"
eerror "agetty on and add those to the appropriate runlevels."
return 1
fi
}
/etc/init.d/openrc-settingsd
Code: [Select]
#!/usr/bin/openrc-run
# Copyright 2012 Alexandre Rostovtsev <[email protected]>
# Distributed under the terms of the GNU General Public License v2

description="hostnamed, localed, and timedated D-Bus services for OpenRC"

depend() {
need dbus
}

start() {
[ -n "${NTP_SERVICE}" ] &&
OPENRC_SETTINGSD_OPTS="--ntp-service=${NTP_SERVICE} ${OPENRC_SETTINGSD_OPTS}"
ebegin "Starting openrc-settingsd"
start-stop-daemon --start --quiet --pidfile "/run/openrc-settingsd.pid" \
"/usr/lib/openrc-settingsd" -- ${OPENRC_SETTINGSD_OPTS}
eend $?
}

stop() {
ebegin "Stopping openrc-settingsd"
start-stop-daemon --stop --quiet --pidfile "/run/openrc-settingsd.pid"
eend $?
}

# vim: set ft=gentoo-init-d ts=4 :

Re: OpenRC 0.35

Reply #5
Possibly related to your problem:
https://github.com/OpenRC/openrc/issues/212


Yeap, same error I got when it got stuck on console tty1

Code: [Select]
/usr/lib/openrc/sh/openrc-run.sh: line 36: /etc/in: No such file or directory

lines 31-40  of   /usr/lib/openrc/sh/openrc-run.sh

Code: [Select]
31 {
32 if [ "$1" = "-e" ]; then
33 shift
34 [ -e "$1" ] || return 1
35 fi
36 if ! . "$1"; then
37 eerror "$RC_SVCNAME: error loading $1"
38 exit 1
39 fi
40 }

Re: OpenRC 0.35

Reply #6
You didn't post the conf.d for your agetty files. /etc/conf.d/agetty.ttyX

Have you made any changes in the agetty conf files?
Chris Cromer

Re: OpenRC 0.35

Reply #7
No changes, they all seem identical 198byte files

Code: [Select]
# make agetty quiet
#quiet="yes"

# Set the baud rate of the terminal line
baud="38400"

# set the terminal type
term_type="linux"

# extra options to pass to agetty for this port
agetty_options=""

ls -al /etc/conf.d

Code: [Select]
-rw-r--r--  1 root root   198 Jan  7 22:05 agetty
-rw-r--r--  1 root root   198 Jan  7 22:05 agetty.tty1
-rw-r--r--  1 root root   198 Jan  7 22:05 agetty.tty2
-rw-r--r--  1 root root   198 Jan  7 22:05 agetty.tty3
-rw-r--r--  1 root root   198 Jan  7 22:05 agetty.tty4
-rw-r--r--  1 root root   198 Jan  7 22:05 agetty.tty5
-rw-r--r--  1 root root   198 Jan  7 22:05 agetty.tty6
-rwxr-xr-x  1 root root   340 Feb 21 19:27 alsasound
-rw-r--r--  1 root root   475 Jan  7 22:05 bootmisc
-rw-r--r--  1 root root   876 Jan  7 22:05 consolefont
-rw-r--r--  1 root root   348 Jan  7 22:05 devfs
-rwxr-xr-x  1 root root    15 Feb 16 23:07 device-mapper
-rwxr-xr-x  1 root root  3919 Feb 16 23:05 dmcrypt
-rw-r--r--  1 root root   117 Jan  7 22:05 dmesg
-rwxr-xr-x  1 root root   286 Nov  9 10:35 dnscrypt-proxy
-rwxr-xr-x  1 root root   218 Feb 16 23:08 elogind
-rw-r--r--  1 root root  1593 Jan  7 22:05 fsck
-rwxr-xr-x  1 root root   154 Feb 16 23:10 ftpd
-rw-r--r--  1 root root    59 Jan  7 22:05 hostname
-rw-r--r--  1 root root   857 Jan  7 22:05 hwclock
-rw-r--r--  1 root root   911 Jan  7 22:05 keymaps
-rw-r--r--  1 root root   235 Jan  7 22:05 killprocs
-rw-r--r--  1 root root    17 Jan 27 05:01 libvirtd
-rw-r--r--  1 root root   152 Jan 27 05:01 libvirt-guests
-rw-r--r--  1 root root   389 Jan  7 22:05 localmount
-rwxr-xr-x  1 root root   173 Feb 16 23:14 lvm
-rwxr-xr-x  1 root root   205 Feb 16 23:14 mdadm
-rwxr-xr-x  1 root root   383 Feb 16 23:14 mdraid
-rw-r--r--  1 root root  1075 Jan  7 22:05 modules
-rw-r--r--  1 root root   270 Jan  7 22:05 mtab
-rw-r--r--  1 root root 53377 Nov 29 23:38 net
-rw-r--r--  1 root root  1600 Jan  7 22:05 netmount
-rw-r--r--  1 root root   672 Jan  7 22:05 net-online
-rwxr-xr-x  1 root root   230 Feb 21 19:35 NetworkManager
-rwxr-xr-x  1 root root   930 Feb 16 23:15 nfs
-rwxr-xr-x  1 root root   592 Feb 16 23:15 nfsclient
-rwxr-xr-x  1 root root   776 Feb 21 19:36 ntp-client
-rwxr-xr-x  1 root root   192 Feb 21 19:36 ntpd
-rw-r--r--  1 root root   247 Jul 12  2017 openrc-settingsd
-rwxr-xr-x  1 root root    54 Dec 19 02:02 opentmpfiles-dev
-rwxr-xr-x  1 root root    54 Dec 19 02:02 opentmpfiles-setup
-rwxr-xr-x  1 root root    68 Feb 16 23:17 rpcbind
-rwxr-xr-x  1 root root   149 Feb 21 19:36 sntp
-rwxr-xr-x  1 root root   395 Feb 16 23:16 sshd
-rw-r--r--  1 root root   490 Jan  7 22:05 swap
-rwxr-xr-x  1 root root  1492 Feb 21 19:38 syslog-ng
-rw-r--r--  1 root root   279 Jul 18  2017 udev
-rw-r--r--  1 root root   187 Jul 18  2017 udev-settle
-rw-r--r--  1 root root  1264 Jul 18  2017 udev-trigger
-rw-r--r--  1 root root   282 Jan  7 22:05 urandom
-rwxr-xr-x  1 root root   161 Feb 16 23:17 wpa_supplicant


Re: OpenRC 0.35

Reply #8
Ok, partial progress.

I noticed that more pkgs came through gremlins, before when I update to 0.35 it was only openrc.
So I tried it on my 2nd artix installation.  Again no modifications to openrc/agetty

I updated all pkgs through chroot and rebooted.
Code: [Select]
/usr/lib/openrc/sh/openrc-run.sh: line 36: /etc/in: No such file or directory
Same 6 errors like above, all line36, but sddm started without loging in.  (maybe because I have removed sddm-runscripts) :)  ;)
so I don't have to deal with irritating dbus-runit anymore.

It always had to start manually or when the user was logged in from console.
I tried to go to console, all consoles are locked with just a cursor on top, not blinking.
tty1 shows the booting errors, so there is no responsive tty.
But tty7 works fine and this is where I am writing from.


Re: OpenRC 0.35

Reply #9
I created a blank file /etc/in
Now the errors became warnings,
Code: [Select]
 "there is nothing for in to start" 
This will be a failure in future releases
Code: [Select]
WARNING:   in has already been started

Re: OpenRC 0.35

Reply #10
I have found the problem and fixed it in a pull request on the github openrc, once they accept and push the new version this will be fixed.
Chris Cromer

Re: OpenRC 0.35

Reply #11
You do not need a /etc/in folder or file. The problem is that the path is cut off. It should be /etc/init.d/agetty.ttyX
However the problem is that it cut it down to /etc/in because of a bug.
Chris Cromer

Re: OpenRC 0.35

Reply #12
OpenRC 0.35.2 is now in gremlins. Let me know how it works for you.
Chris Cromer

Re: OpenRC 0.35

Reply #13
what exactly is baud?
command_args_foreground="${agetty_options} ${port} ${baud} ${term_type}"


I know I am about 30 years late for this question :)

Re: OpenRC 0.35

Reply #14
You done fixded it, as they say in no-queen's land.

No problem here, all ttys are back, /etc/in is trashed.

But if it is as you say, how come some peoples' artix did not encounter the bug and some of us did?  What kind of artix are you running?  I sure haven't messed with the init or the supervising system, it is as it came.  My one installation has not been broken once ever since that July' 2017 Artix 1 installer.  I think, apart from the developing team, myself and @mandog were the first to install it, first in the forum.

I thought out of the error it would be a folder where pointers of thing to start would go.  Then the error told me /etc/in is a folder, not a file.  So I made a file, blank, then added some stuff, and got a warning.

.... that was fun, it reminded me of running on a motorcycle with no brakes ...    heeeeee haaawwww!