-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #50 from toys4me/feature/Userdata2Sd
Modified S10setup to move userdata to sdcard on boot if /xbmc-data direc...
- Loading branch information
Showing
2 changed files
with
170 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
95f7647
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Basic Move to mSD workflow Explanation (for those who can't read code)
1 Script checks to see if there is an SDCard installed and if it is it creates a new mountpoint called /media/sdcard and mounts the card there. If no SD Card device boots to config on internal memory.
2 Script then checks for the presence of a directory called xbmc-data on the sdcard (/media/sdcard/xbmc-data)
3 If xbmc-data doesn't exist script does nothing and boots to internal data
4 if /media/sdcard/xbmc-data/userdata exists then goes to step 7
5 /media/sdcard/xbmc-data/userdata directory is created on the SD Card and all the contents of /tmp/userdata (ALL of your XBMC data) is copied to /media/sdcard/xbmc-data/userdata.
6 if copy fails the script exits and device boots as normal from internal storage data
7 a new directory is created as /tmp/userdata.internal
8 the contents of the existing /tmp/userdata directory is mapped to /tmp/userdata.internal
9 the contents of /media/sdcard/xbmc-data/userdata is then mapped to /tmp/userdata
10 the content of /media/sdcard/xbmc-data/userdata/xios/root is mapped to /root
95f7647
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
those who can't read code have no business looking at source code commits :)
95f7647
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can I come live in your world? Its sounds so much logical than mine. :)