1

Temat: Attendedsysupgrade / Nadzorowany Sysupgrade

Panowie,
popełniłem artykuł na temat automatycznego aktualizowania obrazów OpenWrt z wykorzystaniem mechanizmu Attendedsysupgrade / Nadzorowany Sysupgrade: https://eko.one.pl/?p=openwrt-attendedsysupgrade

Aktualizacja przy pomocy tego mechanizmu w OpenWrt polega na zbudowaniu obrazów online, pobraniu takiego custom obrazu i aktualizacji. Mechanizm ten nie jest standardowo instalowany w openwrt, ale jak już niektórzy wiedzą wszedł standardowo w skład luci i będzie obecny w przyszłych wydaniach OpenWrt. Mechanizm jest o tyle ciekawy że można podać listę pakietów i z nich powstaną obrazy.

Ja nie mam aż takich zasobów sprzętowych żeby pozwolić na swoim serwerku na budowanie obrazów online. Więc zbudowałem sobie swój własny serwer tego mechanizmu który nie buduje obrazów z imagebuildera a dostarcza gotowe obrazy które są już przeze mnie zrobione - czyli gotowce.

Na chwilę obecną mój mechanizm dostarcza tylko obrazów luci (nawet jak się z konsoli zaktualizuje) i tylko wydania 22.03-SNAPSHOT. Dostarczanie obrazów czystych bez luci pewnie da się dodać w przyszłości, zobaczymy czy będzie to potrzebne. Jak ktoś chce to może przetestować czy to w ogóle działa, choć pewne zaraz znajdzie się masa błędów jako że to moja implementacja.

EDIT: obecnie mechanizm dostarcza zarówno obrazów luci jak i czystych - w zależności od tego czy w pierwotnym obrazie były pakiety od luci czy nie. Możliwe jest wykorzystanie mechanizmu zarówno dla obrazów bazujących na OpenWrt 22.03-snapshot jak i 23.05-snapshot, a zapewne i późniejszych wydań jak będą dostępne.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

2

Odp: Attendedsysupgrade / Nadzorowany Sysupgrade

Czy ten mechanizm zaktualizuje system z EXTRoot ?

rozumiem że po aktualizacji, konfiguracje pakietów pozostaną na swoim miejscu ale  może brakowac conajwyżej pakietów?

Zyxel T56 /|\ TL Wdr3600 /|\ TL wdr4300 /|\ MiR 3g /|\ ubi Rocket, nb, pb, ns, loco /|\ Netgear R6220 /|\ xiaomi AC2350 /|\ TL c6 v3 /|\ TL 1043 v1 v2 v4 /|\ miniPC Router dn2800mt , N100 /|\  TL DS-P-7001-04/08 /|\ TL SX3016F i kupa innego sprzętu

3

Odp: Attendedsysupgrade / Nadzorowany Sysupgrade

Tak samo jak ręczna konfiguracja - zaktualizuje system we flash, jeżeli zostawisz konfigi to zostawi je. Ale na extroocie nie zaktualizuje pakietów ani ustawień i sam musisz się zatroszczyć o ich aktualizację.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

4

Odp: Attendedsysupgrade / Nadzorowany Sysupgrade

Takie pytanie mi się nasuwa, przy Linksys E8450 jest obraz "zwykły" oraz "UBI"
Sysupgrade wyszuka odpowiedni obraz jaki jest zainstalowany?

GL.iNet GL-MT6000 + 2x AP_Xiaomi AX3000T

5

Odp: Attendedsysupgrade / Nadzorowany Sysupgrade

Pojęcia nie mam. Zainstaluj i sprawdź co weźmie sobie, przed upgrade wyświetla się okno z informacjami jaki obraz będzie chciał robić.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

6

Odp: Attendedsysupgrade / Nadzorowany Sysupgrade

Cezary: dobry ruch z dodaniem eko.one.pl do Attendedsysupgrade

Niestety nie działa mi to prawidłowo:

 auc/0.3.1-1
Server:    https://dl.eko.one.pl
Running:   22.03-SNAPSHOT r19812-5c0c01d226 on ramips/mt7621 (netgear,r6220)
Available: 22.03-SNAPSHOT r19862-615dbec223
Requesting package lists...
Bad message (77) 

7 (edytowany przez Cezary 2022-11-16 21:48:25)

Odp: Attendedsysupgrade / Nadzorowany Sysupgrade

Zaraz sprawdzę co go boli.

EDIT: poprawiłem proces, niepotrzebnie zostawiłem jedną rzecz.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

8

Odp: Attendedsysupgrade / Nadzorowany Sysupgrade

Z APka

auc/0.3.1-1
Server:    [url]https://dl.eko.one.pl[/url]
Running:   22.03-SNAPSHOT r19812-5c0c01d226 on ipq40xx/generic (asus,rt-ac58u)
Available: 22.03-SNAPSHOT r19862-615dbec223
Requesting package lists...
installed package luci-i18n-ksmbd-pl cannot be found in remote list!
installed package kmod-usb-storage cannot be found in remote list!
installed package luci-proto-wireguard cannot be found in remote list!
installed package libuci-lua cannot be found in remote list!
installed package iwinfo cannot be found in remote list!
installed package liblucihttp cannot be found in remote list!
installed package kmod-lib-textsearch cannot be found in remote list!
installed package cgi-io cannot be found in remote list!
installed package luci-app-adblock cannot be found in remote list!
installed package luci-lib-base cannot be found in remote list!
installed package comgt-directip cannot be found in remote list!
installed package luci-i18n-adblock-pl cannot be found in remote list!
installed package luci-i18n-wol-pl cannot be found in remote list!
installed package mkf2fs cannot be found in remote list!
installed package kmod-crypto-gf128 cannot be found in remote list!
installed package opkg cannot be found in remote list!
installed package kmod-usb-core cannot be found in remote list!
installed package luci-app-opkg cannot be found in remote list!
installed package kmod-usb-storage-uas cannot be found in remote list!
installed package ubus cannot be found in remote list!
installed package iw cannot be found in remote list!
installed package kmod-crypto-manager cannot be found in remote list!
installed package libuci cannot be found in remote list!
installed package rpcd cannot be found in remote list!
installed package busybox cannot be found in remote list!
installed package ddns-scripts-services cannot be found in remote list!
installed package kmod-crypto-ctr cannot be found in remote list!
installed package kmod-usb-net-qmi-wwan cannot be found in remote list!
installed package luci-lib-ip cannot be found in remote list!
installed package kmod-nft-fib cannot be found in remote list!
installed package chat cannot be found in remote list!
installed package kmod-nfnetlink cannot be found in remote list!
installed package libubus-lua cannot be found in remote list!
installed package kmod-crypto-hash cannot be found in remote list!
installed package kmod-nf-reject6 cannot be found in remote list!
installed package kmod-tun cannot be found in remote list!
installed package kmod-fs-ksmbd cannot be found in remote list!
installed package kmod-crypto-aead cannot be found in remote list!
installed package libiwinfo-lua cannot be found in remote list!
installed package kmod-usb-wdm cannot be found in remote list!
installed package swconfig cannot be found in remote list!
installed package kmod-usb-dwc3 cannot be found in remote list!
installed package kmod-crypto-md4 cannot be found in remote list!
installed package luci-mod-system cannot be found in remote list!
installed package kmod-crypto-md5 cannot be found in remote list!
installed package openssl-util cannot be found in remote list!
installed package kmod-usb-serial-sierrawireless cannot be found in remote list!
installed package kmod-nf-flow cannot be found in remote list!
installed package libnl-tiny cannot be found in remote list!
installed package kmod-usb-printer cannot be found in remote list!
installed package libustream-wolfssl cannot be found in remote list!
installed package kmod-lib-crc-ccitt cannot be found in remote list!
installed package liblzo cannot be found in remote list!
installed package getrandom cannot be found in remote list!
installed package ucode-mod-ubus cannot be found in remote list!
installed package kmod-asn1-decoder cannot be found in remote list!
installed package luci-theme-bootstrap cannot be found in remote list!
installed package libusb-1.0 cannot be found in remote list!
installed package kmod-pppoe cannot be found in remote list!
installed package libuuid cannot be found in remote list!
installed package kmod-usb-net-huawei-cdc-ncm cannot be found in remote list!
installed package kmod-pppox cannot be found in remote list!
installed package wpad-basic-wolfssl cannot be found in remote list!
installed package luci-app-wireguard cannot be found in remote list!
installed package kmod-nf-reject cannot be found in remote list!
installed package procd-ujail cannot be found in remote list!
installed package kmod-lib-crc16 cannot be found in remote list!
installed package base-files cannot be found in remote list!
installed package kmod-nf-nat cannot be found in remote list!
installed package relayd cannot be found in remote list!
installed package kmod-crypto-crc32c cannot be found in remote list!
installed package ucode-mod-uci cannot be found in remote list!
installed package luci-i18n-wireguard-en cannot be found in remote list!
installed package libwolfssl cannot be found in remote list!
installed package coreutils cannot be found in remote list!
installed package netifd cannot be found in remote list!
installed package kmod-usb-dwc3-qcom cannot be found in remote list!
installed package libf2fs cannot be found in remote list!
installed package ddns-scripts cannot be found in remote list!
installed package luci-i18n-opkg-pl cannot be found in remote list!
installed package libubus cannot be found in remote list!
installed package firewall4 cannot be found in remote list!
installed package luci-i18n-base-pl cannot be found in remote list!
installed package adblock cannot be found in remote list!
installed package uboot-envtools cannot be found in remote list!
installed package dnsmasq cannot be found in remote list!
installed package kmod-mii cannot be found in remote list!
installed package kmod-usb-xhci-hcd cannot be found in remote list!
installed package procd cannot be found in remote list!
installed package kmod-oid-registry cannot be found in remote list!
installed package kmod-crypto-hmac cannot be found in remote list!
installed package kmod-crypto-sha256 cannot be found in remote list!
installed package ubusd cannot be found in remote list!
installed package kmod-nf-nat6 cannot be found in remote list!
installed package px5g-wolfssl cannot be found in remote list!
installed package kmod-usb-serial-qualcomm cannot be found in remote list!
installed package p910nd cannot be found in remote list!
installed package kmod-lib-crc32c cannot be found in remote list!
installed package etherwake cannot be found in remote list!
installed package luci-i18n-wifischedule-en cannot be found in remote list!
installed package kmod-usb-ehci cannot be found in remote list!
installed package luci-mod-status cannot be found in remote list!
installed package ddns-scripts-freedns cannot be found in remote list!
installed package ksmbd-server cannot be found in remote list!
installed package luci-i18n-dashboard-pl cannot be found in remote list!
installed package kmod-crypto-sha512 cannot be found in remote list!
installed package kmod-usb-net-cdc-mbim cannot be found in remote list!
installed package ddns-scripts-noip cannot be found in remote list!
installed package kmod-usb-net-rndis cannot be found in remote list!
installed package libjson-script cannot be found in remote list!
installed package block-mount cannot be found in remote list!
installed package kmod-crypto-seqiv cannot be found in remote list!
installed package kmod-fs-vfat cannot be found in remote list!
installed package kmod-nft-nat cannot be found in remote list!
installed package luci-app-ddns cannot be found in remote list!
installed package kmod-crypto-lib-chacha20poly1305 cannot be found in remote list!
installed package kmod-usb2 cannot be found in remote list!
installed package kmod-usb-serial-option cannot be found in remote list!
installed package kmod-usb3 cannot be found in remote list!
installed package kmod-crypto-lib-poly1305 cannot be found in remote list!
installed package kmod-ath10k-ct-smallbuffers cannot be found in remote list!
installed package luci-i18n-commands-en cannot be found in remote list!
installed package comgt cannot be found in remote list!
installed package luci-app-firewall cannot be found in remote list!
installed package luci-lib-ipkg cannot be found in remote list!
installed package libblkid cannot be found in remote list!
installed package libmnl cannot be found in remote list!
installed package jansson cannot be found in remote list!
installed package kmod-usb-net-sierrawireless cannot be found in remote list!
installed package ubi-utils cannot be found in remote list!
installed package odhcp6c cannot be found in remote list!
installed package fstools cannot be found in remote list!
installed package uclient-fetch cannot be found in remote list!
installed package kmod-udptunnel4 cannot be found in remote list!
installed package kmod-udptunnel6 cannot be found in remote list!
installed package kmod-crypto-ghash cannot be found in remote list!
installed package uci cannot be found in remote list!
installed package lua cannot be found in remote list!
installed package ucode-mod-fs cannot be found in remote list!
installed package kmod-fs-ext4 cannot be found in remote list!
installed package ath10k-firmware-qca4019-ct cannot be found in remote list!
installed package luci-ssl cannot be found in remote list!
installed package dropbear cannot be found in remote list!
installed package luci-app-ledtrig-usbport cannot be found in remote list!
installed package luci-i18n-ddns-en cannot be found in remote list!
installed package kmod-crypto-kpp cannot be found in remote list!
installed package luci-proto-3g cannot be found in remote list!
installed package curl cannot be found in remote list!
installed package kmod-hwmon-core cannot be found in remote list!
installed package kmod-nls-utf8 cannot be found in remote list!
installed package kmod-usb-serial-wwan cannot be found in remote list!
installed package libnftnl cannot be found in remote list!
installed package luci-compat cannot be found in remote list!
installed package rpcd-mod-file cannot be found in remote list!
installed package kmod-nls-cp437 cannot be found in remote list!
installed package mtd cannot be found in remote list!
installed package odhcpd-ipv6only cannot be found in remote list!
installed package ath10k-board-qca4019 cannot be found in remote list!
installed package coreutils-sort cannot be found in remote list!
installed package procd-seccomp cannot be found in remote list!
installed package luci-proto-qmi cannot be found in remote list!
installed package libiwinfo-data cannot be found in remote list!
installed package usb-modeswitch cannot be found in remote list!
installed package ucode cannot be found in remote list!
installed package rpcd-mod-luci cannot be found in remote list!
installed package kmod-crypto-ccm cannot be found in remote list!
installed package kmod-nf-log cannot be found in remote list!
installed package urandom-seed cannot be found in remote list!
installed package wsdd2 cannot be found in remote list!
installed package luci-proto-ppp cannot be found in remote list!
installed package libcomerr cannot be found in remote list!
installed package luci-mod-dashboard cannot be found in remote list!
installed package luci-mod-admin-full cannot be found in remote list!
installed package ppp cannot be found in remote list!
installed package luci-base cannot be found in remote list!
installed package luci-app-commands cannot be found in remote list!
installed package kmod-leds-gpio cannot be found in remote list!
installed package luci-i18n-firewall-en cannot be found in remote list!
installed package kmod-gpio-button-hotplug cannot be found in remote list!
installed package logd cannot be found in remote list!
installed package kmod-nf-log6 cannot be found in remote list!
installed package kmod-usb-net cannot be found in remote list!
installed package ekooneplstat cannot be found in remote list!
installed package luci-i18n-wireguard-pl cannot be found in remote list!
installed package luci-app-ekooneplstat cannot be found in remote list!
installed package kmod-wireguard cannot be found in remote list!
installed package kmod-mac80211 cannot be found in remote list!
installed package wireguard-tools cannot be found in remote list!
installed package libopenssl cannot be found in remote list!
installed package ddns-scripts-cloudflare cannot be found in remote list!
installed package kmod-usb-serial cannot be found in remote list!
installed package libblobmsg-json cannot be found in remote list!
installed package kmod-usb-net-cdc-ncm cannot be found in remote list!
installed package luci-proto-ipv6 cannot be found in remote list!
installed package luci-i18n-p910nd-en cannot be found in remote list!
installed package kmod-crypto-ecb cannot be found in remote list!
installed package openwrt-keyring cannot be found in remote list!
installed package luci-i18n-ksmbd-en cannot be found in remote list!
installed package libnl-core cannot be found in remote list!
installed package ntfs-3g cannot be found in remote list!
installed package kmod-crypto-des cannot be found in remote list!
installed package libext2fs cannot be found in remote list!
installed package kmod-fuse cannot be found in remote list!
installed package luci-i18n-wifischedule-pl cannot be found in remote list!
installed package kmod-nf-nathelper-extra cannot be found in remote list!
installed package jshn cannot be found in remote list!
installed package nftables-json cannot be found in remote list!
installed package luci-i18n-adblock-en cannot be found in remote list!
installed package luci-i18n-wol-en cannot be found in remote list!
installed package e2fsprogs cannot be found in remote list!
installed package wifischedule cannot be found in remote list!
installed package kmod-usb-acm cannot be found in remote list!
installed package luci-app-wifischedule cannot be found in remote list!
installed package attendedsysupgrade-common cannot be found in remote list!
installed package kmod-nft-offload cannot be found in remote list!
installed package kmod-ppp cannot be found in remote list!
installed package libopenssl-conf cannot be found in remote list!
installed package kmod-fs-f2fs cannot be found in remote list!
installed package luci-app-wol cannot be found in remote list!
installed package kmod-crypto-null cannot be found in remote list!
installed package luci-i18n-commands-pl cannot be found in remote list!
installed package libiwinfo cannot be found in remote list!
installed package libss cannot be found in remote list!
installed package libjson-c cannot be found in remote list!
installed package luci-proto-relay cannot be found in remote list!
installed package auc cannot be found in remote list!
installed package uhttpd cannot be found in remote list!
installed package uqmi cannot be found in remote list!
installed package kmod-nf-conntrack cannot be found in remote list!
installed package libcurl cannot be found in remote list!
installed package usign cannot be found in remote list!
installed package ksmbd-utils cannot be found in remote list!
installed package liblua cannot be found in remote list!
installed package kmod-crypto-gcm cannot be found in remote list!
installed package f2fsck cannot be found in remote list!
installed package luci-lib-nixio cannot be found in remote list!
installed package comgt-ncm cannot be found in remote list!
installed package libubox cannot be found in remote list!
installed package rpcd-mod-rpcsys cannot be found in remote list!
installed package ca-bundle cannot be found in remote list!
installed package libuclient cannot be found in remote list!
installed package liblucihttp-lua cannot be found in remote list!
installed package kmod-nls-iso8859-1 cannot be found in remote list!
installed package luci-i18n-ddns-pl cannot be found in remote list!
installed package kmod-crypto-cmac cannot be found in remote list!
installed package umbim cannot be found in remote list!
installed package luci-lib-jsonc cannot be found in remote list!
installed package luci-app-p910nd cannot be found in remote list!
installed package luci cannot be found in remote list!
installed package kmod-crypto-rng cannot be found in remote list!
installed package kmod-nf-conntrack6 cannot be found in remote list!
installed package libgcc cannot be found in remote list!
installed package kmod-usb-ledtrig-usbport cannot be found in remote list!
installed package libucode cannot be found in remote list!
installed package luci-app-ksmbd cannot be found in remote list!
installed package sysinfo cannot be found in remote list!
installed package kmod-ath cannot be found in remote list!
installed package kmod-crypto-lib-curve25519 cannot be found in remote list!
installed package ubox cannot be found in remote list!
installed package kmod-crypto-crc32 cannot be found in remote list!
installed package kmod-crypto-lib-chacha20 cannot be found in remote list!
installed package rpcd-mod-iwinfo cannot be found in remote list!
installed package luci-mod-network cannot be found in remote list!
installed package kmod-nft-core cannot be found in remote list!
installed package luci-i18n-opkg-en cannot be found in remote list!
installed package luci-i18n-base-en cannot be found in remote list!
installed package luci-i18n-firewall-pl cannot be found in remote list!
installed package kmod-nls-base cannot be found in remote list!
installed package uhttpd-mod-ubus cannot be found in remote list!
installed package fwtool cannot be found in remote list!
installed package wwan cannot be found in remote list!
installed package jsonfilter cannot be found in remote list!
installed package hostapd-common cannot be found in remote list!
installed package ddns-scripts-digitalocean cannot be found in remote list!
installed package kmod-usb-net-cdc-ether cannot be found in remote list!
installed package wireless-regdb cannot be found in remote list!
installed package kmod-scsi-core cannot be found in remote list!
installed package urngd cannot be found in remote list!
installed package kmod-slhc cannot be found in remote list!
installed package kmod-cfg80211 cannot be found in remote list!
installed package rpcd-mod-rrdns cannot be found in remote list!
installed package luci-i18n-p910nd-pl cannot be found in remote list!
installed package ppp-mod-pppoe cannot be found in remote list!
installed package luci-i18n-dashboard-en cannot be found in remote list!
installed package libnghttp2 cannot be found in remote list!
installed package libnl-genl cannot be found in remote list!
installed package luci-proto-ncm cannot be found in remote list!
Are you sure you want to continue the upgrade process? [N/y] y
Bad message (74)

9

Odp: Attendedsysupgrade / Nadzorowany Sysupgrade

Muszę jakieś ipq wyciągnąć z pudła. Jutro Ci odpowiem.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

10

Odp: Attendedsysupgrade / Nadzorowany Sysupgrade

O ile w/w komunikat poprawiłem to chyba jest problem po stronie auc/attendedsysupgrade. On wyszukuje tylko obrazy typu combined/combined-efi/sysupgrade, a tu jest obraz np. nand-sysupgrade czy nand-factory i się gubi na tym. Tym samym nie jest możliwe wykonanie aktualizacji takich routerów.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

11

Odp: Attendedsysupgrade / Nadzorowany Sysupgrade

Na R6220 faktycznie poszło

12

Odp: Attendedsysupgrade / Nadzorowany Sysupgrade

Zgłosiłem to na https://github.com/openwrt/packages/issues/19920 , bo na ich obrazie z ich serwerem też się takie cuda dzieją.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

13

Odp: Attendedsysupgrade / Nadzorowany Sysupgrade

@jaketherake próbuj teraz. Sztucznie pozmieniałem sobie nazwy w procesie.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

14 (edytowany przez jaketherake 2022-11-17 13:43:43)

Odp: Attendedsysupgrade / Nadzorowany Sysupgrade

