feat: regenerate locales on update
This commit is contained in:
parent
d401439a58
commit
ccee6cbe33
2 changed files with 3 additions and 2 deletions
3
akshara
3
akshara
|
@ -346,6 +346,9 @@ Server = {package_repo["repo-url"]}
|
||||||
|
|
||||||
exec_chroot('mkinitcpio', '-P')
|
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', '/.update_rootfs/usr/etc')
|
||||||
exec('cp', '-ax', '/.new_rootfs/etc', '/.new.etc')
|
exec('cp', '-ax', '/.new_rootfs/etc', '/.new.etc')
|
||||||
|
|
||||||
|
|
|
@ -33,8 +33,6 @@ run_latehook() {
|
||||||
mv /new_root/.update_rootfs/var/cache/pacman /new_root/var/cache/pacman
|
mv /new_root/.update_rootfs/var/cache/pacman /new_root/var/cache/pacman
|
||||||
fi
|
fi
|
||||||
|
|
||||||
chroot /new_root userdel -r blend &>/dev/null
|
|
||||||
|
|
||||||
mv /new_root/.update_rootfs /new_root/.old.update_rootfs
|
mv /new_root/.update_rootfs /new_root/.old.update_rootfs
|
||||||
touch /new_root/.successful-update
|
touch /new_root/.successful-update
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue