feat: install packages to overlay during updates

This commit is contained in:
Rudra Saraswat 2023-05-31 15:05:20 +05:30
parent cd422cfebf
commit 1f35f9b2e4
2 changed files with 3 additions and 3 deletions

View file

@ -307,7 +307,7 @@ def handle_system_packages(operation):
exec('mv', usr_overlay, '/.blend-overlays/future-usr')
exec('mv', varlibpacman_overlay, '/.blend-overlays/future-varlibpacman')
exec('rm', '-rf', usr_overlay_workdir, varlibpacman_overlay_workdir)
exec('bash', '-c', "printf '' > /.custom_pkg_list")
exec('bash', '-c', "echo -n > /.custom_pkg_list")
for pkg in args.pkg:
exec('bash', '-c', f"echo '{pkg}' >> /.custom_pkg_list")
exec('touch', '/.blend-overlays/future-usr/.okay')

View file

@ -82,10 +82,10 @@ run_latehook() {
mv /new_root/.blend-overlays/future-$i /new_root/.blend-overlays/$i
done
else
rm -rf /new_root/.blend-overlays /new_root/.blendrw
rm -rf /new_root/.blend-overlays/usr.workdir /new_root/.blend-overlays/varlibpacman.workdir
fi
else
rm -rf /new_root/.blend-overlays /new_root/.blendrw
rm -rf /new_root/.blend-overlays
fi
for i in usr varlibpacman; do