mirror of
https://github.com/ventoy/Ventoy.git
synced 2025-04-19 00:45:23 +00:00
Merge e6bba312c548007b7a5fb68f275187ce6fc22e2e into 2dafe755097057a4faf5e240f0abc98b9b4cdcb8
This commit is contained in:
commit
a8fce346e9
@ -118,14 +118,19 @@ mkfs -t $fstype $fsopt -L $label $freeloop
|
|||||||
|
|
||||||
sync
|
sync
|
||||||
|
|
||||||
if [ -n "$config" ]; then
|
if [ -n "$config" ] || [ "$label" = "vtoycow" ]; then
|
||||||
if [ -d ./persist_tmp_mnt ]; then
|
if [ -d ./persist_tmp_mnt ]; then
|
||||||
rm -rf ./persist_tmp_mnt
|
rm -rf ./persist_tmp_mnt
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mkdir ./persist_tmp_mnt
|
mkdir ./persist_tmp_mnt
|
||||||
if mount $freeloop ./persist_tmp_mnt; then
|
if mount $freeloop ./persist_tmp_mnt; then
|
||||||
echo '/ union' > ./persist_tmp_mnt/$config
|
if [ -n "$config" ]; then
|
||||||
|
echo '/ union' > ./persist_tmp_mnt/$config
|
||||||
|
elif [ "$label" = "vtoycow" ]; then
|
||||||
|
mkdir -p ./persist_tmp_mnt/vtoyoverlayfs/overlayfs/
|
||||||
|
chcon system_u:object_r:root_t:s0 ./persist_tmp_mnt/vtoyoverlayfs/overlayfs
|
||||||
|
fi
|
||||||
sync
|
sync
|
||||||
umount ./persist_tmp_mnt
|
umount ./persist_tmp_mnt
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user