Are you sure you want to continue the upgrade process? [N/y] y

Downloading image from https://dl.eko.one.pl/store/luci/openwrt-22.03/ipq40xx/generic/luci-22.03-snapshot-r19862-615dbec223-ipq40xx-generic-asus_rt-ac58u-squashfs-sysupgrade.bin
Writing to 'luci-22.03-snapshot-r19862-615dbec223-ipq40xx-generic-asus_rt-ac58u-squashfs-sysupgrade.bin'
image verification succeeded
invoking sysupgrade

Działa, dzięki!

Czy auc i wersja na Luci będzie już teraz w Twojej kompilacji na stałe?

15

Odp: Attendedsysupgrade / Nadzorowany Sysupgrade

No i to jest sprawa dyskusyjna - nie wiem jeszcze.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

16 (edytowany przez Królik 2023-08-21 09:32:41)

Odp: Attendedsysupgrade / Nadzorowany Sysupgrade

Cezary, a jest szansa by Twoje Attended sysupgrade samo pobierało wcześniej doinstalowane paczki po aktualizacji systemu?

Mam i używam: Fujitsu Futro S720, Netgear R6220, Unielec U7621-06, TP-Linki 1043 V1, V2, Linksysy EA7500v2, AeroHive AP350, Linksys EA8500, ZTE MF286d.
Mam: D-Linki DWR-921, DWR-118, DWR-116, TP-Link WDR-4900 v1, Checkpoint L-50, Linksysy 1900ACS, LB-Link BL-W1200,

