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('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',
|
||||
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
|
||||
exec('touch', '/.custom_pkg_list')
|
||||
|
|
|
@ -75,7 +75,6 @@ run_latehook() {
|
|||
|
||||
# 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
|
||||
for i in usr varlibpacman; do
|
||||
rm -rf /new_root/.blend-overlays/$i
|
||||
|
@ -84,9 +83,6 @@ run_latehook() {
|
|||
else
|
||||
rm -rf /new_root/.blend-overlays/usr.workdir /new_root/.blend-overlays/varlibpacman.workdir
|
||||
fi
|
||||
else
|
||||
rm -rf /new_root/.blend-overlays
|
||||
fi
|
||||
|
||||
for i in usr varlibpacman; do
|
||||
mkdir -p /new_root/.blend-overlays/$i
|
||||
|
|
Loading…
Reference in a new issue