feat: make akshara immutable

This commit is contained in:
Rudra B.S. 2023-11-24 23:20:05 +05:30
parent 441115374a
commit 87f2e9198a

View file

@ -52,4 +52,14 @@ run_latehook() {
mv /new_root/.update_rootfs /new_root/.old.update_rootfs mv /new_root/.update_rootfs /new_root/.old.update_rootfs
touch /new_root/.successful-update touch /new_root/.successful-update
fi fi
rm -rf /new_root/.blend-overlays/usr.workdir /new_root/.blend-overlays/varlibpacman.workdir
for i in usr varlibpacman; do
mkdir -p /new_root/.blend-overlays/$i
mkdir -p /new_root/.blend-overlays/$i.workdir
done
mount -t overlay overlay -o index=off -o metacopy=off -o ro,lowerdir=/new_root/usr,upperdir=/new_root/.blend-overlays/usr,workdir=/new_root/.blend-overlays/usr.workdir /new_root/usr
mount -t overlay overlay -o index=off -o metacopy=off -o ro,lowerdir=/new_root/var/lib/pacman,upperdir=/new_root/.blend-overlays/varlibpacman,workdir=/new_root/.blend-overlays/varlibpacman.workdir /new_root/var/lib/pacman
} }