updates

kake26 2024-05-24 19:42:08 -05:00
parent 946645e16c
commit 3f9cb48d76
Signed by: kake26
GPG key ID: E8AFC43591876B4D
3 changed files with 32 additions and 1 deletions

@ -1,3 +1,22 @@
### Notes ### Notes
General notes. # Notes May 23 2024
Well, I was omitting restore.lib.bash. Not required, but can make some things allot faster. I fixed that and attempted to address some potential CP issues. My tests finish allot faster now that restore.lib is part of the package. I feel silly for not having looked at that, but ok. I'm adding code to verify that /etc gets replaced properly. From may testing it didn't and it caused me some minor problems when using it on a VPS.
# Notes May 21 2024
So allot more testing and work has gotten this thing running well. Debian based is the best supported. Though Arch did work according to my tests. I will need do testing for OpenWRT at a more intensive level though. Either way most of my VM based tests worked. A few minor tweaks such as putting apt into noninteractive. My copy of /etc in the end was a -R not a -Rf, this has been changed even for apt.
# Notes Feb 22 2024
I spent all day testing this with VMs and found a problem that would prevent my code from running properly. Turns out if the system has no manually downloaded and installed packages, the line below causes awk to hang waiting for input.
apt list --installed | grep ',local]' | awk -F/ '{print $1}' >> $tmpdir/exclusions
Now I tried to use timeout and well that didn't work. After many hours I figured lets toss the line
at chatgpt maybe it comes up with something I overlooked and it did. Simply check for output first, wow I was adding all the crazy debug code to all parts of this thing and overlooked that. It suggested a fix which wasn't elegant, but appears to work. Hopefully, this resolves a few issues. Next up maybe some tweaks to exclusions to speed the process up.
# Notes Oct 29 2023
I've been at it adding a few tweaks here or there. Trying to add a good system for exclusions to make things more protable. While the current version works great on say VPS running the same base image, its not so good on different ones. This is due to some packages perhaps having different names like kernel images, modules and headers. This also includes things installed from a single package file you downloaded that isn't in a repo. Technically not bugs, but I want more flexibility.

3
Plans.md Normal file

@ -0,0 +1,3 @@
# Plans
To add flatpak support for making it more usable for desktops. Also at one point create a custom replacement for makeself thats specific to this script.

9
Scripts.md Normal file

@ -0,0 +1,9 @@
### Scripts
* check.bash - checks if makeself is installed. Can be installed via normal methods or via this script
* os_probe.bash - checks if we are on a debian or arch based distro via looking for apt or pacman
* restore.*.bash - these are scripts specific to debian or arch
* bootstrap.wrt.ash - Specifically for OpenWRT, made specifically to be compatable with bustbox's ash shell. It will check for and if needed install bash before running the rest.
* syssetup.bash - The main program
* test.bash - Some file I was using to test something, you can ignore it
* verify.bash - Verification componet for making sure /etc gets put back