feat: use bind mount instead of overlay for /usr

This commit is contained in:
Rudra Saraswat 2026-04-02 02:43:34 +01:00
parent eb7a52e5d6
commit d09d0960de
2 changed files with 2 additions and 4 deletions

View file

@ -33,6 +33,4 @@ if [ -d "$NEWROOT"/.update_rootfs ]; then
touch "$NEWROOT"/.successful-update
fi
rm -rf "$NEWROOT"/.blendOS-overlays
mkdir -p "$NEWROOT"/.blendOS-overlays/usr{,.work}
mount -t overlay overlay -o index=off -o metacopy=off -o ro,lowerdir="$NEWROOT"/usr,upperdir="$NEWROOT"/.blendOS-overlays/usr,workdir="$NEWROOT"/.blendOS-overlays/usr.work "$NEWROOT"/usr
mount -o ro,bind "$NEWROOT"/usr "$NEWROOT"/usr