SUSE / suse-migration-services

GNU General Public License v3.0
7 stars 10 forks source link

Add an option to create a 'fat' initrd #239

Closed KeithMnemonic closed 2 years ago

KeithMnemonic commented 2 years ago

This change adds a new systemd service, regenerate-initrd that is responsible for running the dracut command to build a "fat" initrd when the config setting 'build_host_independent_initrd' is enabled.

This service is configured to run before the kernel-load service and allows a new initrd to be created after the migration is complete and before the final system reboot is performed.

The dracut command that is executed is:

chroot  root_path dracut --no-kernel --no-host-only --no-hostonly-cmdline --regenerate-all --logfile  /var/log/YaST2/mkinitrd.log -f
KeithMnemonic commented 2 years ago

@jesusbv Please review when you get a chance.