feat: handle custom immutable paths
This commit is contained in:
parent
8579f58f68
commit
f17c272b65
2 changed files with 33 additions and 11 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue