Skip to content

Instantly share code, notes, and snippets.

@a1batross
Created January 8, 2018 00:32
Show Gist options
  • Save a1batross/1bd0b26c2407dc6688041b28e85868df to your computer and use it in GitHub Desktop.
Save a1batross/1bd0b26c2407dc6688041b28e85868df to your computer and use it in GitHub Desktop.
--- 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