feat: make akshara immutable
This commit is contained in:
parent
441115374a
commit
87f2e9198a
1 changed files with 10 additions and 0 deletions
10
akshara.hook
10
akshara.hook
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue