Mailinglist Archive: opensuse-bugs (8105 mails)

< Previous Next >
[Bug 246389] yast2 update empties /dev
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Mon, 19 Feb 2007 04:53:41 -0700 (MST)
  • Message-id: <20070219115341.ABFAA25C889@xxxxxxxxxxxxxxxxxxxxxx>
https://bugzilla.novell.com/show_bug.cgi?id=246389





------- Comment #13 from holler@xxxxxxxxxxx 2007-02-19 04:53 MST -------
Maybe this change in inst_kickoff.ycp helps (don't know whether
Mode:update_in_running_system() exists. Take it as pseudo code):

// Feature #301903, bugzilla #244937
if (Mode::update()) {
// When upgrading system, remove devs.rpm if installed
LocalCommand (sformat (
"/bin/rpm --root '%1' -q 'devs' && /bin/rpm --nodeps --root '%1' -e
'devs'",
String::Quote (Installation::destdir)
));

++// Don't do this if called from system update in running system
++if (!Mode:update_in_running_system()) {
// Mount (bind) the current /dev/ to the /installed_system/dev/
LocalCommand (sformat (
"/bin/rm -rf '%1/dev/' && /bin/mkdir -p '%1/dev/' && /bin/mount -v
--bind '/dev/' '%1/dev/'",
String::Quote (Installation::destdir)
));
++}
}


--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

< Previous Next >
References