feat: regenerate locales on update

This commit is contained in:
Rudra Saraswat 2024-02-14 20:18:34 +05:30
parent d401439a58
commit ccee6cbe33
2 changed files with 3 additions and 2 deletions

View file

@ -346,6 +346,9 @@ Server = {package_repo["repo-url"]}
exec_chroot('mkinitcpio', '-P')
exec('cp', '-ax', '/etc/locale.gen', '/.new_rootfs/etc/locale.gen')
exec_chroot('locale-gen')
exec('cp', '-ax', '/.new_rootfs/etc', '/.update_rootfs/usr/etc')
exec('cp', '-ax', '/.new_rootfs/etc', '/.new.etc')

View file

@ -33,8 +33,6 @@ run_latehook() {
mv /new_root/.update_rootfs/var/cache/pacman /new_root/var/cache/pacman
fi
chroot /new_root userdel -r blend &>/dev/null
mv /new_root/.update_rootfs /new_root/.old.update_rootfs
touch /new_root/.successful-update
fi