Skip to content

Commit

Permalink
Merge pull request #2063 from phillxnet/2062_openSUSE_improve_JeOS_co…
Browse files Browse the repository at this point in the history
…mpatability_re_ROOT_label

[openSUSE] improve JeOS compatibility re ROOT label. Fixes #2062
  • Loading branch information
phillxnet authored Sep 22, 2019
2 parents 281bd29 + 3e6e749 commit 9557493
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion conf/settings.conf.in
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ SFTP_MNT_ROOT = '/mnt3/'

# System volume label when no btrfs volume label is set as per default openSUSE
# install: ie 'btrfs fi show' gives 'Label: none'
SYS_VOL_LABEL = 'system'
SYS_VOL_LABEL = 'ROOT'

TAP_DIR = '${django-settings-conf:taplib}'
TAP_SERVER = ('127.0.0.1', ${django-settings-conf:tapport})
Expand Down
2 changes: 1 addition & 1 deletion conf/test-settings.conf.in
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ SFTP_MNT_ROOT = '/mnt3/'

# System volume label when no btrfs volume label is set as per default openSUSE
# install: ie 'btrfs fi show' gives 'Label: none'
SYS_VOL_LABEL = 'system'
SYS_VOL_LABEL = 'ROOT'

TAP_DIR = '${django-settings-conf:taplib}'
TAP_SERVER = ('127.0.0.1', ${django-settings-conf:tapport})
Expand Down
3 changes: 2 additions & 1 deletion src/rockstor/storageadmin/views/disk.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,8 @@ def _update_disk_state():
# TODO: First call we reset none pool label member count times!
# Corner case but room for efficiency improvement.
# Consider building a list of pools relabeled to address issue.
if pool_name == 'none':
# N.B. 'system' for early source to rpm installs - openSUSE
if pool_name == 'none' or pool_name == 'system':
pool_name = set_pool_label(p_info.uuid, dev_name, d.root)
# Update our disk database entry with btrfs specific data.
dob.devid = p_info.devid
Expand Down

0 comments on commit 9557493

Please sign in to comment.