17

Odp: Attendedsysupgrade / Nadzorowany Sysupgrade

Nie. Nie mam systemu budowania obrazów z imagebuildera, więc nie mam jak tego zrobić.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

18

Odp: Attendedsysupgrade / Nadzorowany Sysupgrade

Cezary napisał/a:

Nie. Nie mam systemu budowania obrazów z imagebuildera, więc nie mam jak tego zrobić.

Bardziej myślałem o zapisywaniu listy paczek w backupie i potem skrypcie, który by po zbudowaniu systemu je doinstalowywał.

Mam i używam: Fujitsu Futro S720, Netgear R6220, Unielec U7621-06, TP-Linki 1043 V1, V2, Linksysy EA7500v2, AeroHive AP350, Linksys EA8500, ZTE MF286d.
Mam: D-Linki DWR-921, DWR-118, DWR-116, TP-Link WDR-4900 v1, Checkpoint L-50, Linksysy 1900ACS, LB-Link BL-W1200,

19

Odp: Attendedsysupgrade / Nadzorowany Sysupgrade

To dobry pomysł. Męczące jest za każdym razem instalowanie ich ręcznie. Co prawda nie mam tego jakoś dużo ale zawsze trzeba pamiętać.

GL.iNet GL-MT6000 + 2x AP_Xiaomi AX3000T

