[yast-commit] r47936 - in /trunk/repair: VERSION package/yast2-repair.changes src/OSRBoot.ycp
Author: jsuchome Date: Thu May 29 12:15:53 2008 New Revision: 47936 URL: http://svn.opensuse.org/viewcvs/yast?rev=47936&view=rev Log: - mount /proc, /dev, /sys before writing new bootloader (bnc#395302) - 2.16.12 Modified: trunk/repair/VERSION trunk/repair/package/yast2-repair.changes trunk/repair/src/OSRBoot.ycp Modified: trunk/repair/VERSION URL: http://svn.opensuse.org/viewcvs/yast/trunk/repair/VERSION?rev=47936&r1=47935&r2=47936&view=diff ============================================================================== --- trunk/repair/VERSION (original) +++ trunk/repair/VERSION Thu May 29 12:15:53 2008 @@ -1 +1 @@ -2.16.11 +2.16.12 Modified: trunk/repair/package/yast2-repair.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/repair/package/yast2-repair.changes?rev=47936&r1=47935&r2=47936&view=diff ============================================================================== --- trunk/repair/package/yast2-repair.changes (original) +++ trunk/repair/package/yast2-repair.changes Thu May 29 12:15:53 2008 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Thu May 29 11:00:17 CEST 2008 - jsuchome@suse.cz + +- mount /proc, /dev, /sys before writing new bootloader (bnc#395302) +- 2.16.12 + +------------------------------------------------------------------- Thu May 22 14:53:04 CEST 2008 - jsuchome@suse.cz - more checks if partitions are mounted (bnc#372238) Modified: trunk/repair/src/OSRBoot.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/repair/src/OSRBoot.ycp?rev=47936&r1=47935&r2=47936&view=diff ============================================================================== --- trunk/repair/src/OSRBoot.ycp (original) +++ trunk/repair/src/OSRBoot.ycp Thu May 29 12:15:53 2008 @@ -1270,11 +1270,12 @@ Wizard::CreateDialog (); // prepare environment for saving boot loader settings - string destproc = "/proc"; - SCR::Execute (.target.mkdir, destproc, 0755); - SCR::Execute (.target.mount, ["proc", destproc], "-t proc"); - SCR::Execute (.target.bash, "/sbin/SuSEconfig --module bootsplash"); - + WFM::Execute (.local.bash, + sformat ("mount --bind /proc %1/proc", root_mountpoint)); + WFM::Execute (.local.bash, + sformat ("mount --bind /sys %1/sys", root_mountpoint)); + WFM::Execute (.local.bash, + sformat ("mount --bind /dev %1/dev", root_mountpoint)); boolean g_ret = Bootloader::Write(); Wizard::CloseDialog(); @@ -1282,8 +1283,9 @@ // message popup Report::Message(_("The boot loader was installed successfully.")); - SCR::Execute (.target.umount, "/proc"); - WFM::Execute(.local.umount, root_mountpoint + "/proc" ); + WFM::Execute (.local.umount, root_mountpoint + "/proc"); + WFM::Execute (.local.umount, root_mountpoint + "/sys"); + WFM::Execute (.local.umount, root_mountpoint + "/dev"); } return ret; } -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
jsuchome@svn.opensuse.org