fix: add akshara as init hook

This commit is contained in:
Rudra B.S. 2023-11-20 20:54:02 +05:30
parent 952bcd738c
commit 3d28788708

View file

@ -308,6 +308,13 @@ Server = {package_repo["repo-url"]}
error('cancelling update so as not to render the system unbootable') error('cancelling update so as not to render the system unbootable')
sys.exit(10) 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 encrypt filesystems fsck)" >> /etc/mkinitcpio.conf')
exec_chroot('mkinitcpio', '-P')
exec('mv', '.new_rootfs', '.update_rootfs') exec('mv', '.new_rootfs', '.update_rootfs')
new_boot_files = [] new_boot_files = []