21
Release Announcements / Re: Linux Lite 7.0 RC1 Released
« Last post by sqwuade on May 14, 2024, 01:21:41 AM »I got it! I had to sacrifice the zram option to make it work but it works!
The problem was that the zram tweak has some code that isn't recognized by the new bash version 5.2.21 (I think...) anyway the PIPESTATUS(0) array was being populated with the error code 127 (Apparently that's a pretty common error/exit code) when it was expecting an output of 0. Once I started hacking through the code and eliminating the different options one by one - the error code of 127 kept reoccurring until I eliminated the zram option. Once I commented out those lines PIPESTATUS(0) received the expected output of 0 and the rest of the routine could then continue and complete normally.
Rock-n-Roll!
Here's the version that works:
https://digitalhemi.com/files/apps/Linux/LL7-RC1/lite-tweaks
You may need to set permissions appropriately (755?) after moving it to /usr/bin
I'm still experimenting around with the zram statement to see if I can figure out why it's not working. I suspect there is something different in the latest version of bash that doesn't like the code. I'm pretty sure it's this line that is the issue and bash can't process it so kicks out the 127 exit/error code:
if [ -z "$(dpkg -l | grep -G '^ii' | grep zram-config)" ]; then
I'll update if I make any progress on getting the zram tweak working.
Cheers, Scott
I also fixed a small text error that I found:
changed to:
The problem was that the zram tweak has some code that isn't recognized by the new bash version 5.2.21 (I think...) anyway the PIPESTATUS(0) array was being populated with the error code 127 (Apparently that's a pretty common error/exit code) when it was expecting an output of 0. Once I started hacking through the code and eliminating the different options one by one - the error code of 127 kept reoccurring until I eliminated the zram option. Once I commented out those lines PIPESTATUS(0) received the expected output of 0 and the rest of the routine could then continue and complete normally.
Rock-n-Roll!
Here's the version that works:
https://digitalhemi.com/files/apps/Linux/LL7-RC1/lite-tweaks
You may need to set permissions appropriately (755?) after moving it to /usr/bin
I'm still experimenting around with the zram statement to see if I can figure out why it's not working. I suspect there is something different in the latest version of bash that doesn't like the code. I'm pretty sure it's this line that is the issue and bash can't process it so kicks out the 127 exit/error code:
if [ -z "$(dpkg -l | grep -G '^ii' | grep zram-config)" ]; then
I'll update if I make any progress on getting the zram tweak working.
Cheers, Scott
I also fixed a small text error that I found:
changed to: