xrogaan | The issue with e2fsprogs is solved, problem was "oops, pushed the wrong button." | 03:55 |
---|---|---|
tuxd3v | xrogaan, 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 |
xrogaan | no me, fool! The maintainer. | 03:58 |
xrogaan | https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=985296#10 | 03:58 |
xrogaan | :) | 03:58 |
tuxd3v | xrogaan, I was speaking in a general manner, it hapens with everybody, sooner or later( me included ). | 04:01 |
xrogaan | It's alright, that's what I implied too. | 04:04 |
* wdq Off to Work , see ya later !! | 07:25 | |
pitriss | Hello guys. Please is there any way in SYSV init how I can call action when halt is triggered? | 14:34 |
gnarface | pitriss: symlink with name starting with "K" instead of "S" in /etc/rc?.d/ | 14:39 |
gnarface | there's also these if you want to get fancier: https://wiki.debian.org/LSBInitScripts | 14:40 |
gnarface | there's already a /etc/init.d/halt though maybe it already does what you want | 14:41 |
debdog | halt is runlevel 0, so it'd be rc0.d. there's a README inside | 14:41 |
pitriss | gnarface: 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 |
gnarface | should be a easy modification | 14:43 |
pitriss | And 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 binary | 14:43 |
pitriss | And to not mess with packaging maybe would be good to use alternatives to provide my script instead of default one | 14:44 |
gnarface | i'm sure people would appreciate that | 14:44 |
ShorTie | "modify default halt script" sounds messy | 14:45 |
gnarface | eh, probably just one line towards the end and a comment... | 14:45 |
ShorTie | doesn't matter, think of owner ship and moding it | 14:46 |
pitriss | Thats the plan.. three lines mod.. and not pretend that it is original one. | 14:47 |
gnarface | for 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 |
pitriss | I would use alternatives to provide it so it will be 100% reversible action | 14:47 |
pitriss | And 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 any | 14:49 |
gnarface | well, 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 |
ShorTie | proper way would be your own script you add to runlevel 0 i'd think | 14:50 |
gnarface | well, either way it's not my call | 14:51 |
gnarface | pitriss: maybe ask over in #devuan-arm, but it's a slower channel | 14:51 |
pitriss | I already did.:) | 14:52 |
gnarface | oh, alright | 14:52 |
pitriss | And I don't think we will get debian integration of Pi things anytime soon.. Especially in SYSVinit case ... | 14:53 |
gnarface | yea probably not | 14:54 |
pitriss | So 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 |
fsmithred | you 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/whatever | 14:55 |
pitriss | fsmithred: hmm | 14:55 |
pitriss | sounds interesting. | 14:56 |
fsmithred | I prefer editing a plain one-liner text file in /etc/default over messing with update-alternatives | 14:56 |
gnarface | seems like a good idea | 14:58 |
fsmithred | here's an example: https://git.devuan.org/devuan/cryptsetup-modified-functions | 14:59 |
fsmithred | it just replaces one file. | 14:59 |
fsmithred | That one does not use /etc/default. The only way to deactivate it would be to remove the package. | 14:59 |
pitriss | fsmithred: thanks for advice.. It seems as cleaner solution. | 14:59 |
pitriss | fsmithred: yes thats reasonable because my mod is needed to proper poweroff so Pi4 can be again started with a button on the case | 15:00 |
fsmithred | one 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 own | 15:01 |
pitriss | Ok.. | 15:04 |
fsmithred | oh, I was trying to find what runit did with the originals, but those get removed as part of sysvinit-core. | 15:07 |
fsmithred | sbin/shutdown gets replaced with a symlink to /lib/runit/shutdown | 15:08 |
pitriss | fsmithred: I will be not modifying those so I may be OK.. thanks for your advice and research:) | 15:43 |
sadsnork | Is 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/!