Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update init: use binded mountpoint instead of direct path for save folder #4192

Open
wants to merge 1 commit into
base: testing
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions initrd-progs/0initrd/init
Original file line number Diff line number Diff line change
Expand Up @@ -503,12 +503,14 @@ setup_psave(){ # setup savefile or savefolder
fi
elif [ -d "$SAVE_FN" ];then #savefolder
echo "--SAVEFOLDER-- $SAVE_FN" #debug
mkdir -p /pup_disk
mount -o bind $SAVE_FN /pup_disk
if [ "$UNIONFS" = 'overlay' ]; then
mkdir -p "$SAVE_FN/upper" "$SAVE_FN/work"
ln -sv "$SAVE_FN/upper" "$SAVE_LAYER"
ln -sv "$SAVE_FN/work" "$WORKDIR"
mkdir -p "/pup_disk/upper" "/pup_disk/work"
ln -sv "/pup_disk/upper" "$SAVE_LAYER"
ln -sv "/pup_disk/work" "$WORKDIR"
else
ln -sv "$SAVE_FN" "$SAVE_LAYER"
ln -sv "/pup_disk" "$SAVE_LAYER"
fi
else
PUPSAVE=""
Expand Down