[Question] About restoring from an image
I'm curious why mkinitcpio -P has to be run after a system has been restored to a storage. Older version of Clonezilla didn't do that and I never had any boot problems, mostly because dkms runs that command automatically when the linux kernel and/or the nvidia drivers get updated. I always make the backups after nvidia and linux kernel have been updated and rebooted once which means the vmlinuz images were already created. Hence I don't see the logic or the sense behind running mkinitcpio -P right after restoring from an image.
I'd appreciate it if you can explain the logic in that whenever you have the time to respond.
Since some of the GNU/Linux distribution will detect the hardware and put only the required drivers/modules in the initrd. Hence if you deploy the image to different type of hardware, you might fail to boot due to the required driver is missing. You have a chance to disable it when using Clonezilla expert mode, i.e., check the option "-iui": https://clonezilla.org//clonezilla-live/doc/02_Restore_disk_image/images/ocs-09-advanced-param-extra.png
Steven
Since some of the GNU/Linux distribution will detect the hardware and put only the required drivers/modules in the initrd. Hence if you deploy the image to different type of hardware, you might fail to boot due to the required driver is missing. You have a chance to disable it when using Clonezilla expert mode, i.e., check the option "-iui": https://clonezilla.org//clonezilla-live/doc/02_Restore_disk_image/images/ocs-09-advanced-param-extra.png
Steven
I know about that, I just had to use it because mkinitcpio -P had created some kind of log error and the filesystem wouldn't mount. But I wonder: when clonezilla is installed in the system, is there any config file to edit in order to make iui permanent? Currently I'm using clonezilla from a Live DVD of Debian (running CZ in Debian's terminal).
Edit: NVM, I found what I have to edit in order to make it permanent: ocs-onthefly and then overwrite in /usr/bin.
Actually another approach is you can do that using the boot parameters. Please refer to: https://clonezilla.org//fine-print-live-doc.php?path=./clonezilla-live/doc/99_Misc/00_live-boot-parameters.doc#00_live-boot-parameters.doc
https://clonezilla.org//fine-print-live-doc.php?path=clonezilla-live/doc/05_Preseed_options_to_do_job_after_booting
Steven