Skip to main content
Topic: [openrc][runit] update (Read 19524 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[openrc][runit] update

The next openrc-0.35.5-12 or runit-2.1.2-6 update will require manual intervention.
This procedure will be necessary in [gremlins] first, later in [system].

Updated instructions:

Runit:

Remove runlevel symlinks you eventually set manually.
Code: [Select]
sudo rm /etc/runit/runsvdir/default/{dbus,elogind}

Remove sysv symlinks.
Code: [Select]
sudo rm /usr/bin/{init,poweroff,shutdown,halt,reboot}
Code: [Select]
sudo pacman -Syu artix-sysvcompat

Openrc:

Remove runlevel symlinks you eventually set manually.

check elogind:
Code: [Select]
sudo rc-update del elogind boot

check dbus:
Code: [Select]
sudo rc-update del dbus default

Then proceed with system update:
Code: [Select]
sudo pacman -Syu artix-sysvcompat


Please do not attempt the update in pamac or octopi.

Re: [openrc][runit] update

Reply #1
Additional note for runit users:

Since we finally provided a unified sysvinit-compatible binary, please delete all of these symlinks before upgrading to runit-artix-20180414-9.

Code: [Select]
# rm /usr/bin/init /usr/bin/poweroff /usr/bin/shutdown /usr/bin/halt /usr/bin/reboot
now only the dinit guy in artix

Re: [openrc][runit] update

Reply #2
Upgraded to gremlins using packages-gremlins.cfg then upgraded as above on a reboot got root mounted but sbin/init does not exist. Checked with vi editor and it does exist so not sure what is wrong?

Re: [openrc][runit] update

Reply #3
Upgraded to gremlins using packages-gremlins.cfg then upgraded as above on a reboot got root mounted but sbin/init does not exist. Checked with vi editor and it does exist so not sure what is wrong?

Start your system by adding to kernel at grub:

Code: [Select]
init=/usr/bin/openrc-init

boot up

Code: [Select]
sudo pacman -Syu openrc

pacman output:
Code: [Select]
:: Running post-transaction hooks...
(...)
( 4/12) Activating init switching system...
        ==> Activated openrc-init.


Reboot.

Re: [openrc][runit] update

Reply #4
I don't get it...
Code: [Select]
# pacman -Syu artix-sysvcompat
:: Synchronizing package databases...
/var/lib/pacman/sync/gremlins 100%[=================================================>]  25.78K  --.-KB/s    in 0.1s   
/var/lib/pacman/sync/system.d 100%[=================================================>] 191.33K  1.12MB/s    in 0.2s   
/var/lib/pacman/sync/world.db 100%[=================================================>] 659.96K  2.31MB/s    in 0.3s   
/var/lib/pacman/sync/galaxy-g 100%[=================================================>]   9.25K  --.-KB/s    in 0s     
/var/lib/pacman/sync/galaxy.d 100%[=================================================>] 143.12K   858KB/s    in 0.2s   
/var/lib/pacman/sync/lib32-gr 100%[=================================================>]      76  --.-KB/s    in 0s     
/var/lib/pacman/sync/lib32.db 100%[=================================================>]  11.37K  --.-KB/s    in 0s     
/var/lib/pacman/sync/extra.db 100%[=================================================>]   1.56M  1.96MB/s    in 0.8s   
/var/lib/pacman/sync/communit 100%[=================================================>]   4.32M  3.82MB/s    in 1.1s   
/var/lib/pacman/sync/repo-ck. 100%[=================================================>]  34.84K  --.-KB/s    in 0.06s  
error: target not found: artix-sysvcompat

Mirrorlist:
Code: [Select]
##
## Artix Linux repository mirrorlist
## Generated on 2017-10-21
##

# Artix mirrors

Server = http://artix.wheaton.edu/repos/$repo/os/$arch/
Server = https://www.uex.dk/repos/artix/repos/$repo/os/$arch
Server = https://mirrors.dotsrc.org/artix-linux/repos/$repo/os/$arch
Server = http://mirror1.artixlinux.org/repos/$repo/os/$arch
Server = http://mirror.strits.dk/artix-linux/repos/$repo/os/$arch

Re: [openrc][runit] update

Reply #5
artix-sysvcompat is not in stable yet only in gremlins.

Re: [openrc][runit] update

Reply #6
He is on Gremlins.

Some mirrors haven't caught up to the primary and depending on the order of the mirrors and/or proximity to them you may have a different picture than what we had.  Wait a little and it will show up on one of your -Sy attempts. 

Re: [openrc][runit] update

Reply #7
check elogind:
Code: [Select]
sudo rc-update del elogind boot

This instruction was for OpenRC, why?
Somehow I have elogind and libelogind that are newer than system, must have come from gremlins and then vanished and never made it to system.  Should I downgrade to those in stable?

Code: [Select]
 system/elogind 235.4-2 (base) [installed: 236.1-1]
    The systemd project's logind, extracted to a standalone package
system/elogind-runit 20180226-1 (runit-system) [installed]
    runit service scripts for elogind
system/libelogind 235.4-2 (base-devel) [installed: 236.1-1]

 

Re: [openrc][runit] update

Reply #8
Update for any runit Users

Code: [Select]
# rm /usr/bin/init /usr/bin/poweroff /usr/bin/shutdown /usr/bin/halt /usr/bin/reboot
# pacman -U /var/cache/pacman/pkg/artix-sysvcompat-0.3.7-3-x86_64.pkg.tar.xz
# sudo pacman -S runit-artix

This works, the latest artix-sysvcompat-0.3.7-5-x86_64.pkg.tar.xz on Gremlins will break your init sequence, do not upgrade till the devs come back on and explain
Gremlins version has been bumped up to "artix-sysvcompat-0.3.7-6", perhaps that has a fix for the init issue with runit?
I cannot verify as I use openrc.

Best regards.
We should try to be kind to everyone.....we are all fighting some sort of battle.

Re: [openrc][runit] update

Reply #9
Gremlins version has been bumped up to "artix-sysvcompat-0.3.7-6", perhaps that has a fix for the init issue with runit?
I cannot verify as I use openrc.

Best regards.

The fix is in goblins gremlins currently. Brave runit users can get it there.

Re: [openrc][runit] update

Reply #10
Carlossalvatore - cowabunga, that mirror list is totally outdated, the mirrors on it  have packages way out of date, some of them don't exist any more. You need  to add the new mirrors at the top manually.

Re: [openrc][runit] update

Reply #11
This instruction was for OpenRC, why?
Somehow I have elogind and libelogind that are newer than system, must have come from gremlins and then vanished and never made it to system.  Should I downgrade to those in stable?
[note I use openrc, not runit]
At least for me, it seems like elogind and dbus had been manually added to rc-update, so the upgrade barfed on the file conflict when it tried to add them.  Manual removal seemed to be the easiest way around it.  I have no idea if that is the case for runit.  I'd say try the upgrade, and see if it complains about the conflict.

I also ended up with elogind and libelogind ahead of system, and I did downgrade, although I didn't notice any problem related to that (before or after the upgrade.)

One thing that might help avoid problems for some openrc users, is a more explicit note they do need to add artix-sysvcompat.  I didn't do that at first, and then noticed I didn't have halt or reboot.  It IS in the first post - but I skipped it as I didn't already have it, and didn't see why I would need it.  Yes - I did figure it out later...

Re: [openrc][runit] update

Reply #12
Carlossalvatore - cowabunga, that mirror list is totally outdated, the mirrors on it  have packages way out of date, some of them don't exist any more. You need  to add the new mirrors at the top manually.

Hi, dude!

Which one is the good one?

Never mind. I've changed to these ones and it worked:
Code: [Select]
Server = https://mirror.clarkson.edu/artix-linux/repos/$repo/os/$arch
Server = https://ftp.sh.cvut.cz/artix-linux/$repo/os/$arch
Server = http://artix.wheaton.edu/repos/$repo/os/$arch
Server = http://mirror.strits.dk/artix-linux/repos/$repo/os/$arch
Server = https://mirrors.dotsrc.org/artix-linux/repos/$repo/os/$arch
Server = https://www.uex.dk/public/artix/$repo/os/$arch
Server = http://mirror1.artixlinux.org/repos/$repo/os/$arch

I've also updated the wiki with this information.

Re: [openrc][runit] update

Reply #13
Alright, updated instructions for updates arriving in stable [system].

That's all. :)

Re: [openrc][runit] update

Reply #14
I had the dotsrc mirror at the top at first as it was fast in my location, but I noticed I didn't have the latest mirror list that people were talking about on here. So I switched it to the bottom and added this to the top:
https://ftp.cc.uoc.gr/mirrors/linux/artixlinux/$repo/os/$arch
because it was added very recently to the list so I thought it must be up to date. It was slower for my location but brought in many updates. I tried putting the dotsrc one back at the top later but I just got lots of "newer than..." warnings when I did pacman -Syu. Looking manually by browser at the two repos:
https://mirrors.dotsrc.org/artix-linux/repos/system/os/x86_64/
artix-mirrorlist-20171021-1-any.pkg.tar.xz   2152   21-Oct-2017 09:58
https://ftp.cc.uoc.gr/mirrors/linux/artixlinux/system/os/x86_64/
artix-mirrorlist-20180424-1-any.pkg.tar.xz         25-Apr-2018 00:24    2192

So at least one mirror is not at all up to date, perhaps others need updating too?