feat: handle custom immutable paths

This commit is contained in:
Rudra Saraswat 2026-04-03 19:14:57 +01:00
parent 8579f58f68
commit f17c272b65
2 changed files with 33 additions and 11 deletions

View file

@ -36,4 +36,7 @@ if [ -d "$NEWROOT"/.update_rootfs ]; then
touch "$NEWROOT"/.successful-update
fi
mount -o ro,bind "$NEWROOT"/usr "$NEWROOT"/usr
# Handle immutable paths
if [ -f "$NEWROOT/usr/immutable.list" ]; then
while IFS= read -r immutablepath; do mount -o ro,bind "$NEWROOT"/"$immutablepath" "$NEWROOT"/"$immutablepath" >/dev/null 2>&1 || true; done < "$NEWROOT"/usr/immutable.list
fi