libera/#devuan/ Sunday, 2021-12-26

n000bHello everyone and happy holidays! Now figured out how to register for IRC, would hence like to ask once again, whether there is any support for Docker and K8s for Devuan? Thanks in advance!02:27
cyteenthe docker.io package provides 20.10.5+dfsg1-1+deb11u1 in stable, 20.10.11+dfsg1-2+b1 in testing, or you can add the docker sources.list for package docker-ce 20.10.12~3-0~debian-bullseye02:55
gnubi3Happy GNUvidad!03:13
frltlxhey04:08
Jookiahere's my christmas question: what's a good init system for devuan04:09
frltlxchristmasd?04:10
Jookiais that a real thing04:10
frltlxIt could be.. you know how people love renaming things for Christmas04:10
Jookiai'm a developer and wanting to see if there's any modern non-systemd init system i should be supporting04:11
frltlxI use sysvinit.. I guess it depends what you're looking for in an init04:11
Jookiai think the choices is basically openrc04:11
gnarfacethe default init is still perfectly suitable04:12
frltlxopenrc and runit are the alternatives in devuan, and sysvinit has been taken up by Jesse Smith iirc.. incorporating bug fixes etc04:12
gnarfacemost inits are very easy to integrate with if your service supports very basic start/stop commands04:12
Jookiasysvinit requires me writing a ton of bash scripts though doesn't it04:12
Jookiainstead of a few lines of code04:12
gnarfacejust one bash scripts and it can be very short04:13
raindodgerrunit is fairly modern, functions well as an init and can be installed on Devuan by using the 'Expert Install' option before starting the OS installation04:13
Jookiait doesn't support service supervision does it?04:13
gnarface(technically you're advised to use posix-compatible sh but people do use bash)04:13
Jookiait uses pid files i think04:13
frltlxyeah, in terms of being an admin or user.. not that simple for most default scripts, but.. I have no idea about the codebase04:13
gnarfacenot on its own, not unless you provide a status command04:13
Jookiai think openrc and and runit do supervision properly04:13
frltlxmain reason for runit is supervision I think04:14
gnarfaces6 might also04:14
Jookias6 is too confusing for me04:14
Jookiarunit is the limit of confusion i think04:14
frltlxI'm not sure current status of runit scripts in devuan now.. haven't been paying attention but I suspect 'native' runit scripts could use some work there04:15
Jookiaah04:15
Jookiaso there's no real out of the box support for non-sysv stuff in devuan?04:15
frltlxI think that most daemon scripts are provided by a wrapper for runit, but you'd want to check for yourself I think04:15
Jookiaah04:16
Jookianvm then04:16
raindodgerWhat is meant by service supervision? I've heard of this term before, but I don't know what it means04:17
frltlxmailing list has some more info somewhere, I think Steve Litt was working on that04:17
frltlxif a service fails to report a running status, it gets restarted usually, I think anyway.04:17
Jookiai was looking for a distro that supoorted like openrc or runit first class04:17
Jookiait doesn't look like there's documentation for switching init systems either?04:19
frltlxoh, hm.. default runit in.. forget the name of the distro but has excellent runit support04:19
raindodgerVoid Linux? I think their devs are the ones who made runit04:19
frltlxYes, void is the one I'm thinking of04:20
Jookiathere's a page about avoiding dbus which is a bit strange04:20
frltlxbeowulf onwards dbus avoiding is difficult, needs a simple wm plus simple browser, most mainstream stuff is using dbus now04:21
Jookiawhy would you want to avoid dbus?04:21
raindodgerTo get away from systemd dependencies04:21
raindodgerDbus and systemd are both developed by Red Hat04:22
raindodgerSame with pulseaudio04:22
frltlxminimalism reasons mostly, and because it's tied in with so much stuff.. so it's probably as widespread as systemd in non-OS packages04:22
Jookiaso what would i use as a developer instead?04:22
rwpAlso dbus is a solution that created its own problems.04:22
rwpSuch as, if everything is done through messages over dbus then all of a sudden one needs to authenticate command sources and authorize them.04:23
raindodger@Jookia Tell people to edit their fstab file by hand04:23
raindodgerlol04:23
frltlxwell, there are ways to do without dbus, e.g automounting via udevil or udisks2, without dbus04:23
Jookiaraindodger: no i mean as a developer who needs a dbus04:23
Jookiauh, bus04:23
raindodgerI was only joking. I'm not really sure04:23
Jookiais there an alternative?04:23
Jookiaor will people just not use my software04:23
frltlxopenwrt guys have ubus.. similar idea, but smaller04:23
Jookiadoes devuan package and support ubus?04:24
frltlxproviding dbus as non hard dependency might be best bet for something used widely, so you could find another alternative that relies on no bus stuff, and let people decide for themselves which method to use. No, there isn't ubus in devuan afaik.04:24
Jookiai mean but as a developer what do i do if i need a bus?04:25
frltlxyou would use dbus, write your own, or maybe fork ubus I guess04:25
rwpWhat is it that you are doing that you need the desktop-bus?04:25
Jookiarwp: dbus or a bus in general?04:25
rwpYou are telling us that you need dbus so I am just asking what it is that you are doing that needs it.04:26
Jookiano, i'm saying that i need a bus04:26
Jookiadbus is the only bus on linux i guess04:26
rwp"Hop on the bus, Gus.  You don't need to discuss much.  Just drop off the key, Lee.  And get yourself free." --Paul Simon04:27
rwpSo...  You need to change the default system font and everything needs to change to that font immediately?  That uses dbus.04:28
Jookiai'm not asking what uses dbus04:28
rwpSo...  You need to issue a kernel shutdown command?  That uses the dbus.04:28
frltlxin desktop distros yes, but if it's ipc you're looking for.. there might be alternatives to a bus, e.g what others have told me is that xorg itself has it's own form of ipc. But generally, if you do need it then dbus is the only thing you'll find in most desktop distros, embedded has it's own solutions because dbus is largenin comparison04:28
rwpIf you are just looking for IPC then there are lots of IPC frameworks.04:28
Jookiai'm looking for a shared bus with RPC04:29
rwpI have always just used Berkeley sockets myself.04:29
Jookianot sockets/etc04:29
Jookialike ubus04:29
Jookiaor dbus04:29
Jookiabut available in things like devuan or idk04:29
Jookiaforget it i guess04:29
frltlxhm I think there was one that fell out of popularity a long time ago, but right now.. if you need dbus, then just use dbus, it's supported everywhere04:30
Jookiayeah i guess i'll do that04:30
rwpThe problem for me is that I have always written all of my own code that I use.  And so I haven't used other frameworks for these things.04:30
rwphttps://en.wikipedia.org/wiki/Inter-process_communication04:31
Jookiayes, i know about IPC04:31
Jookiad-bus is a form of high-level IPC04:31
golinuxThis is kind of wandering from Devuan support towards offtopic04:32
Jookiayeah i'll drop it04:32
golinuxMaybe better on that channel?04:32
Jookiai was just wondering because the official website talks about it04:32
golinux#devuan-offtopic04:32
frltlxright you are, debianfork then?04:32
Jookiahow do you install openrc?04:32
golinuxNo.04:33
Jookiaok.04:33
golinuxDev1galaxy forum has discussions.04:33
frltlxapt-get install openrc is enough, if you're familiar with openrc04:33
golinuxBoth runit and openrc are available during install04:33
golinuxsysvinit is the default.04:35
Jookiado packagers add scripts for runit/openrc?04:35
golinuxThere are some here and there04:35
golinuxsysvinit scripts work with openrc04:36
Jookiawhat do i do if a package doesn't support the system i'm using?04:36
Jookiaah04:36
golinuxIt's a wip.04:36
frltlxsee also package init-system-helpers .. iirc that's the wrapper that takes of situation where you have no native runit script, it will just use a sysvinit script to do the same04:37
golinuxCheck out the forum and mail lists for discussions.04:37
golinuxalso for sysvinit scripts removed by Debian developers04:37
Jookiaso as a developer my best bet would be to ship sysv scripts?04:38
golinuxinit-system-helpers ^^^04:38
Jookiaor should i just like write a script for each init system04:38
golinuxThat question is above my pay grade04:39
Jookiathat's ok you don't have to answer04:39
golinuxPoke around our resources and you will find good info.04:39
golinuxEven irc channels are logged04:40
frltlxOnly if there's an interest for that with core developers I think, better to ask them. Also, to try things out for yourself in a vm. But runit support I suspect improved in chimaera04:40
Jookiathis channel isn't logged04:40
golinuxhttp://reisenweber.net/irclogs/libera/_devuan/04:42
golinuxJookia: ^^^04:42
Jookiauh, that violates libera tos i think?04:42
Jookiamaybe you need to update the topic04:42
Jookiaoh derp. i missede the log in topic04:43
golinux:)04:43
Jookiadoes devuan ship libsystemd?04:45
frltlxyes, but it's not mandatory. See libelogind, installing will remove libsystemd.04:46
Jookiaah04:46
Jookiaoh hey, that provides sd-bus04:48
golinuxThere a cosmetic instances of systemd files on devuan that are harmless https://dev1galaxy.org/viewtopic.php?id=192504:48
Jookiai don't mind that04:49
golinuxhttps://pkgmaster.devuan.org/bannedpackages.txt04:49
Jookialibuuid is banned?04:50
golinuxIf it's on the list,yes.04:50
frltlxelogind has the only difference it has no init features at all04:50
golinuxIf there are any packages on that list that you would like to try to fork, have at it.04:51
fsmithredtime04:52
golinuxout?04:52
Jookianah i'm just a developer04:52
Jookiai'm trying to scope out whether it's worth doing a non-systemd port of my stuff04:53
fsmithredrunit and openrc in debian/devuan use sysvinit scripts04:53
fsmithredyou can add run scripts for runit. I assume you can do the same for openrc, but I don't know anything about that.04:53
frltlxSupporting different compile time options is not a bad idea, generally in user circles that  aren't systemd users, choice is welcomed04:54
frltlxanyway, up to you of course.04:55
Jookiayeah, so i'm researchign and going to try non-systemd stuff04:55
frltlxah, you should look at elogind then and consolekit04:57
Jookiais consolekit still used?04:57
fsmithredJookia, there are runit live-iso and no-dbus isos on this page: https://get.refracta.org/files/experimental/04:57
Jookiafsmithred: ah cool. i'm not too interested in no-dbus, i think no-dbus is kinda weird04:57
frltlxin some use cases it might be, for where user is looking only for simple setup04:58
fsmithredit is weird. I just did it to see how much I could install.04:58
fsmithredgot a pretty full desktop like that.04:58
Jookiabut i'm more pragmatic than anything04:58
fsmithredthe runit iso has good info. Sample run scripts with links to sources. Some of them are implemented.04:59
frltlxpeople who use openbox or lxde can choose between them for example, and afaik the bsd's use consolekit in place of any systemd implementations04:59
Jookiai don't really use or case about bsds04:59
frltlxwell hah, in the case someone uses syvinit + elogind, you might consider supporting that setup.. or with runit, whatever. Main difference would be that systemd is not used as init, but elogind (fork of systemd) provides login/session.05:01
Jookiawhat logging sytsems does devuan use?05:05
frltlxI think standard is rsyslog05:06
frltlxbut you can install others05:07
Jookiaah05:07
frltlxanything supported in debian basically, unless it has hard dependency on a package in the banned list05:07
Jookiaare there journald API providers/wrappers?05:07
frltlxhm, I'm not sure about that since I've never used systemd05:08
golinuxDoesn't sound familiar.05:08
Jookiaah ok05:09
golinuxWe have enough to keep up with init issues.05:09
frltlxelogind is like a gutted systemd providing only login/session support, all additional functions stripped05:09
fsmithredapt policy libuuid105:42
fsmithredInstalled: 2.36.1-8+devuan105:43
fsmithredalready been done ^^^05:43
fsmithredJookia, ^^^05:43
furrymcgeeis dbus required for pulseaudio?16:09
Jookiai think so16:10
Belgacem1958Why Neovim 0.6 is still not included in the repos?18:15
Jookiait's 0.2.16 in bullseye18:18
golinuxJookia: https://pkginfo.devuan.org/cgi-bin/policy-query.html?c=package&q=neovim&x=submit18:23
Jookiaoh, devuan updates packages?18:24
golinuxPackages should never be used directly from Debian.  All packages that will not break Devuan are merged into Devyan.18:24
golinuxDevuan, of course.  Just waking up . . .18:25
golinuxHere's how it's done: https://git.devuan.org/devuan/amprolla318:26
Jookiayikes, gitea18:27
golinuxAnd "Amprolla Magic" from the 2019 Devuan Conference.  It has been improved since then but that's the general idea https://dev1galaxy.org/viewtopic.php?id=319218:27
golinuxYeah, we dumped gitlab last year18:28
Jookiawhy?18:31
golinuxBloat18:33
Jookialol18:33
Jookiai use github for my stuff and gitbucket sometimes18:34
used____On Beowulf, after updating kernel to latest, I can't put an unused (s)ata disk to sleep with hdparm, it is not formatted and fuser says nothing is in use on it.19:12
used____It worked before, /sbin/hdparm -y put it to sleep.19:12
used____Has anyone else seen such a thing?19:13
used____ps -aux|grep sda shows: [jbd2/sda7-8] and others - this is the disk which should sleep.19:13
used____How do I tell the kernel to leave it alone?19:14
used____I see a lot of relevant answers/questions on duck19:14
used____Does jbd2 @kernel inspect disks itself, and decide to monitor / journal them? sda used to have ext3 partitions on it, the mbr partitions were deleted, but the signatures were not wiped, they are still on disk. Will jbd2 scan disks at boot time and do no good by minding partitions which are no longer in use?19:16
dreamerohai. where do I report missing systemd fixings?19:29
dreamerapparently xdg-desktop-portal package still requires it :)19:29
golinuxIt seems to be available in Devuan https://pkginfo.devuan.org/cgi-bin/policy-query.html?c=package&q=xdg-desktop-portal&x=submit19:34
dreameryes, and it require systemd19:34
dreamerrequires*19:34
dreamersee it contains systemd service files19:36
dreamerso it's not possible to have it start on devuan systems currently :)19:36
golinuxIf it did, I would be on pour banned packages list https://pkgmaster.devuan.org/bannedpackages.txt19:36
dreamersee content: https://pkginfo.devuan.org/cgi-bin/package-query.html?c=package&q=xdg-desktop-portal=1.12.1-119:36
dreamerI could run it manually (testing Cardinal that requires it for native filebrowsers)19:37
dreamerbut that's highly inconvenient of course. just thought to report it somewhere that this package isn't fully integrated yet and still has systemd requirements in it19:38
golinuxIf it needs forking, feel free to adopt the responsibility.  :)19:39
dreamerI want to know where I report this19:39
dreamerbut apparently we just leave this stuff around? seems weird to me.19:39
golinuxhttps://bugs.devuan.org/19:39
golinuxCheck first that it is not an upstream bug at Debian19:40
dreamerdebian uses systemd, so no19:40
golinuxHave you checked bugs there for that package?19:40
dreamerthe bug is that it requires systemd19:40
dreamerwhich devuan doesn't use. I don't see what debian has to do with this?19:40
golinuxBecause most often people report bugs that are upstream19:41
golinuxNot going to argue.19:41
dreamersorry I don't follow your reasoning here :)19:41
dreamerfor any general bugs, sure19:42
dreamerin this case it's very specifically about a devuan package that needs systemd, which is out of place19:42
golinuxReport it to the above url.  Then step up to fix it or see if someone else does19:42
dreamerI'll have a look at creating the bug report tomorrow when I'm near that machine again. thnx19:42
dreamerI have no clue how this stuff is normally done, so I can't fix it19:42
dreamerotherwise I would've done that and created a pull request instead19:43
golinuxOK.  Thanks for the heads up.19:43
dreamernp19:43
used____Ok, re: jbd2 and disk: upgrading kernel swapped sda sdb disks, lucky I'm on UUID partitions.19:56
used____Kernel I am running now is 'Linux beowulf 4.19.0-18-amd64 #1 SMP Debian 4.19.208-1 (2021-09-29) x86_64'19:57
used____-17 did not swap the disks. When will these swapping games cease? It is dangerous for any system not running UUID partitions.19:58
used____The previous kernel was 'vmlinuz-4.19.0-17-amd64'19:58
used____Searching duck for 'linux kernel vmlinuz-4.19.0-18-amd64 swaps ata sata disks' yields some similar questions but nothing definite.20:00
used____Anyone still running ATA and SATA both like I am, seen this new poison? Disk unit names swapped when upgrading from -17 to -18 kernel?20:00
used____This is a scary complex udev based solution for the above. Anything simpler for Devuan? Constant disk names, without UUID, persistent across kernel upgrades and reboots? https://microdevsys.com/wp/linux-persistent-naming-of-sata-devices-through-udev-rules/20:02
fsmithredI thought disks got named according to when they spun up, so the order could change on any boot.20:32
used____Uhh who came up with that?! sda sdb etc should (hah) be fixed per interface and subunit. sda = ide0 sdb = ide1 etc; later with sata, more letters came up, sde sdf sdg ... ; yes it gets ugly but PLEASE don't change the order on the same machine?!20:56
fsmithredbeen reading messages that say "use uuid because disks might not come up in the same order every time" for almost 10 years21:11
fsmithredand or use rootdelay21:12
used____You have a point. It just did not happen to me until now. And this machine is 10 years old.21:19
fsmithredI prefer labels to uuid. Something that has meaning.21:29
gnarfaceused____: ide and scsi drivers are merged now, and there's udev, so things did change21:35
gnarfaceused____: however, you might still be able to control boot order better by going into your bios and taking all the other drives out of the boot list completely (seems to improve the order reliability for me on an Asus board anyway)21:35
gnarfacebut really you need to use uuid's because sata busses just aren't as physically constrained as IDE ones were21:37
gnarfaceyou don't want to gamble on it only getting the boot order right 80% of the time if the other 20% is gonna happen when you're not around21:37
gnarfacethey're not hard to use, they all list in /dev/disk/by-uuid/ and they only change if you resize or reformat (or manually change them)21:39
used____I already use UUID excepting for unused / offline disk sleeping. I don't think hdparm supports uuid ...21:40
gnarfacei don't know if it does you should still be able to use the /dev/disk/by-uuid/ symlinks in your scripts21:41
used____I am not sure if I can trust that when /etc/rc.local runs21:41
gnarfacerc.local runs absolutely last, after all the init.d scripts21:41
used____Since I need to stop a disk not a partition related thing21:42
gnarfaceno uuids should be changing that late in the boot21:42
used____^the disk unit sda etc does not have a link in /dev/disk/by-uuid/21:42
used____hdparm needs a unit id, not a partition id.21:42
gnarfaceit would need some kernel-recognizable partition table i guess21:42
used____unit id, like sda sdb.21:42
gnarfacethat's a problem... does it even have a partition table?21:43
used____An empty one now21:43
gnarfacewould one big partition get in the way?21:44
used____Yes.21:44
used____Even if, hdparm does not know about partitions21:44
gnarfaceyea but i can still imagine a simple script that can pull the device node from the substring of the device partition that the /dev/disk/by-uuid/ symlinks are pointing to21:45
gnarfaceit would be ugly but reliable21:45
used____Hm.21:45
gnarfacewhat is hdparm doing in your boot up scripts anyway?  maybe if i understand the problem better i can advise a better solution21:45
used____It is putting an offline disk to sleep early.21:46
gnarfaceoh, damn i'd just unplug the thing21:46
gnarfacecan hdparm work by disk labels?21:46
gnarfacei wonder if the bios or udev could just sleep it instead21:47
used____hdparm knows only raw device names, nothing else. Nothing in bios.21:47
gnarfaceudev should be able to easily recognize a drive by model and manufacturer id, and it can call shell scripts21:47
gnarfacethat gets to be a problem if you have a dozen of the same model drive but as long as they're different it should work21:48
used____One can do ugly thing using hdparm -i and drive hardware serial numbers too21:50
gnarfacei've got no other ideas21:50
used____sudo hdparm -i /dev/sda|grep -i SerialNo -- works as advertised21:50
used____Simpler than udev21:51
used____The tuple model-fw-serial in that grep output is amply enough to id the disk.21:51
gnarfaceyea but the nice thing about doing it in udev is it'll be smart enough to fire again automatically21:53
gnarfacenot that that's likely to be a big issue for non-removable drives21:53
gnarfaceit can matter in certain cases21:53
used____Yes, but not now. I hate how badly udev rules are documented. It is cleverly done, but the docs are horror.21:53
used____Hey let's pretend it's badly implemented crippled Prolog...21:54
gnarfacei didn't find that to be the problem as much as just that half the time they don't follow their own docs21:54
used____q.e.d.21:54
gnarfaceanyway for what it's worth, devuan has eudev21:55
used____Aren't the rules the same?21:55
gnarfacethey should be identical but it's possible you've experienced udev bugs that are no longer present in eudev21:56
gnarfacefdsafdsafds21:56
gnarfaceweird, my text changed colors there, not sure what i did21:56
used____ctrl-1 etc21:56
used____mirc colors21:57
gnarfacehmmm21:57
gnarfacemust have, i guess21:57
used____c21:57
used____ctrl-v yields reverse etc21:58
used____green21:58
gnarfaceneat21:59
used____That's `ctrl-c 3 green`21:59
gnarfacei'm not sure they're mapped the same here21:59
used____bold21:59
used____They better be, just italics give trouble in normal terminals, since ^I is TAB21:59
used____bold is of course ctrl-B22:00
gnarfaceyea, the formatting works for me22:01
gnarfacejust not the colors22:01
used____if on irssi, need to turn on colors22:01
used____ /set hide-colors off22:01
used____ /set hide_colors off22:01
used____fixed - -> _22:02
used____https://stackoverflow.com/questions/22429108/how-can-i-write-colored-text-to-irc-channel-with-irssi see more22:02
used____this is getting off topic, stopping the noise22:02
golinuxNo kidding22:18
golinuxAnd thanks.22:18

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!