Closed lpaolini closed 2 years ago
Actually, I could just boot it (with existing Debian 10 kernel) and use your script, right?
[Not sure you received the answer I sent with an email... github didn't seem to relay it]
It will actually boot the kernel, mount the inirtd, but /etc/fstab (in initrd I expect) will not provide the correct root uuid, I'm looking for the the content if initrd so see what can be done
Arnaud
Actually, the /sbin/init of the initrd seems to read "conf/param.conf" (still from the inirtd cpio archive) to know which real root should be mounted. I'm not really aware of the whole initrd process but maybe the kernel cmdline option
root= "
Can be used to override temporary the ROOT=xxxx option from conf/param.conf, the time to fully boot (the simpliest is to use a serial console, stop in the uboot bootloader and modify the boot_args manually)
then
Hi Arnaud,
After a bit of trial and error I managed to do what I wanted. Basically I reinstalled Debian Buster on a temporary disk, run your script, rebooted, upgraded to Bullseye, rebooted, replaced the RootFS1 partition with a backup from the other NAS, plugged in the old disks from the other NAS and... it worked!
Now I'm fighting with #20 ...
Many thanks, Luca
Hi, I have a QNAP TS-221P running Debian 11 thanks to your script (and some manual intervention) and everything works like a charm.
Now I'm upgrading my disks, manually degrading the RAID-1 to rebuild the two volumes one at a time.
At the end of the process, the old disks will be installed on another QNAP, a TS-219P, whose partitions have not been updated to fit Debian 11 yet.
My plan is to install the old disks into the TS-219P, boot the existing kernel (from previously installed Debian 10), and run flash-kernel for flashing the new kernel.
Before that I would need to update partition table though. Can you help me with the the necessary steps to achieve the same result as running your script but running U-Boot commands instead?