archlinux / archinstall

Arch Linux installer - guided, templates etc.
GNU General Public License v3.0
5.82k stars 509 forks source link

Do not overwrite the contents of mkinitcpio.conf #2532

Open ventureoo opened 3 weeks ago

ventureoo commented 3 weeks ago

PR Description:

After installation is complete, user may want to edit /etc/mkinitcpio.conf at will and may encounter a mismatch between the default configuration examples and what it has after installation since archinstall does not just change some values, but completely overwrites contents of the file removing all comments and other options. This PR fixes this by editing only parameters specified in code like hooks/modules/etc.

Tests and Checks