chore: correct overlay lowerdir
This commit is contained in:
parent
f452b75e1a
commit
339518860e
2 changed files with 8 additions and 12 deletions
4
akshara
4
akshara
|
@ -204,10 +204,10 @@ def update_system():
|
||||||
exec('chmod', '-R', '755', varlibpacman_overlay_workdir)
|
exec('chmod', '-R', '755', varlibpacman_overlay_workdir)
|
||||||
|
|
||||||
exec('mount', '-t', 'overlay', 'overlay', '-o',
|
exec('mount', '-t', 'overlay', 'overlay', '-o',
|
||||||
f'lowerdir=/var/lib/pacman,upperdir={usr_overlay},workdir={usr_overlay_workdir}', '/mnt/iso-update/squashfs-root/usr')
|
f'lowerdir=/mnt/iso-update/squashfs-root/,upperdir={usr_overlay},workdir={usr_overlay_workdir}', '/mnt/iso-update/squashfs-root/usr')
|
||||||
|
|
||||||
exec('mount', '-t', 'overlay', 'overlay', '-o',
|
exec('mount', '-t', 'overlay', 'overlay', '-o',
|
||||||
f'lowerdir=/var/lib/pacman,upperdir={varlibpacman_overlay},workdir={varlibpacman_overlay_workdir}', '/mnt/iso-update/squashfs-root/var/lib/pacman')
|
f'lowerdir=/mnt/iso-update/squashfs-root/var/lib/pacman,upperdir={varlibpacman_overlay},workdir={varlibpacman_overlay_workdir}', '/mnt/iso-update/squashfs-root/var/lib/pacman')
|
||||||
|
|
||||||
# Install custom system packages
|
# Install custom system packages
|
||||||
exec('touch', '/.custom_pkg_list')
|
exec('touch', '/.custom_pkg_list')
|
||||||
|
|
16
akshara.hook
16
akshara.hook
|
@ -75,17 +75,13 @@ run_latehook() {
|
||||||
|
|
||||||
# Handle overlays.
|
# Handle overlays.
|
||||||
|
|
||||||
if [[ ! -f /new_root/mnt/iso-update/.successful-update ]]; then
|
if [[ -f '/new_root/.blend-overlays/future-usr/.okay' ]] && [[ -f '/new_root/.blend-overlays/future-varlibpacman/.okay' ]]; then
|
||||||
if [[ -f '/new_root/.blend-overlays/future-usr/.okay' ]] && [[ -f '/new_root/.blend-overlays/future-varlibpacman/.okay' ]]; then
|
for i in usr varlibpacman; do
|
||||||
for i in usr varlibpacman; do
|
rm -rf /new_root/.blend-overlays/$i
|
||||||
rm -rf /new_root/.blend-overlays/$i
|
mv /new_root/.blend-overlays/future-$i /new_root/.blend-overlays/$i
|
||||||
mv /new_root/.blend-overlays/future-$i /new_root/.blend-overlays/$i
|
done
|
||||||
done
|
|
||||||
else
|
|
||||||
rm -rf /new_root/.blend-overlays/usr.workdir /new_root/.blend-overlays/varlibpacman.workdir
|
|
||||||
fi
|
|
||||||
else
|
else
|
||||||
rm -rf /new_root/.blend-overlays
|
rm -rf /new_root/.blend-overlays/usr.workdir /new_root/.blend-overlays/varlibpacman.workdir
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for i in usr varlibpacman; do
|
for i in usr varlibpacman; do
|
||||||
|
|
Loading…
Reference in a new issue