Hi, Note: Please do this on a test VM. My issue: I took the output of the following command $ yum list installed | xargs -n3 | column -t | tail -n +3 |cut -d' ' -f1 > packages.list from a CentOS 7.7 Installation. and did $ dnf install $(cat packages.list) --setopt=strict=0 on Freshly installed Minimal CentOS 8 VM. When I reboot I get Failed to switch root: Specified switch root path /sysroot does not seem to be an OS tree. os-release file is missing. What am I doing wrong? packages.list attached thanks --- Thomas Stephen Lee
Hi, http://bit.ly/packages-list missing attachment thanks --- Thomas Stephen Lee On Wed, Oct 16, 2019 at 4:00 PM Thomas Stephen Lee <lee.iitb at gmail.com> wrote:> Hi, > > Note: Please do this on a test VM. > > My issue: > > I took the output of the following command > > $ yum list installed | xargs -n3 | column -t | tail -n +3 |cut -d' ' -f1 > > packages.list > > from a CentOS 7.7 Installation. > > and did > > $ dnf install $(cat packages.list) --setopt=strict=0 > > on Freshly installed Minimal CentOS 8 VM. > > When I reboot I get > > Failed to switch root: Specified switch root path /sysroot does not seem > to be an OS tree. os-release file is missing. > > What am I doing wrong? > > packages.list attached > > thanks > > --- > Thomas Stephen Lee >
On Wed, Oct 16, 2019 at 04:00:20PM +0530, Thomas Stephen Lee wrote:> Failed to switch root: Specified switch root path /sysroot does not seem to > be an OS tree. os-release file is missing. > > What am I doing wrong?Tested, and yes, this happens after a reboot, grub2 isn't giving the initrd a root disk to switch to. I had to edit the grub.cfg and add a single line, set default_kernelopts="..." (using what was GRUB_CMDLINE_LINUX= was set in /etc/default/grub) I'm not exactly sure which package that was installed that caused this. -- Jonathan Billings <billings at negate.org>
On 10/16/19 4:05 PM, Jonathan Billings wrote:> On Wed, Oct 16, 2019 at 04:00:20PM +0530, Thomas Stephen Lee wrote: >> Failed to switch root: Specified switch root path /sysroot does not seem to >> be an OS tree. os-release file is missing. >> >> What am I doing wrong? > > Tested, and yes, this happens after a reboot, grub2 isn't giving the > initrd a root disk to switch to. > > I had to edit the grub.cfg and add a single line, > set default_kernelopts="..." > > (using what was GRUB_CMDLINE_LINUX= was set in /etc/default/grub) > > I'm not exactly sure which package that was installed that caused > this. >Create a snapshot of clean VM and divide that list in 10 pieces and install them one at the time and reboot afterwards. If VM boots, create another snapshot. When it fails, reverse to previous snaphot and divide that segment into 5-10 smaller pieces, rinse and repeat. -- Ljubomir Ljubojevic (Love is in the Air) PL Computers Serbia, Europe StarOS, Mikrotik and CentOS/RHEL/Linux consultant
Maybe Matching Threads
- Crashed a CentOS 8 installation.
- AMD Liano A8 Processors supported on CentOS 6.x?
- MySQL Can't create file '/tmp/#sql2e0_98_0.frm' (errno: 9) problem
- Help with VMware ESXi manager for CentOS - newbie level
- Booting problem after update, how to track order of starting services