20 (edytowany przez Cezary 2024-11-17 21:51:59)

Odp: Attendedsysupgrade / Nadzorowany Sysupgrade

Więc tak na szybko: mogę do obrazów dodawać dwa skrypty: backuppkgslist.sh oraz restorepkgslist.sh.
Pierwszy skrypt robi listę pakietów zainstalowanych w systemie przez użytkownika (bazując na czasie instalacji pakietów), robi z tego listę, umieszcza plik w /etc/backup/list-user-installed-packages.txt oraz dodaje go do listy pików zachowywanych podczas aktualizacji.
Jeżeli teraz zrobimy sysupgrade z zachowaniem konfiguracji to ta lista pakietów zachowa  się w backupie i zostanie po aktualizacji przywrócona w systemie plików. Oczywiście można sobie ten plik skopiować na bok, wykonać aktualizację bez zachowania konfiguracji i później przywrócić ten plik.

Po aktualizacji podłączamy router do intenetu i raz wołamy skrypt restorepkgslist.sh. On sprawdzi czy istnieje plik z listą, robi opkg update i instaluje pakiet po pakiecie to do jest na liście. I na końcu znów robi taką listę od nowa jak by coś w zależnościach się zmieniło.

Skrypt  backuppkgslist.sh  trzeba wywołać raz ręcznie przed wykonaniem aktualizacji lub można sobie to wrzucić np. co tydzień do crona.

