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

    Read only file system: '/root/.local' when using -t lxc

    Scheduled Pinned Locked Moved Libertine
    3 Posts 2 Posters 308 Views 2 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.
      • V Offline
        virtenv
        last edited by

        Hello supporters,

        following question.

        a) Google Pixel 3a XL
        b) Linux ubuntu-phablat 4.9.124-...

        When I run
        $ sudo libertine-container-manager create -i someID -n 'Some Name' -t lxc
        the command ends with an OSError:
        Read only file system: '/root/.local'

        He wants to create the .local directory and it fails but the root / permissions should not be modified by user.

        Everything works fine, when I use -t chroot.

        Q: How could I get it working with -t lxc ?

        Regards

        arubislanderA 1 Reply Last reply Reply Quote 0
        • arubislanderA Online
          arubislander @virtenv
          last edited by

          Hi @virtenv,

          You shouldn't be using sudo with libertine-container-manager. It is surprising that it works with -t chroot if you are using sudo.

          On to your question. The short of it is that it is currently not possible to use a lxc container for Libertine. There have been experiments in getting it to work, but these are not well documented and require doing some unsupported operations on the root filesystem.

          So, for now, if you need to ask the question, you probably should stick with chroots.

          πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
          Happily running Ubuntu Touch
          Google Pixel 3a (20.04 DEV)
          JingPad (24.04 preview)
          Meizu Pro 5 (16.04 DEV)

          1 Reply Last reply Reply Quote 0
          • V Offline
            virtenv
            last edited by

            Thank you. Actually, since the type chroot is the default, I don't write it.
            And yes, it works with or without sudo.

            Regards

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