Now the link is version 1.4. Unlike previous versions, to create a new GPT you need to add the option –create-new-gpt or -c. The -t option (–test-mage) allows you to test the image. Shows boot and root sizes and contents of some files.
The -p option (–pause-before-umount) pauses both when testing the image and when creating a new OS. You can open a new terminal window and work with files in /tmp/1 and /tmp/2. Then you need to close all open files, if mc was used, go beyond the tmp/ directories, return to the first window and press Enter there to close all files.
If the script is running on rockpi, then the devices can be set by the names: emmc, microsd, nvme. for example, to create a new GPT with empty uboot you can specify the options: -d microsd -c. For backup uboot: -d emmc --backup-uboot. To install the new OS into the already existing partitions of the appropriate size from the system of the unnecessary OS: -b microsd -n 4 -r nvme -m 5 -i OSxxxx.img. Short options are provided. For hints, use -h
The script is now tested with radxa ubuntu & debian, Armbian, LibreELEC, Manjaro, slarm64 and DietPi. For these OS, you must save the original beginning of the file name. If the script does not recognize the OS by name and it does not have extlinux.conf, then the work will stop. If there is a file, then there will be an attempt to install the OS. The extlinux.conf file can be added (or replaced by an existing OS image) using the –extlinux-conf-file option.
I kind of realized all the necessary tasks for myself in the script and now I will only fix errors … maybe ;).
1 Like