vps yum install installed kernel and udev and removed dummy and vzdev [message #3658] |
Fri, 09 June 2006 00:04 |
|
dowdle
Messages: 261 Registered: December 2005 Location: Bozeman, Montana
|
Senior Member |
|
|
I installed a bunch of devel packages needed to meet some requirements of an application I was installing. During some part of the process, yum decided that the kernel package and the udev package were needed as dependencies and installed them... while also removing the vz kernel dummy package and vzdev. Now some things are broken and I can't see to figure out how to put the system back to the way it was.
[root@img ~]# vzlist 104
VPSID NPROC STATUS IP_ADDR HOSTNAME
104 17 running 153.90.199.57 devel4.cs.montana.edu
[root@img ~]# vzctl enter 104
enter failed
[root@img ~]# vzctl exec 104 rpm -qi kernel
Name : kernel Relocations: (not relocatable)
Version : 2.6.16 Vendor: Red Hat, Inc.
Release : 1.2111_FC4 Build Date: Sat May 20 18:33:26 2006
Install Date: Thu Jun 8 17:17:51 2006 Build Host: hs20-bc1-5.build.redhat.com
Group : System Environment/Kernel Source RPM: kernel-2.6.16-1.2111_FC4.src.rpm
Size : 39498132 License: GPLv2
Signature : DSA/SHA1, Sun May 21 15:49:52 2006, Key ID b44269d04f2a6fd2
Packager : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
Summary : The Linux kernel (the core of the Linux operating system)
Description :
The kernel package contains the Linux kernel (vmlinuz), the core of any
Linux operating system. The kernel handles the basic functions
of the operating system: memory allocation, process allocation, device
input and output, etc.
[root@img ~]# vzctl exec 104 rpm -qi udev
Name : udev Relocations: (not relocatable)
Version : 071 Vendor: Red Hat, Inc.
Release : 0.FC4.3 Build Date: Tue Feb 21 00:24:42 2006
Install Date: Thu Jun 8 17:17:44 2006 Build Host: hs20-bc1-4.build.redhat.com
Group : System Environment/Base Source RPM: udev-071-0.FC4.3.src.rpm
Size : 3363874 License: GPL
Signature : DSA/SHA1, Thu Feb 23 08:44:50 2006, Key ID b44269d04f2a6fd2
Packager : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
URL : http://kernel.org/pub/linux/utils/kernel/hotplug/
Summary : A userspace implementation of devfs
Description :
udev is a implementation of devfs in userspace using sysfs and
/sbin/hotplug. It requires a 2.6 kernel to run properly.
HELP!
If I try and remove either the kernel package or the udev package yum basically decides that about 180 other packages need to go with it. Ouch.
--
TYL, Scott Dowdle
Belgrade, Montana, USA
|
|
|
Fixed it, I think [message #3722 is a reply to message #3658] |
Mon, 12 June 2006 19:38 |
|
dowdle
Messages: 261 Registered: December 2005 Location: Bozeman, Montana
|
Senior Member |
|
|
Ok, I was able to fix it in what appears to be a non-destructive way. Here's what I had to do:
vzctl exec 104 rpm -e --nodeps kernel udev mkinitrd module-init-tools
Then I copied the dummy and vzdev packages where I could get to them inside the vps
vzctl exec 104 rpm -i /var/cache/yum/base/packages/dummy-fedora-core-4-1.0-3.swsoft.i386.rpm /var/cache/yum/base/packages/vzdev-3.3.13-1.3.swsoft.i386.rpm
Then I restarted the VPS and I was able to successfully enter it again. The package removal hasn't seemed to hurt anything but time will tell. Now to avoid the situation in the future...
--
TYL, Scott Dowdle
Belgrade, Montana, USA
|
|
|