Files
Arch-R/scripts
Tomáš Kelemen (vudiq) 41b6c049ea mkimage: optimize disk image creation
In case SYSTEM_SIZE was higher than 1024, mcopy would fail without the
failure being caught. The failure was probably due to invalid geometry
(number of sectors per track too high?). However mformat should be able
to determine the geometry on its own, when no geometry parameters are
supplied. After discussion on IRC with vpeter we came to this solution.

* create temporary folder in the target folder
* use sparse files to create image and partitions
* no extractions of the partitions from image
* modify mcopy alias to copy to the partition sparse file
* add `-o` switch to mcopy alias, so mcopy does not prompt in case of
  existing file in the partition
* remove alias for mformat (is used only one time)
* catch errors for mformat/mcopy/mmd
* use mcopy alias when copying files to virtual appliance part1
* move DISK_LABEL setting closer to the part where it is used
* write MBR without test (it should be already present and if not, dd
  will fail anyway and error is caught)
* update output when vmdk is created

Co-authored-by: Peter <peter.vicman@gmail.com>
2021-11-23 21:28:46 +01:00
..
2020-02-10 08:53:39 +01:00
2021-08-13 01:09:29 +00:00
2018-11-13 06:41:49 +00:00
2019-07-09 00:05:25 +01:00
2021-04-11 22:04:13 +02:00
2020-02-19 07:49:35 +00:00
2021-11-23 21:28:46 +01:00
2020-02-10 08:53:39 +01:00