feat: do not overwrite mkinitcpio.conf

This commit is contained in:
Rudra Saraswat 2024-06-08 06:36:07 +00:00
parent 03f30a545e
commit 97224821ef

View file

@ -342,11 +342,6 @@ Server = {package_repo["repo-url"]}
error('cancelling update so as not to render the system unbootable')
sys.exit(10)
exec_chroot('bash', '-c', 'echo "MODULES=()" > /etc/mkinitcpio.conf')
exec_chroot('bash', '-c', 'echo "BINARIES=()" >> /etc/mkinitcpio.conf')
exec_chroot('bash', '-c', 'echo "FILES=()" >> /etc/mkinitcpio.conf')
exec_chroot('bash', '-c', 'echo "HOOKS=(base udev akshara autodetect keyboard keymap modconf block filesystems fsck)" >> /etc/mkinitcpio.conf')
exec_chroot('pacman', '-S', '--noconfirm', 'shadow')
exec_chroot('mkinitcpio', '-P')