feat: add AKSHARA_INSTALL to (re)create /usr/etc

This commit is contained in:
Rudra Saraswat 2024-02-13 09:29:48 +05:30
parent 0732bd7977
commit efd115dbf3

View file

@ -346,8 +346,13 @@ Server = {package_repo["repo-url"]}
exec_chroot('mkinitcpio', '-P') exec_chroot('mkinitcpio', '-P')
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')
if os.environ.get('AKSHARA_INSTALL') == '1':
exec('rm', '-rf', '/usr/etc')
exec('cp', '-ax', '/.new_rootfs/etc', '/usr/etc')
etc_diff = filecmp.dircmp('/etc/', '/usr/etc/') etc_diff = filecmp.dircmp('/etc/', '/usr/etc/')
def get_diff_etc_files(dcmp): def get_diff_etc_files(dcmp):