Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- edit the startup script so that instead of bind mounting the system /etc to /opt/alien/system/etc, it creates a folder and copies the contents of /etc/ to /opt/alien/system/etc
- then, delete the copied media_profiles.xml
- and you should be good to go
- #!/bin/bash
- # Copyright 2015-2016 Myriad Group AG. All Rights Reserved.
- #
- ROOT=$1
- if [ "" == "$ROOT" ]; then
- echo "Please set the root path of Alien chroot env."
- exit
- fi
- echo "Set up Alien chroot env under $ROOT"
- for d in bin sbin lib usr var tmp etc dev sys run proc home system_jolla data_jolla vendor odm data media; do
- if [ ! -d $ROOT/$d ]; then
- echo "create $ROOT/$d"
- mkdir $ROOT/$d
- fi
- done
- if [ -e "/usr/sbin/apkd-mount" ]; then
- # Mount $ROOT/data to somewhere decided by apkd.
- echo "apkd-mount $ROOT"
- /usr/sbin/apkd-mount $ROOT
- fi
- for d in bin sbin lib etc usr var tmp home; do
- if [ "" == "$(grep $ROOT/$d /proc/mounts)" ]; then
- echo "mount $ROOT/$d"
- mount --bind /$d $ROOT/$d
- fi
- done
- for d in dev sys run media vendor odm; do
- if [ -d "/$d" ]; then
- if [ "" == "$(grep $ROOT/$d /proc/mounts)" ]; then
- echo "mount $ROOT/$d"
- mount --rbind /$d $ROOT/$d
- mount --make-rslave $ROOT/$d
- fi
- fi
- done
- for d in system data; do
- if [ "" == "$(grep $ROOT/${d}'_jolla' /proc/mounts)" ]; then
- echo "mount $ROOT/$d"
- mount --bind /$d $ROOT/${d}"_jolla"
- fi
- done
- if [ "" == "$(grep $ROOT/proc /proc/mounts)" ]; then
- echo "mount $ROOT/proc"
- mount -t proc proc $ROOT/proc/
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement