Mailinglist Archive: opensuse-bugs (8105 mails)

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


locilka@xxxxxxxxxx changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED




------- Comment #24 from locilka@xxxxxxxxxx 2007-02-19 07:21 MST -------
// Feature #301903, bugzilla #244937
if (Mode::update()) {
// "/" means updating the running system, bugzilla #246389
if (Installation::destdir == "/") {
// When upgrading system, remove devs.rpm if installed
LocalCommand (
"/bin/rpm -q 'devs' && /bin/rpm --nodeps --justdb -e 'devs'"
);
// normal upgrade
} else {
// 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)
));

// 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)
));
}
}

Fixed in yast2-packager-2.15.15 (still not in build)


--
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