libera/#devuan/ Wednesday, 2021-03-24

xrogaanThe issue with e2fsprogs is solved, problem was "oops, pushed the wrong button."03:55
tuxd3vxrogaan, that problem sometimes reapear, specially after some months we forget about a solution for something, and we trigger that error again, nice you found the way!03:57
xrogaanno me, fool! The maintainer.03:58
xrogaanhttps://bugs.debian.org/cgi-bin/bugreport.cgi?bug=985296#1003:58
xrogaan:)03:58
tuxd3vxrogaan, I was speaking in a general manner, it hapens with everybody, sooner or later( me included ).04:01
xrogaanIt's alright, that's what I implied too.04:04
* wdq Off to Work , see ya later !!07:25
pitrissHello guys. Please is there any way in SYSV init how I can call action when halt is triggered?14:34
gnarfacepitriss: symlink with name starting with "K" instead of "S" in /etc/rc?.d/14:39
gnarfacethere's also these if you want to get fancier: https://wiki.debian.org/LSBInitScripts14:40
gnarfacethere's already a /etc/init.d/halt though maybe it already does what you want14:41
debdoghalt is runlevel 0, so it'd be rc0.d. there's a README inside14:41
pitrissgnarface: yeah I want it to be as much as possible fool proof. As I am running devuan on Pi4 and halt can't do proper poweroff of Pi4. But Argon One case have this handled by some GPIO magic and I would like to call one binary before it does halt.14:42
gnarfaceshould be a easy modification14:43
pitrissAnd I want to help dev of that case driver to implement support for devuan. And yeah I think I will need to modify default halt script, add some check if its run on Pi, and if yes, call my binary14:43
pitrissAnd to not mess with packaging maybe would be good to use alternatives to provide my script instead of default one14:44
gnarfacei'm sure people would appreciate that14:44
ShorTie"modify default halt script" sounds messy14:45
gnarfaceeh, probably just one line towards the end and a comment...14:45
ShorTiedoesn't matter, think of owner ship and moding it14:46
pitrissThats the plan.. three lines mod.. and not pretend that it is original one.14:47
gnarfacefor my own purposes i'd probably put it in a separate script too but i couldn't really say it doesn't belong in the halt script itself if it were to be actually integrated into the distro.  seems logical enough.14:47
pitrissI would use alternatives to provide it so it will be 100% reversible action14:47
pitrissAnd thats why I am asking here, because I want to provide it to others. So I want to do this in proper way if there is any14:49
gnarfacewell, the proper way would be to try to get it into Debian first in normal situations, but this one might be an exception...14:50
ShorTieproper way would be your own script you add to runlevel 0 i'd think14:50
gnarfacewell, either way it's not my call14:51
gnarfacepitriss: maybe ask over in #devuan-arm, but it's a slower channel14:51
pitrissI already did.:)14:52
gnarfaceoh, alright14:52
pitrissAnd I don't think we will get debian integration of Pi things anytime soon.. Especially in SYSVinit case ...14:53
gnarfaceyea probably not14:54
pitrissSo waiting for debian is not an option in this case. :) So I will do it somehow, probably I'll modify halt init script and put it in place via alternatives as it seems cleanest way. Thanks for opinions/advices:)14:55
fsmithredyou could make a package that uses dpkg-divert to use a modified halt script and add a switch to activate or deactivate it in /etc/default/whatever14:55
pitrissfsmithred: hmm14:55
pitrisssounds interesting.14:56
fsmithredI prefer editing a plain one-liner text file in /etc/default over messing with update-alternatives14:56
gnarfaceseems like a good idea14:58
fsmithredhere's an example: https://git.devuan.org/devuan/cryptsetup-modified-functions14:59
fsmithredit just replaces one file.14:59
fsmithredThat one does not use /etc/default. The only way to deactivate it would be to remove the package.14:59
pitrissfsmithred: thanks for advice.. It seems as cleaner solution.14:59
pitrissfsmithred: yes thats reasonable because my mod is needed to proper poweroff so Pi4 can be again started with a button on the case15:00
fsmithredone more thing I can think of that might be a problem for some people - if you use runit, it replaces the shutdown scripts with its own15:01
pitrissOk..15:04
fsmithredoh, I was trying to find what runit did with the originals, but those get removed as part of sysvinit-core.15:07
fsmithredsbin/shutdown gets replaced with a symlink to /lib/runit/shutdown15:08
pitrissfsmithred: I will be not modifying those so I may be OK.. thanks for your advice and research:)15:43
sadsnorkIs there anybody from the mirror team around?  I sent an email to mirrors@devuan.org a couple days ago and was wondering what the usual turnaround time is on replies.  Or is there a better place to ask?21:21

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