Created
January 8, 2018 00:32
-
-
Save a1batross/1bd0b26c2407dc6688041b28e85868df to your computer and use it in GitHub Desktop.
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
--- hybris-original/ramdisk/init 2017-10-25 12:21:56.000000000 +0300 | |
+++ hybris/ramdisk/init 2018-01-08 03:04:50.743426680 +0300 | |
@@ -26,7 +26,7 @@ | |
BOOTLOGO= | |
ALWAYSDEBUG= | |
-DATA_PARTITION=/dev/mmcblk0p49 | |
+DATA_PARTITION=/dev/mmcblk1p1 | |
DEFAULT_OS=sailfishos | |
set_welcome_msg(){ | |
@@ -138,16 +138,17 @@ | |
mount_stowaways() { | |
echo "########################## mounting stowaways" | |
+ sleep 10s | |
if [ ! -z $DATA_PARTITION ]; then | |
data_subdir="$(get_opt data_subdir)" | |
- mkdir /data | |
+ # mkdir /data | |
mkdir /target | |
- mount $DATA_PARTITION /data | |
- mount --bind /data/${data_subdir}/.stowaways/${DEFAULT_OS} /target | |
+ mount $DATA_PARTITION /target | |
+ # mount --bind /data/${data_subdir}/.stowaways/${DEFAULT_OS} /target | |
mkdir /target/data # in new fs | |
- mount --bind /data/${data_subdir} /target/data | |
+ # mount --bind /data/${data_subdir} /target/data | |
else | |
echo "Failed to mount /target, device node '$DATA_PARTITION' not found!" >> /diagnosis.log | |
fi | |
@@ -156,9 +157,9 @@ | |
umount_stowaways() { | |
if [ ! -z $DATA_PARTITION ]; then | |
- umount /target/data | |
+ # umount /target/data | |
umount /target | |
- umount /data | |
+ # umount /data | |
fi | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment