Uploaded image for project: 'TrueNAS'
  1. TrueNAS
  2. NAS-106134

changing devfs_ruleset for iocage jails fails

    XMLWordPrintable

    Details

      Description

      I need to mount an optical drive in an iocage. Setting devfs_ruleset in the gui to zero results in it being 5 when the jail is restarted. Same behaviour in the console.

      root@bosnas[~]# iocage set  devfs_ruleset=0 plex
      devfs_ruleset: 5 -> 0
      root@bosnas[~]# iocage get -r devfs_ruleset
      +------+----------------------+
      | NAME | PROP - devfs_ruleset |
      +======+======================+
      | plex | 5                    |
      +------+----------------------+

       

      And there is no spoon rule 5 in /etc/defaults/devfs.rules

       

      Thanks to Samuel Tai in the community forums for this bit of info:

      Unfortunately, this looks like an iocage bug in /usr/local/lib/python3.7/site-packages/iocage_lib/ioc_common.py, lines 740-821. The generate_devfs_ruleset subroutine is supposed to honor the external setting and exit, but appears to always reset it to 5 on runtime.

       

        Attachments

          Attachments

            JEditor

              Activity

                People

                Assignee:
                releng Release Council
                Reporter:
                xcapee James Boswell
                Watchers:
                Bug Clerk, dak180, James Boswell, Waqar Ahmed
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                  Dates

                  Due:
                  Created:
                  Updated:
                  Resolved: