Re: sysupgrade is broken
> On 21.02.2024 20:52, e9hack wrote: > > root@WLAN-DSL9:~# sysupgrade -b /var/config-backup.tar.gz > > Wed Feb 21 20:48:30 CET 2024 upgrade: Saving config files... > > tar: var/dhcp.leases: No such file or directory > > tar: var/lib/logrotate.status: No such file or directory > > tar: var/log/logrotate.log: No such file or directory > > tar: error exit delayed from previous errors > > Failed to create the configuration backup. > > I can reproduce that. The problem is caused by: > mount -t overlay overlay -o > lowerdir=/,upperdir="$tmp/upper",workdir="$tmp/work" "$dir" > > Apparently lowerdir=/ doesn't work as I expected. In $dir I can see > squashfs + overlay changes but I don't see mounts. > > root@OpenWrt:/# ls -l $dir/tmp/ > root@OpenWrt:/# ls -l $dir/rom/ > -rw-r--r--1 root root 116 Feb 19 12:53 note > root@OpenWrt:/# ls -l $dir/dev/ > crw---1 root root5, 1 Feb 19 12:53 console > > I'm not sure if there is an easy way to solve that. Anyone? Easy as "a overlay fs option to follow mounted subfilesystems"? Sorry, AFAIK, no. I commented earlier today in github (https://github.com/openwrt/openwrt/commit/4fa9aaf0bed984d200b3c48d1cc81fca7847c394) In summary, you can overlay every mounted filesystem. Alternatively, you can change the strategy and only overlay the leaf directory you actually need to modify, exclude them from main backup and append the overlay contents. Regards, Luiz ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: sysupgrade is broken
On 21.02.2024 20:52, e9hack wrote: root@WLAN-DSL9:~# sysupgrade -b /var/config-backup.tar.gz Wed Feb 21 20:48:30 CET 2024 upgrade: Saving config files... tar: var/dhcp.leases: No such file or directory tar: var/lib/logrotate.status: No such file or directory tar: var/log/logrotate.log: No such file or directory tar: error exit delayed from previous errors Failed to create the configuration backup. I can reproduce that. The problem is caused by: mount -t overlay overlay -o lowerdir=/,upperdir="$tmp/upper",workdir="$tmp/work" "$dir" Apparently lowerdir=/ doesn't work as I expected. In $dir I can see squashfs + overlay changes but I don't see mounts. root@OpenWrt:/# ls -l $dir/tmp/ root@OpenWrt:/# ls -l $dir/rom/ -rw-r--r--1 root root 116 Feb 19 12:53 note root@OpenWrt:/# ls -l $dir/dev/ crw---1 root root5, 1 Feb 19 12:53 console I'm not sure if there is an easy way to solve that. Anyone? ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: procd, possible hotplug issue?
Am 21.02.2024 um 01:21 schrieb Daniel Golle: Yep, I didn't think about empty variables when I built this... Can you test this please: https://github.com/openwrt/procd/pull/3 This does fix the issue. If I test a modified executable, I replaced it by a link to a link on a automatically mounted usb stick. The link on the usb stick points to the modified executable. e.g.: /sbin/dnsmasq is renamed to /sbin/dnsmasq.old /sbin/dnsmasq -> /mnt/test/dnsmasq/dnsmasq /mnt/test/dnsmasq/dnsmasq -> /mnt/test/dnsmasq/dnsmasq-test-something If the modification bricks the router, I replace the last link on the usb stick by /mnt/test/dnsmasq/dnsmasq -> /sbin/dnsmasq.old or /mnt/test/dnsmasq/dnsmasq -> /rom/sbin/dnsmasq and the router is operational again. This doesn't work for procd since procd is needed before the usb stick is mounted. How can I do similar things for procd? Regards, Hartmut ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
sysupgrade is broken
Hi, sysupgrade is broken since commit 4fa9aaf0bed984d200b3c48d1cc81fca7847c394 base-files: sysupgrade: always setup overlay when creating backup If /etc/sysupgrade.conf contains files from /var/..., sysugrade does stop with network down. If I execute sysupgrade -b /tmp/config-backup.tar.gz, sysuggrade complains about existing files from /var/... and doesn't generate backup: root@WLAN-DSL9:~# sysupgrade -b /var/config-backup.tar.gz Wed Feb 21 20:48:30 CET 2024 upgrade: Saving config files... tar: var/dhcp.leases: No such file or directory tar: var/lib/logrotate.status: No such file or directory tar: var/log/logrotate.log: No such file or directory tar: error exit delayed from previous errors Failed to create the configuration backup. All three files does exist. Regards, Hartmut ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Słowa kluczowe do wypozycjonowania
The sender domain has a DMARC Reject/Quarantine policy which disallows sending mailing list messages using the original "From" header. To mitigate this problem, the original message has been wrapped automatically by the mailing list software.--- Begin Message --- Dzień dobry, zapoznałem się z Państwa ofertą i z przyjemnością przyznaję, że przyciąga uwagę i zachęca do dalszych rozmów. Pomyślałem, że może mógłbym mieć swój wkład w Państwa rozwój i pomóc dotrzeć z tą ofertą do większego grona odbiorców. Pozycjonuję strony www, dzięki czemu generują świetny ruch w sieci. Możemy porozmawiać w najbliższym czasie? Pozdrawiam Kamil Tralewski --- End Message --- ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel