Hi, I want to upgrade my Western Digital My Book Live Single box from 18.06.2 (ext4) to 19.07.4
Should I upgrade to ext4 or squashfs? which one is better and what are the known benefits?
I just use it for minidlna and samba share, and have hd-idle to spin-off to save power when not in use.
There is a way to preserve current configuration? (at lest the dhcp/ip, I have in an difficult to access place currently)
I don't have a fully formed opinion on squashfs vs. ext4. I personally started out with ext4 images, and I will continue to use ext4 images, because why not. As far as I know, squashfs' primary benefit is the compressed rootfs, which is obviously useful for space-constrained devices. Also you can reset a device to a "virgin" rootfs by simply clearing the overlay file system. But honestly, I don't think one has the benefit over the other with an MBL.
However, what I do is build my own images (using imagebuilder) for MBL that include a basic DHCP network config, samba, and some file system tools like fdisk, gdisk, and e2fsprogs. Not because there is an immediate need to do so, but because it's really handy to not have to re-install these packages after upgrading.
No script to speak of, just a plain-jane build that removes some packages and adds some others
make image PROFILE="wd_mybooklive" PACKAGES="(packages here)" FILES="files/"
with the packages string consisting of packages I want out of the box:
luci-ssl
since I will probably never use pppoe on an MBL: -ppp -ppp-mod-pppoe -luci-proto-ppp
and also never will serve DHCP from it: -dnsmasq -odhcpd -odhcpd-ipv6only
but I want samba: luci-app-samba36 samba36-server
or, alternatively, cifsd (which I didn't use recently, so this would probably now be ksmbd): kmod-fs-cifsd cifsd-tools
and for some MBLs I am now on snapshot, which don't have samba36 anymore: luci-app-samba4 samba4-server
and file system tools for mounting, formatting and drive monitoring: block-mount fdisk gdisk e2fsprogs hdparm smartmontools
and some other stuff I want to have available: rsync rsyncd mc nano screen htop
And the files directory containing a full directory structure with one file, etc/config/network, which is just the default /etc/config/network but lan changed to proto dhcp:
That's all. No high-class magic here. I deliberately left in the firewall package even though it is not used, in case I want to use the box somewhere out of my local network sometime in the future.