UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    How to edit ofono.override?

    Scheduled Pinned Locked Moved Solved Support
    5 Posts 2 Posters 266 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
      Reply
      • Reply as topic
      Log in to reply
      This topic has been deleted. Only users with topic management privileges can see it.
      • M Offline
        maber01
        last edited by

        I am working on an application that uses dbus to access ofonod and I'd like to configure ofonod to output debugging information to gain insight.

        I though I'd be able to edit the file /etc/init/ofono.override and add the "-d" option to the exec directive.

        I tried remounting the / filesystem as read/write but I realised that the ofono.override file is itself a bind mount and is still read only. Then I had a go at editing the file in recovery mode by setting up suitable loop devices and mounts but that didn't end well - the phone no longer boots into ubuntu and I need to start with a fresh installation!

        Is there a way to edit ofono.override without fouling things up?

        BTW I'm running Ubuntu Touch on a Nexus 5.

        lduboeufL 1 Reply Last reply Reply Quote 0
        • lduboeufL Online
          lduboeuf @maber01
          last edited by

          @maber01 if it helps here is some notes :
          https://gist.github.com/lduboeuf/3ea0c743674b1c81a1d29751030f4908#file-log-debug-ofono-ubuntu-touch

          M 1 Reply Last reply Reply Quote 0
          • M Offline
            maber01 @lduboeuf
            last edited by

            @lduboeuf I'll give it a go and report back later today. Thanks.

            M 1 Reply Last reply Reply Quote 0
            • M Offline
              maber01 @maber01
              last edited by

              @lduboeuf Your instructions for Xenial worked perfectly.

              It was necessary to:
              sudo touch /userdata/.writable_image
              sudo touch /userdata/.writable_device_image
              and reboot.

              I can see that creating those two files means that the /dev/loop0 device is mounted read/write at boot time which means it is already writable when the ofono.override file is bind mounted.

              BTW, can you point me at the documentation about those two files?

              lduboeufL 1 Reply Last reply Reply Quote 0
              • M maber01 has marked this topic as solved on
              • lduboeufL Online
                lduboeuf @maber01
                last edited by

                @maber01 said in How to edit ofono.override?:

                @lduboeuf Your instructions for Xenial worked perfectly.

                It was necessary to:
                sudo touch /userdata/.writable_image
                sudo touch /userdata/.writable_device_image
                and reboot.

                I can see that creating those two files means that the /dev/loop0 device is mounted read/write at boot time which means it is already writable when the ofono.override file is bind mounted.

                BTW, can you point me at the documentation about those two files?

                I'm afraid there is not. This comes from Telegram discussions

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post