News:

Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com

Main Menu

Diskless md (Problem)

Started by darkwizard864, November 22, 2017, 03:10:26 PM

Previous topic - Next topic

darkwizard864

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

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.
If I helped you, feel free to buy me a coffee: [url="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES"]https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES[/url]

darkwizard864

I see I do have 3.13.0.77 witch only one core seems to like and 4.4 also installed

Marie.O

Did you look at line 6 to understand how it determines the correct kernel to copy over?
If I helped you, feel free to buy me a coffee: [url="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES"]https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES[/url]

darkwizard864

thank you for info I think I got it to work

Marie.O

Nice. Did you remove the extraneous directories the script found in /lib/modules?
If I helped you, feel free to buy me a coffee: [url="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES"]https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES[/url]

darkwizard864

yes
it seems to boot but after md reboots second time it kernel panic .

Marie.O

During first phase it probably installs some new drivers. I would check in that direction.
If I helped you, feel free to buy me a coffee: [url="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES"]https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES[/url]