feat: install packages to overlay during updates
This commit is contained in:
parent
cd422cfebf
commit
1f35f9b2e4
2 changed files with 3 additions and 3 deletions
2
akshara
2
akshara
|
@ -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')
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue