<SiFuh_>
zorz_: Becareful. I have never tested it.
<zorz_>
let me see what it is
<zorz_>
SiFuh_: wanna lough... yesterday as finished the runnit... it needs just a bit tweeking in logging. you know what i said... somehow sysvinit with the bsd rc scripts of crux feels more compact ... fuck it
<zorz_>
hahahahahah
<zorz_>
i will get the corrected version of rc wait
<SiFuh_>
zorz_: I also looked at LVM and tweaked it with an exit 1 on failure. But not sure if it wil be kept.
<zorz_>
i will test it for you
<SiFuh_>
zorz_: Well we can only hope it works. I wrote it on OpenBSD :-P
<zorz_>
look i dont know if its jaeger... but in 3.8 the init system scripts are okay... i liked it
<zorz_>
ofcourse always place for improvement.
<zorz_>
yeah i make a system rescue usb and i will try it in 30 minutes
<SiFuh_>
zorz_: Yeah, but some functions need to be tested on failure and crashed systems. So the test would be a big job
<zorz_>
mine now... everything works great except i get this file locking of lvm on boot and shudown. but is nothing
<zorz_>
you dont have a ready made file... to place in place?
<zorz_>
instead of putting me to patch?
<SiFuh_>
Oh, I think I may know something about that. I fixed it for myself in 3.5. I'd have to think about it and see if I can recall that particular thing
<SiFuh_>
Fucking zorz. Hold on
<zorz_>
i just like to do mv /etc/rc /etc/rc.bak and place the new rc in /etc
<zorz_>
so incase of fucked up i boot with systemrescue and revert the rc.
<farkuhar>
hahaha: the first time I ran the tar command, it warned that the files being unpacked had a timestamp 16000 s in the future. What's up with SiFuh's clock?
<SiFuh_>
farkuhar: Ahh the crux repo where I had done that is off.
<SiFuh_>
ppetrov^: No farkuhar wants to review it more. He wants to tweak some other beerman code I think.
zorz_ has quit [Quit: leaving]
<SiFuh_>
ppetrov^: And jaeger and jue will need to review it too. Besides, beerman is the one that got all shitty about me telling him the code was bad. So he told me to write it.
<SiFuh_>
ppetrov^: There was a funny thing that happened though. I should wait until zorz_ returns
zorz_ has joined #crux-social
<zorz_>
fuckin hell it logs the shutdown but not the boot
<zorz_>
hahahaha
<SiFuh_>
ppetrov^: zorz_: remiliascarlet: I pasted a patch into ChatGPT removing beerman's stuff. Some long winded response from it. But this line caused me to laugh "You clarified error handling, especially around mount and fsck — the old code had deeply nested printf "$(BOLD "$(RED)")" insanity."
<SiFuh_>
And this coming from ChatGPT and ChatGPT sucks at writing code. Hahaha
<zorz_>
this chinese shit is superior than chatgpt
<SiFuh_>
You do not have permission to access this resource. Please contact your administrator for assistance.
<zorz_>
lmarena.ai and choose qwen
<zorz_>
lmarena.ai and choose direct chat / qwen
<SiFuh_>
This implementation enhances system diagnostics while maintaining script reliability and configurability.
<SiFuh_>
The script remains fully functional without color. The only difference is visual style—all logic, error handling, and operations proceed unchanged. This ensures backward compatibility and flexibility for diverse environments.
<zorz_>
deepseek?
<SiFuh_>
No that was qwen thing
<SiFuh_>
qwen3-235b-a22b
<zorz_>
the deepseek
<SiFuh_>
The changes make the script more modular and maintainable while adding color support in a configurable way. The error handling is also more consistent and informative.
<SiFuh_>
zorz_: Neither of these two said anything negative or tried to give me a better approach to the code.
<SiFuh_>
They just merely made a comment
ppetrov^ has quit [Quit: Leaving]
<SiFuh_>
zorz_: Do you have any issues unloading LVM when shutdown?
<zorz_>
wait SiFuh_ i change something important in rc
<zorz_>
moment
<SiFuh_>
I have some ideas I think for fix the LVM boot and shutdown. But I need to create a computer with LVM to full test it.
<zorz_>
i added this... because otherwise you dont get boot messages in crux. in /etc/rc after /run
<zorz_>
if [ -x /sbin/bootlogd ] && [ "$BOOTLOGD" = "true" ]; then printinfo "\nFinish bootlogd..." /sbin/start-stop-daemon --stop --pidfile /var/run/bootlogd.pid
<zorz_>
fi
<zorz_>
now... i have the bootmessages
<SiFuh_>
We discuss that later. Make a patch or something. I am focusing on the LVM issue at the moment
<SiFuh_>
zorz_: Nice
<zorz_>
thank you sifuh
<zorz_>
wait i reboot
<SiFuh_>
I was looking at it today, and realised it has been a long awaited problem from the past for fix. Because they are just trying to disengage and mount and not wait.
<SiFuh_>
I will introduce a debug feature where I can control C during shutdown for test this fucking LVM
<zorz_>
yes
<SiFuh_>
zorz_: I wonder why CRUX chose bash instead of POSIX SH for their rc scripts.
<zorz_>
# Save boot messages
<zorz_>
/bin/dmesg > /var/log/boot
<zorz_>
this is wrong
<SiFuh_>
zorz_: Also, did you look at rc.single? beerman sources rc.function but nothing in the script seems to use it.
<zorz_>
rc script should be sh
<zorz_>
no i did not
<zorz_>
i will
<SiFuh_>
It's like he loads useless crap before shutdown.
<zorz_>
sysklog is only kernel works... but then you need bootmessages which is bootlogd.. now we have it.
<SiFuh_>
Maybe he was preoccupied and missed it?
<SiFuh_>
What about something like this /etc/rc.shutdown | tee /var/log/shutdown.log
<zorz_>
this boy tries to do so many things.... as the say whoever hunts two rabbits it catches none
<zorz_>
you can do the same with bootlogd
<SiFuh_>
I really don't know what he was doing. I think he was just going above and beyond what he is actually capable of doing only to fail.
<zorz_>
start it fisrt thing in shutdown
<zorz_>
and it logs all shutdown
<SiFuh_>
At least he tried. But the fact he was so abrasive about it when pointed out how shit it was. That's just lacking hubris.
<zorz_>
hubris... i like your greek :P
<SiFuh_>
Heh
<SiFuh_>
Wanton then
<zorz_>
heh
<SiFuh_>
Hmm jaeger isn't online
<SiFuh_>
Wanted to ask him a question if I can remove these awesome single lined statements to something more readable.
<zorz_>
i wrote this nice clean bootlogd script in etc/rc.d pu it in rc.conf and i relised that logs only shutdown... because it starts to late to log the boot heh
<zorz_>
so i put it in /etc/rc.
<SiFuh_>
zorz_: Yeah I figured
<zorz_>
but the same line i can put it in shutdown... because i shut it after the boot.
<zorz_>
so you get and shutdown logs.
<SiFuh_>
I will be inserting shutdown logging anyway for debug purposes
<SiFuh_>
So I might leave it uncommented
<SiFuh_>
I am thinking to add some commented out debug options into the rc script.
<SiFuh_>
Not really for the user but for real developers that can activate it when tweaking shit.
<zorz_>
SiFuh_: for rc.shutdown
<zorz_>
if [ "$BOOTLOGD" = "true" ]; then printinfo "\nLogging shutdown to /var/log/boot.log..." echo "System shutdown started at $(date)" >> /var/log/boot.log
<zorz_>
fi
<SiFuh_>
zorz_: No, I have other ways.
<zorz_>
cause shutdown stops the console... bootlog cant capture everything
<zorz_>
oooo great
<zorz_>
do something, is crucial :P
<SiFuh_>
zorz_: Like I said. I need to seriously look at this LVM stuff first. It is priority. Inserting logging is pretty easy
<zorz_>
coool
<SiFuh_>
zorz_: There needs to be a heavy indepth conversation every time someone fscks with the rc script. All developers should be on it. This script is no joke
<SiFuh_>
If one person can just come in and screw around with it without anyone reviewing it, is just 100% wrong.
<zorz_>
SiFuh_: i send 1000 euro to kraken and i received $1,130.45 what Trump is doing all good with him ?
<SiFuh_>
zorz_: Ahh but here is knowledge that you probably don't know
<SiFuh_>
China Quietly Walks Back A Quarter Of US Import Tariffs Amid Economic Crunch
<zorz_>
fuckin hell i missed episodes
<zorz_>
give me sometime to send this money on-chain
<SiFuh_>
CCP is like that. Speaks very loudly to show they are strong. Then silently withdraws when losing
<zorz_>
SiFuh_: but in general the /etc/rc is okay now
<zorz_>
the init scripts daemons without the LSB are robust
<SiFuh_>
zorz_: Thanks, but I still have things that annoy me
<SiFuh_>
zorz_: Did you check out ansi.colors file yet?
<SiFuh_>
Way more options now.
<zorz_>
no not yet... now i will,, i am getting ready tonight with capital to short this month