Skrypt nie wymusza instalacji pakietów. Jeżeli już był pakiet o takiej nazwie zainstalowany to nie robi force i nie instaluje go na siłę ponownie.
Skrypt tak po prostu instaluje pakiety z listy. Jeżeli będzie jakiś konflikt to skrypt nic z tym nie zrobi, po prostu instalacja pakietu skończy się błędem.

Źródło pakietu: mój github

Jakieś pomysły racjonalizatorskie?

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

21

Odp: Attendedsysupgrade / Nadzorowany Sysupgrade

Ma to sens aczkolwiek nie dało by się tego jeszcze bardziej uprościć. Np. aby dodawał się wpis do pliku o zrobionej aktualizacji i po ponownym uruchomieniu z automatu instalował pakiety?

GL.iNet GL-MT6000 + 2x AP_Xiaomi AX3000T

22

Odp: Attendedsysupgrade / Nadzorowany Sysupgrade

Mogę tak zrobić żeby po pierwszym podłączeniu do internetu sam instalował pakiety. Ale kompletnie nie uważam tego za dobry i odpowiedzialny pomysł żeby taki automat działał. Niech użytkownik sam decyduje i ma świadomość co robi.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

23

Odp: Attendedsysupgrade / Nadzorowany Sysupgrade

Ok a może inaczej. Dołożenie zakładki do interfejsu graficznego z dwoma opcjami.
1. Backup
2. Przywrócenie

Można wówczas wywołać skrypt z terminala jak i z www.

GL.iNet GL-MT6000 + 2x AP_Xiaomi AX3000T

24

Odp: Attendedsysupgrade / Nadzorowany Sysupgrade

Taa, ale to nie w najbliższych buildach. Nie zdążę tego zaimplementować i sprawdzić na weekendowe buildy.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

25

Odp: Attendedsysupgrade / Nadzorowany Sysupgrade

Jasne, na spokojnie.

GL.iNet GL-MT6000 + 2x AP_Xiaomi AX3000T