Ah, yes, that's right.
Hm. There is a very positive testimony from roadie dir2lz4 anyone?. I'm following that thread for more.
Ah, yes, that's right.
Hm. There is a very positive testimony from roadie dir2lz4 anyone?. I'm following that thread for more.
I have removed this patch in preparation for update to v2.1. Also I've patched my script, as follows
Code: Select all
#the following comparison is lexicographical so for example 1.8.10<1.8.9
#if [[ $latest > $current ]]; then
if [[ $(printf '%s\n' "$current" "$latest" | sort -V | tail -n1) != "$current" ]]; then
-- so will add any /etc lines very economically only for the files I actually need to be persistent right there. For example those gtk settings should more properly live in my home directory, and are just temporary modified in the /etc.#/etc
/etc/gtk*
/etc/changes-exit.conf
Code: Select all
root@porteus:~# update_porteux
2.1 > 2.0
Getting latest ISO
porteux-v2.1-curren 100%[===================>] 478.00M 14.2MB/s in 41s
Updating base
Updating other modules
updating 05-devel in optional
devel-current.zip 100%[===================>] 177.87M 11.0MB/s in 19s
Archive: /mnt/sda5/porteux/backup2.0/download/devel-current.zip
extracting: /mnt/sda5/porteux/optional/05-devel-current-20250530.xzm
updating 0050-multilib in optional
multilib-current.zi 100%[===================>] 123.05M 13.2MB/s in 8.6s
Archive: /mnt/sda5/porteux/backup2.0/download/multilib-current.zip
extracting: /mnt/sda5/porteux/optional/0050-multilib-lite-current-20250530.xzm
updating 08-nvidia in optional
nvidia-driver-curre 100%[===================>] 444.92M 15.1MB/s in 34s
Archive: /mnt/sda5/porteux/backup2.0/download/nvidia-driver-current.zip
extracting: /mnt/sda5/porteux/optional/08-nvidia-575.57.08-k.6.15.0-porteux-x86_64.xzm
Old files are saved in
/mnt/sda5/porteux/backup2.0:
base
download
initrd.zst
optional
vmlinuz
/mnt/sda5/porteux/backup2.0/base:
000-kernel-6.14.xzm
001-core-current-20250401.xzm
002-gui-current-20250401.xzm
002-xtra-current-20250401.xzm
003-lxde-0.10.1-current-20250401.xzm
/mnt/sda5/porteux/backup2.0/download:
devel-current.zip
multilib-current.zip
nvidia-driver-current.zip
porteux-v2.1-current-lxde-0.11.1-x86_64.iso
/mnt/sda5/porteux/backup2.0/optional:
0050-multilib-lite-current-20250401.xzm
05-devel-current-20250401.xzm
08-nvidia-570.133.07-k.6.14.0-porteux-x86_64.xzm
Would you like to delete the entire /mnt/sda5/porteux/backup2.0? [y/N]
root@porteus:~#
Thanks, I changed that spelling.
Code: Select all
cat /etc/os-release
Ideally my updater shouldn't even look that deep for the installed version number. Why don't we have a file in the /porteux folder, for example, version.txt with the installed iso filename in the top line? Parsing that line my script will also automatically deduce the DE and channel:
Code: Select all
/porteux/version.txt:
porteux-v2.1.1-current-lxqt-2.2.0-x86_64