Project

General

Profile

Actions

Administration #315

open

Administration #292: Migration auf Babel

Reparieren: sysupgrade von b.a.t.m.a.n auf babel mit "keep config"

Added by Scyte over 4 years ago. Updated over 3 years ago.

Status:
In Progress
Priority:
Bald
Assignee:
Category:
Bugs
Start date:
Due date:
% Done:

90%

Estimated time:

Description

Aktuell:
Nach einem Neustart kam bei meinem wdr3600 kein Wifi hoch.
Ohne "keep config" und mit firststart über ssh und neuen Daten ging es.
Das sollte im Feld nicht passieren.


Files

batman2babel_confs.tar.gz (268 KB) batman2babel_confs.tar.gz Scyte, 2020-01-24 09:42 PM

Related issues 2 (1 open1 closed)

Related to FFMD - Administration #303: Firmware bereitstellenNewfreifunk

Actions
Related to FFMD - Administration #520: Treffen am 2020-06-12Done

Actions
Actions #1

Updated by Scyte about 4 years ago

Hier mal der /etc Ordner nach Upgrade auf babel und mit factory babel

Actions #2

Updated by Kwasir about 4 years ago

Scyte wrote:<<
`
Hier mal der /etc Ordner nach Upgrade auf babel und mit factory babel
_
diff "babel upgrade/etc/hosts" "babel factory/etc/hosts"

Factory

::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

diff "babel upgrade/etc/inittab" "babel factory/etc/inittab"
Upgrade

::askconsole:/bin/ash --login
Factory
::askconsole:/usr/libexec/login.sh

diff "babel upgrade/etc/opkg.conf" "babel factory/etc/opkg.conf"
Upgrade

option check_signature 1
Factory
option check_signature

diff "babel upgrade/etc/profile" "babel factory/etc/profile"
Upgrade

[ -e /tmp/.failsafe ] && export FAILSAFE=1

Factory
[ -e /tmp/.failsafe ] && cat /etc/banner.failsafe
Upgrade
[ -n "$FAILSAFE" ] && cat /etc/banner.failsafe

fgrep -sq '/ overlay ro,' /proc/mounts && {
echo 'Your JFFS2-partition seems full and overlayfs is mounted read-only.'
echo 'Please try to remove files from /overlay/upper/... and reboot!'
}
Factory
export PATH=/usr/sbin:/usr/bin:/sbin:/bin
Upgrade
export PATH="/usr/sbin:/usr/bin:/sbin:/bin"
case "$TERM" in
xterm*|rxvt*)
export PS1='[\e]0;\u@\h: \w\a]'$PS1
;;
esac

alias ll='ls -alF --color=auto'

Factory
[ -x /usr/bin/arp ] || arp() { cat /proc/net/arp; }
Upgrade
[ -x /usr/bin/arp -o -x /sbin/arp ] || arp() { cat /proc/net/arp; }
}

if ( grep -qs 'root::' /etc/shadow && \
[ -z "$FAILSAFE" ] )
then
cat << EOF
=== WARNING! =====================================
There is no root password defined on this device!
Use the "passwd" command to set up a new password


EOF
fi

service() {
[ -f "/etc/init.d/$1" ] || {
echo "service "'"'"$1"'"'" not found, the following services are available:"
ls "/etc/init.d"
return 1
}
/etc/init.d/$@
diff "babel upgrade/etc/protocols" "babel factory/etc/protocols"
Factory
dccp 33 DCCP # Datagram Congestion Control Protocol [RFC4340]

diff "babel upgrade/etc/services" "babel factory/etc/services"
Upgrade

sunrpc 111/tcp
sunrpc 111/udp
Factory
sunrpc 111/tcp rpcbind
sunrpc 111/udp rpcbind
submission 587/tcp
submission 587/udp
`

Actions #3

Updated by Scyte about 4 years ago

Wir müssen mal genau festlegen welche Daten erhalten bleiben sollen und welche dringend überschrieben werden müssen.

Actions #4

Updated by Scyte about 4 years ago

  • Category set to Bugs
Actions #5

