Mayank Chhabra
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
6 additions and
0 deletions
-
scripts/umbrel-os/external-storage/mount
|
|
@ -130,11 +130,17 @@ main () { |
|
|
|
--archive \ |
|
|
|
--no-target-directory \ |
|
|
|
"${UMBREL_ROOT}" "${EXTERNAL_UMBREL_ROOT}" |
|
|
|
|
|
|
|
echo "Creating /sd-root to bind-mount SD card root..." |
|
|
|
mkdir "/sd-root" |
|
|
|
fi |
|
|
|
|
|
|
|
echo "Bind mounting external storage over local Umbrel installation..." |
|
|
|
mount --bind "${EXTERNAL_UMBREL_ROOT}" "${UMBREL_ROOT}" |
|
|
|
|
|
|
|
echo "Bind mounting SD card root at /sd-card" |
|
|
|
mount --bind "/" "/sd-root" |
|
|
|
|
|
|
|
echo "Checking Umbrel root is now on external storage..." |
|
|
|
sync |
|
|
|
sleep 1 |
|
|
|