Author Topic: Diskless md (Problem)  (Read 11295 times)

darkwizard864

  • Veteran
  • ***
  • Posts: 131
    • View Profile
Diskless md (Problem)
« on: November 22, 2017, 03:10:26 pm »
I get this error
dcerouter_1047348:/# /usr/pluto/bin/Diskless_BuildDefaultImage.sh
cp: cannot stat ‘/boot/vmlinuz-4.4.0-66-generic’: No such file or directory
grep: /boot/config-4.4.0-66-generic: No such file or directory
depmod: WARNING: could not open /tmp/mkinitramfs_rwEjU1/lib/modules/4.4.0-66-generic/modules.order: No such file or directory
depmod: WARNING: could not open /tmp/mkinitramfs_rwEjU1/lib/modules/4.4.0-66-generic/modules.builtin: No such file or directory
dcerouter_1047348:/#

I get the error even after adding 4.4.0.66 image and headers.
and I re run script

Marie.O

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3676
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: Diskless md (Problem)
« Reply #1 on: November 22, 2017, 04:20:48 pm »
Seems to be an issue with kernel versioning and the command that tries to find that latest kernel. If you look at line 6 of Diskless_BuildDefaultImage.sh you will see how it tries to find the latest kernel. See if you have some leftover directories in /lib/modules from old kernel installs.

darkwizard864

  • Veteran
  • ***
  • Posts: 131
    • View Profile
Re: Diskless md (Problem)
« Reply #2 on: November 22, 2017, 08:00:17 pm »
I see I do have 3.13.0.77 witch only one core seems to like and 4.4 also installed

Marie.O

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3676
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: Diskless md (Problem)
« Reply #3 on: November 22, 2017, 08:22:31 pm »
Did you look at line 6 to understand how it determines the correct kernel to copy over?

darkwizard864

  • Veteran
  • ***
  • Posts: 131
    • View Profile
Re: Diskless md (Problem)
« Reply #4 on: November 22, 2017, 10:17:42 pm »
thank you for info I think I got it to work

Marie.O

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3676
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: Diskless md (Problem)
« Reply #5 on: November 22, 2017, 11:19:34 pm »
Nice. Did you remove the extraneous directories the script found in /lib/modules?

darkwizard864

  • Veteran
  • ***
  • Posts: 131
    • View Profile
Re: Diskless md (Problem)
« Reply #6 on: November 23, 2017, 03:41:13 am »
yes
it seems to boot but after md reboots second time it kernel panic .

Marie.O

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3676
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: Diskless md (Problem)
« Reply #7 on: November 23, 2017, 11:08:13 am »
During first phase it probably installs some new drivers. I would check in that direction.