Skip to content

Commit

Permalink
make inst_live_cleanup work before switch to chroot
Browse files Browse the repository at this point in the history
  • Loading branch information
jsrain committed Jan 6, 2014
1 parent 964a90a commit 251bd32
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions package/yast2-live-installer.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Jan 6 13:07:52 UTC 2014 - jsrain@suse.cz

- make inst_live_cleanup work before switch to chroot

-------------------------------------------------------------------
Wed Nov 13 15:56:18 UTC 2013 - jreidinger@suse.com

Expand Down
8 changes: 4 additions & 4 deletions src/clients/inst_live_cleanup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,18 @@ def main
# Call a script if it exists
@scriptname = "/usr/bin/correct_live_install"

if FileUtils.Exists(@scriptname)
if FileUtils.Exists("/mnt/" + @scriptname)
Builtins.y2milestone(
"Calling %1 returned %2",
@scriptname,
SCR.Execute(path(".target.bash_output"), @scriptname)
SCR.Execute(path(".target.bash_output"), "chroot /mnt " + @scriptname)
)
Builtins.y2milestone(
"Removing %1 returned %2",
@scriptname,
SCR.Execute(
path(".target.bash_output"),
Builtins.sformat("/bin/rm %1", @scriptname)
Builtins.sformat("chroot /mnt /bin/rm %1", @scriptname)
)
)
else
Expand All @@ -66,7 +66,7 @@ def main
@out = Convert.to_map(
SCR.Execute(
path(".target.bash_output"),
"/bin/rpm -e yast2-live-installer"
"chroot /mnt /bin/rpm -e yast2-live-installer"
)
)

Expand Down

0 comments on commit 251bd32

Please sign in to comment.