Updated by Kwasir about 4 years ago

  • Status changed from New to In Progress

Beim Sysupgrade von Batman => Babel
wird der Channel von 1 nicht auf 5 geändert
=> kein Meshing möglich zwischen neuaufgesetzten Router und aktualisierten
=> Routen werden nicht übernommen
=> Firewall einstellungen werden nicht gesetzt
=> services werden nicht korrekt gestartet

Problem konnte auf einem WR841N & WR1043N nachgestellt werden

=> Aus der alten Konfig sollten nur folgende Punkte übernommen werden
-> Name des Knoten
-> Kontakt
-> Lokation
-> Bandbreiten Begrenzung
-> SSH Keys
-> Mesh Optionen
-> Optionen aus

Actions #6

Updated by Kwasir about 4 years ago

Actions #7

Updated by tux about 4 years ago

  • Assignee set to freifunk
Actions #8

Updated by tux about 4 years ago

  • Parent task set to #292
Actions #9

Updated by tux almost 4 years ago

  • Assignee changed from freifunk to Oszilloskop
Actions #10

Updated by Oszilloskop almost 4 years ago

  • Category changed from Bugs to Router
  • % Done changed from 0 to 70

Es gibt nun das MD-Package 'cleanup-gluon-config'.
Es ist hier zu finden: https://github.com/FreifunkMD/ffmd-packages/tree/master/ffmd/ffmd-cleanup-gluon-config

Das Package ließt die wichtigsten vom User konfigurierte UCI-Parameter aus, macht das OverlayFS platt, und stellt die zwischengespeicherten UCI-Parameter wieder her (mehr dazu in der README.md vom Package).

Der Knoten wird mehrfach automatisch neu gestartet. Je nach Hardware dauert der Vorgang +/- 5 Minuten.

Das Package ist als Übergangs-Package anzusehen. Es sollte nur kurze Zeit in einer angebotenen Firmware verweilen. Alle umgestellten Knoten sollten sich sofortig einen neue Firmware ohne enthaltenes Package ziehen.

Falls vorhanden, so werden folgende Einstellungen übernommen:

  • /etc/rc.local
  • /etc/dropbear/*
  • Hostname
    • system.@system[0].hostname
    • system.@system[0].pretty_hostname
  • Nodeinfo
    • gluon-node-info.@owner[0].contact
    • gluon-node-info.@location[0].share_location
    • gluon-node-info.@location[0].latitude
    • gluon-node-info.@location[0].longitude
    • gluon-node-info.@location[0].altitude
  • Static IPv4 & DHCP
    • network.wan.proto
    • network.wan.ipaddr
    • network.wan.netmask
    • network.wan.gateway
  • Static DNS
    • gluon-wan-dnsmasq.@static[0].server
  • VPN bandwidth limitation
    • gluon.mesh_vpn.limit_egress
    • gluon.mesh_vpn.limit_ingress
    • gluon.mesh_vpn.limit_enabled
  • VPN
    • fastd.mesh_vpn.enabledd <- Wird natürlich WireGuard werden/sein
  • MoL / MoW
    • network.mesh_wan.disabled
    • network.mesh_lan.disabled
  • PoE
    • system.gpio_switch_poe_passthrough.value
  • Wifi
    • gluon.wireless.outdoor
    • gluon-core.@wireless[0].preserve_channels
    • wireless.radio0.channel
    • wireless.radio1.channel
    • wireless.radio0.disabled
    • wireless.radio1.disabled
    • wireless.client_radio0.disabled
    • wireless.client_radio1.disabled
    • wireless.mesh_radio0.disabled
    • wireless.mesh_radio1.disabled
Actions #11

Updated by Oszilloskop almost 4 years ago

  • Category changed from Router to Bugs
Actions #12

Updated by tux almost 4 years ago

Actions #13

Updated by Oszilloskop over 3 years ago

  • % Done changed from 70 to 90

Zu 90% erledigt.
Die restlichen 10% sollten mit einem Test mit realer MD-Firmware im Feldeinsatz abgedeckt werden können.

Actions

Also available in: Atom PDF