Auc changed file system without asking

Hello,
I have tried to upgrade my NanoPi R2S from 21.x to 22.03.03 with auc.

I happily have created a backup of the SD-card before starting the process.
The SD was partitioned with 3 partitions, all ext4 filesystems.

Festplatte /dev/sdb: 3,68 GiB, 3951034368 Bytes, 7716864 Sektoren
Festplattenmodell: UHSII uSD Reader
Einheiten: Sektoren von 1 * 512 = 512 Bytes
Sektorgröße (logisch/physikalisch): 512 Bytes / 512 Bytes
E/A-Größe (minimal/optimal): 512 Bytes / 512 Bytes
Festplattenbezeichnungstyp: dos
Festplattenbezeichner: 0x5f692e7d

Gerät      Boot  Anfang    Ende Sektoren Größe Kn Typ
/dev/sdb1  *      65536  131071    65536   32M 83 Linux
/dev/sdb2        131072 4325375  4194304    2G 83 Linux
/dev/sdb3       4325376 7716863  3391488  1,6G 83 Linux

When starting auc via ssh there was a messsage that something with filesystem did not match. But then ssh connection stops.

After a while the system comes up again, but now the system has only 2 different partitions. And filesystem has changed to squashfs.

 root@R2S:/# fdisk -l                                                                                                                                     
Disk /dev/loop0: 92.75 MiB, 97255424 bytes, 189952 sectors                                                                                                
Units: sectors of 1 * 512 = 512 bytes                                                                                                                     
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk /dev/mmcblk0: 3.68 GiB, 3951034368 bytes, 7716864 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x5452574f

Device         Boot  Start    End Sectors  Size Id Type
/dev/mmcblk0p1 *     65536  98303   32768   16M 83 Linux
/dev/mmcblk0p2      131072 344063  212992  104M 83 Linux

Why this? And how to keep my partition scheme when making an update?

this is expected, if you use the combined image, it'll rewrite the partition table, and their sizes.

zcat the ext4 root fs to /dev/mmcblk0p2, and copy the kernel file to /dev/mmcblk0p1, adapt the boot loader.

(the is very high level, I don't own a NanoPi, it's how it's done on x86).

if you'd have a primary and secondary openwrt partition you could do something like

Changing partition sizes is one thing, but changing the filesystem too is another. And all of fhis without any "continue?" question :frowning:
Ugly, but I'll have to live with that...

I have tried luci-app-attendendsysupgrade also. This way the generated image resizes the partitions too, but all pakages are in place and it keeps ext4 as filesystem. So I had to resize paartition 1/2 and recreate partition 3 entry only. Far away from good, but much better then "auc"

I decided not to install a dual-boot scenario like I would have done with a x86 too. This because there is special boot-loader required for this rockchip based devices. Using an additional SD Card seems less time consuming to me :wink: