feat: make /usr/local/share an rw overlay
This commit is contained in:
parent
92e34c28cc
commit
684b1b59d3
1 changed files with 3 additions and 3 deletions
|
@ -37,13 +37,13 @@ run_latehook() {
|
||||||
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 usrlocalshare; do
|
||||||
|
rm -rf /new_root/.blend-overlays/$i.workdir
|
||||||
for i in usr varlibpacman; do
|
|
||||||
mkdir -p /new_root/.blend-overlays/$i
|
mkdir -p /new_root/.blend-overlays/$i
|
||||||
mkdir -p /new_root/.blend-overlays/$i.workdir
|
mkdir -p /new_root/.blend-overlays/$i.workdir
|
||||||
done
|
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/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
|
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
|
||||||
|
mount -t overlay overlay -o rw,lowerdir=/new_root/usr/local/share,upperdir=/new_root/.blend-overlays/usrlocalshare,workdir=/new_root/.blend-overlays/usrlocalshare.workdir /new_root/usr/local/share
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue