feat: add AKSHARA_INSTALL to (re)create /usr/etc
This commit is contained in:
parent
0732bd7977
commit
efd115dbf3
1 changed files with 5 additions and 0 deletions
5
akshara
5
akshara
|
@ -346,8 +346,13 @@ Server = {package_repo["repo-url"]}
|
|||
|
||||
exec_chroot('mkinitcpio', '-P')
|
||||
|
||||
exec('cp', '-ax', '/.new_rootfs/etc', '/.update_rootfs/usr/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/')
|
||||
|
||||
def get_diff_etc_files(dcmp):
|
||||
|
|
Loading…
Reference in a new issue