Skip to content

Commit

Permalink
Get config parameter from control.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
shundhammer committed Dec 14, 2016
1 parent 93b7487 commit 2a583d8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/lib/installation/clients/umount_finish.rb
Expand Up @@ -45,6 +45,7 @@ def main
Yast.import "Internet"
Yast.import "FileUtils"
Yast.import "Mode"
Yast.import "ProductFeatures"

@ret = nil
@func = ""
Expand Down Expand Up @@ -390,7 +391,7 @@ def preserve_randomness_state
#
def set_root_subvol_read_only
return unless root_subvol_read_only_configured?
log.info("Setting root subvolume to read-only");
log.info("Setting root subvolume to read-only")
set_fstab_root_subvol_read_only
set_root_subvol_property_read_only
end
Expand All @@ -399,7 +400,7 @@ def set_root_subvol_read_only
# should be set to read-only.
#
def root_subvol_read_only_configured?
true
ProductFeatures.GetBooleanFeature("partitioning", "root_subvolume_read_only")
end

# Change /etc/fstab on the target to mount the root subvolume read-only.
Expand Down

0 comments on commit 2a583d8

Please sign in to comment.