You are not logged in.

#1 2012-08-31 02:16:01

jithinkr
Member
Registered: 2011-06-01
Posts: 26

[SOLVED]Mkinitcpio generates image without adding any modules.

I recently updated arch using pacman -Syu.

During update mkinitcpio was run and there was a warning which said

WARNING: No modules were added to the image. This is probably not what you want.

This warning had been printed for both the default and fallback images.
I didn't give much thought to these and rebooted the system. But later it wouldn't boot into arch.
It stops with the error that the root device could not be found.
I chrooted using the latest arch snapshot and tried running,

mkinitcpio -p linux

But I still get the same warning.

I also tried running the following (this was based on some of the forum discussions related to this problem.)

pacman -S udev
pacman -S mkinitcpio
pacman -S linux

But still mkinitcpio generates images with the warning.

I am not able to deduce what is causing the issue. Please help.

Issue : Broken grep.
Solution :
Chroot using a Live CD.
Reinstall grep.
Rerun mkinitcpio -p linux

Last edited by jithinkr (2012-09-14 18:29:59)

Offline

#2 2012-08-31 04:59:05

ConnorBehan
Package Maintainer (PM)
From: Long Island NY
Registered: 2007-07-05
Posts: 1,359
Website

Re: [SOLVED]Mkinitcpio generates image without adding any modules.

Your modules might've been in the wrong directory. Did you get through the /lib -> /usr/lib migration unscathed?


6EA3 F3F3 B908 2632 A9CB E931 D53A 0445 B47A 0DAB
Great things come in tar.xz packages.

Offline

#3 2012-08-31 05:12:11

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: [SOLVED]Mkinitcpio generates image without adding any modules.

Post your /etc/mkinitcpio.conf.


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#4 2012-08-31 11:25:06

jithinkr
Member
Registered: 2011-06-01
Posts: 26

Re: [SOLVED]Mkinitcpio generates image without adding any modules.

@Connor

I believe I did. That was in July right? Yeah, I guess I didn't have any issues immediately after that. I have been using Arch without issues until a couple of days back when this issue popped up after an update.

I checked my /usr/lib/modules folder.

It has these folders in it : 3.5.3-1-ARCH, extramodules-3.4-ARCH and extramodules-3.5-ARCH

@DSpider

Here is my mkinitcpio.conf file.

# vim:set ft=sh
# MODULES
# The following modules are loaded before any boot hooks are
# run.  Advanced users may wish to specify all system modules
# in this array.  For instance:
#     MODULES="piix ide_disk reiserfs"
MODULES=""

# BINARIES
# This setting includes any additional binaries a given user may
# wish into the CPIO image.  This is run first, so it may be used to
# override the actual binaries used in a given hook.
# (Existing files are NOT overwritten if already added)
# BINARIES are dependency parsed, so you may safely ignore libraries
BINARIES=""

# FILES
# This setting is similar to BINARIES above, however, files are added
# as-is and are not parsed in any way.  This is useful for config files.
# Some users may wish to include modprobe.conf for custom module options
# like so:
#    FILES="/etc/modprobe.d/modprobe.conf"
FILES=""

# HOOKS
# This is the most important setting in this file.  The HOOKS control the
# modules and scripts added to the image, and what happens at boot time.
# Order is important, and it is recommended that you do not change the
# order in which HOOKS are added.  Run 'mkinitcpio -H <hook name>' for
# help on a given hook.
# 'base' is _required_ unless you know precisely what you are doing.
# 'udev' is _required_ in order to automatically load modules
# 'filesystems' is _required_ unless you specify your fs modules in MODULES
# Examples:
##   This setup specifies all modules in the MODULES setting above.
##   No raid, lvm2, or encrypted root is needed.
#    HOOKS="base"
#
##   This setup will autodetect all modules for your system and should
##   work as a sane default
    HOOKS="base udev autodetect pata scsi sata filesystems"
#
##   This is identical to the above, except the old ide subsystem is
##   used for IDE devices instead of the new pata subsystem.
#    HOOKS="base udev autodetect ide scsi sata filesystems"
#
##   This setup will generate a 'full' image which supports most systems.
##   No autodetection is done.
#    HOOKS="base udev pata scsi sata usb filesystems"
#
##   This setup assembles a pata mdadm array with an encrypted root FS.
##   Note: See 'mkinitcpio -H mdadm' for more information on raid devices.
#    HOOKS="base udev pata mdadm encrypt filesystems"
#
##   This setup loads an lvm2 volume group on a usb device.
#    HOOKS="base udev usb lvm2 filesystems"
#    HOOKS="base udev autodetect pata scsi sata resume filesystems usbinput"

# COMPRESSION
# Use this to compress the initramfs image. With kernels earlier than
# 2.6.30, only gzip is supported, which is also the default. Newer kernels
# support gzip, bzip2 and lzma. Kernels 2.6.38 and later support xz
# compression.
#COMPRESSION="gzip"
#COMPRESSION="bzip2"
#COMPRESSION="lzma"
#COMPRESSION="xz"
#COMPRESSION="lzop"

# COMPRESSION_OPTIONS
# Additional options for the compressor
#COMPRESSION_OPTIONS=""

[/quote]

earlier I had the line
[quote]
    HOOKS="base udev autodetect pata scsi sata resume filesystems usbinput"
[/quote]

uncommented instead of the
[quote]
    HOOKS="base udev autodetect pata scsi sata filesystems"

line.

Edited the post as per karol's post.

Last edited by jithinkr (2012-08-31 17:06:45)

Offline

#5 2012-08-31 15:53:58

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED]Mkinitcpio generates image without adding any modules.

jithinkr, please edit your post.
When pasting code, please use [ code ] tags https://bbs.archlinux.org/help.php#bbcode

like this

It makes the code more readable and more convenient to scroll through.

Offline

#6 2012-08-31 16:22:17

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: [SOLVED]Mkinitcpio generates image without adding any modules.

Here's what mine looks like:

$ cat /etc/mkinitcpio.conf
MODULES="pata_amd sata_nv ehci-hcd ohci-hcd ext2 ext3 ext4 vfat snd-hda-intel nouveau"

HOOKS="base udev autodetect pata scsi sata usbinput filesystems fsck"

https://wiki.archlinux.org/index.php/Mkinitcpio


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#7 2012-08-31 17:19:10

ConnorBehan
Package Maintainer (PM)
From: Long Island NY
Registered: 2007-07-05
Posts: 1,359
Website

Re: [SOLVED]Mkinitcpio generates image without adding any modules.

My mkinitcpio.conf looks a lot like yours jithinkr so I don't think that's problematic. Was your kmod up to date when you tried? Try running "depmod -a".


6EA3 F3F3 B908 2632 A9CB E931 D53A 0445 B47A 0DAB
Great things come in tar.xz packages.

Offline

#8 2012-08-31 17:46:21

jithinkr
Member
Registered: 2011-06-01
Posts: 26

Re: [SOLVED]Mkinitcpio generates image without adding any modules.

@ConnorBehan

So I don't have to mention all the modules in mkinitcpio? Okay.

Pacman says nothing to do, when trying to update. So I guess kmod is also up to date.
I will chroot again and check kmod's version anyway. What else should I check for?

I will run depmod -a and post what I get.

Thanks.

Offline

#9 2012-08-31 18:11:25

jithinkr
Member
Registered: 2011-06-01
Posts: 26

Re: [SOLVED]Mkinitcpio generates image without adding any modules.

I ran,

depmod -a 3.5.3-1-ARCH

because the iso was at 3.4.7

The command ran and exited without any error. Then I ran

mkinitcpio -p linux

which responds with the same warning.

I ran

kmod --version
pacman -Ss kmod

And found that kmod is at version 9 (with 9-2 installed).

Offline

#10 2012-08-31 23:44:57

ConnorBehan
Package Maintainer (PM)
From: Long Island NY
Registered: 2007-07-05
Posts: 1,359
Website

Re: [SOLVED]Mkinitcpio generates image without adding any modules.

Oh, you'll want to do "mkinitcpio -p linux -k 3.5.3-1-ARCH" then.


6EA3 F3F3 B908 2632 A9CB E931 D53A 0445 B47A 0DAB
Great things come in tar.xz packages.

Offline

#11 2012-09-01 01:14:30

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [SOLVED]Mkinitcpio generates image without adding any modules.

ConnorBehan wrote:

Oh, you'll want to do "mkinitcpio -p linux -k 3.5.3-1-ARCH" then.

That doesn't work. You generally can't override options set by a preset. A preset will also work just fine in a chroot, even when the kernel in the chroot doesn't match the one from the host, because the version is extracted from the image itself in /boot.

Offline

#12 2012-09-01 02:09:04

jithinkr
Member
Registered: 2011-06-01
Posts: 26

Re: [SOLVED]Mkinitcpio generates image without adding any modules.

@ConnorBehan, @falconindy

I tried mkinitcpio with the 'k' flag and mentioned the kernel version.
Yup, even if kernels of chroot and host don't match the preset works fine.

So, still no modules added to the image (the warning is printed).

Maybe autodetect of the modules is not working?

Should I try mentioning all the required modules in mkinitcpio.conf like in Dspider's configuration?
And how should I go about finding all the necessary modules that has to be mentioned in the config file?

Offline

#13 2012-09-01 02:24:46

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [SOLVED]Mkinitcpio generates image without adding any modules.

jithinkr wrote:

And how should I go about finding all the necessary modules that has to be mentioned in the config file?

http://blog.falconindy.com/articles/opt … tcpio.html

Offline

#14 2012-09-01 05:34:12

jithinkr
Member
Registered: 2011-06-01
Posts: 26

Re: [SOLVED]Mkinitcpio generates image without adding any modules.

@WonderWoofy

Thank you for the link.
Based on that I added ahci, sd_mod and ext4 to the modules line in mkinitcpio.conf.

But on running mkinitcpio -p linux,

it throws error that the modules can't be found. o_O

Result of
mkinitcpio -M -k 3.5.3-1-ARCH

==> Modules autodetected
ac
ahci
ata_generic
battery
button
ehci_hcd
evdev
forcedeth
hp_wmi
i2c_nforce2
joydev
k10temp
kvm_amd
microcode
nouveau
nvidia
ohci_hcd
pata_acpi
pata_amd
pcspkr
powernow_k8
processor
psmouse
sd_mod
serio_raw
shpchp
snd_hda_intel
sr_mod
ssb
thermal
uas
ums_realtek
usbcore
usb_storage
uvcvideo
video
wmi
ext4

Result of lspci -vk

00:00.0 RAM memory: NVIDIA Corporation MCP78S [GeForce 8200] Memory Controller (rev a2)
	Subsystem: Hewlett-Packard Company Device 360a
	Flags: bus master, 66MHz, fast devsel, latency 0
	Capabilities: [94] HyperTransport: #1a
	Capabilities: [60] HyperTransport: Retry Mode
	Capabilities: [44] HyperTransport: Slave or Primary Interface
	Capabilities: [d0] HyperTransport: #1c

00:01.0 ISA bridge: NVIDIA Corporation Device 075e (rev a2)
	Subsystem: Hewlett-Packard Company Device 360a
	Flags: bus master, 66MHz, fast devsel, latency 0
	I/O ports at 1a00 [size=256]

00:01.1 SMBus: NVIDIA Corporation MCP78S [GeForce 8200] SMBus (rev a1)
	Subsystem: Hewlett-Packard Company Device 360a
	Flags: 66MHz, fast devsel, IRQ 10
	I/O ports at 3080 [size=64]
	I/O ports at 3040 [size=64]
	I/O ports at 3000 [size=64]
	Capabilities: [44] Power Management version 2
	Kernel driver in use: nForce2_smbus

00:01.3 Co-processor: NVIDIA Corporation MCP78S [GeForce 8200] Co-Processor (rev a2)
	Subsystem: Hewlett-Packard Company Device 360a
	Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 11
	Memory at c0080000 (32-bit, non-prefetchable) [size=512K]

00:01.4 RAM memory: NVIDIA Corporation MCP78S [GeForce 8200] Memory Controller (rev a1)
	Subsystem: Hewlett-Packard Company Device 360a
	Flags: 66MHz, fast devsel

00:02.0 USB controller: NVIDIA Corporation MCP78S [GeForce 8200] OHCI USB 1.1 Controller (rev a1) (prog-if 10 [OHCI])
	Subsystem: Hewlett-Packard Company Device 360a
	Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 17
	Memory at c0006000 (32-bit, non-prefetchable) [size=4K]
	Capabilities: [44] Power Management version 2
	Kernel driver in use: ohci_hcd

00:02.1 USB controller: NVIDIA Corporation MCP78S [GeForce 8200] EHCI USB 2.0 Controller (rev a1) (prog-if 20 [EHCI])
	Subsystem: Hewlett-Packard Company Device 360a
	Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 17
	Memory at c0007000 (32-bit, non-prefetchable) [size=256]
	Capabilities: [44] Debug port: BAR=1 offset=00a0
	Capabilities: [80] Power Management version 2
	Kernel driver in use: ehci_hcd

00:04.0 USB controller: NVIDIA Corporation MCP78S [GeForce 8200] OHCI USB 1.1 Controller (rev a1) (prog-if 10 [OHCI])
	Subsystem: Hewlett-Packard Company Device 360a
	Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 16
	Memory at c0008000 (32-bit, non-prefetchable) [size=4K]
	Capabilities: [44] Power Management version 2
	Kernel driver in use: ohci_hcd

00:04.1 USB controller: NVIDIA Corporation MCP78S [GeForce 8200] EHCI USB 2.0 Controller (rev a1) (prog-if 20 [EHCI])
	Subsystem: Hewlett-Packard Company Device 360a
	Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 16
	Memory at c0007400 (32-bit, non-prefetchable) [size=256]
	Capabilities: [44] Debug port: BAR=1 offset=00a0
	Capabilities: [80] Power Management version 2
	Kernel driver in use: ehci_hcd

00:06.0 IDE interface: NVIDIA Corporation MCP78S [GeForce 8200] IDE (rev a1) (prog-if 8a [Master SecP PriP])
	Subsystem: Hewlett-Packard Company Device 360a
	Flags: bus master, 66MHz, fast devsel, latency 0
	[virtual] Memory at 000001f0 (32-bit, non-prefetchable) [size=8]
	[virtual] Memory at 000003f0 (type 3, non-prefetchable)
	[virtual] Memory at 00000170 (32-bit, non-prefetchable) [size=8]
	[virtual] Memory at 00000370 (type 3, non-prefetchable)
	I/O ports at 30c0 [size=16]
	Capabilities: [44] Power Management version 2
	Kernel driver in use: pata_amd

00:07.0 Audio device: NVIDIA Corporation MCP72XE/MCP72P/MCP78U/MCP78S High Definition Audio (rev a1)
	Subsystem: Hewlett-Packard Company Device 360a
	Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 19
	Memory at c0000000 (32-bit, non-prefetchable) [size=16K]
	Capabilities: [44] Power Management version 2
	Capabilities: [50] MSI: Enable- Count=1/1 Maskable+ 64bit+
	Capabilities: [6c] HyperTransport: MSI Mapping Enable+ Fixed+
	Kernel driver in use: snd_hda_intel

00:08.0 PCI bridge: NVIDIA Corporation MCP78S [GeForce 8200] PCI Bridge (rev a1) (prog-if 01 [Subtractive decode])
	Flags: bus master, 66MHz, fast devsel, latency 0
	Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
	Capabilities: [b8] Subsystem: NVIDIA Corporation Device cb84
	Capabilities: [8c] HyperTransport: MSI Mapping Enable+ Fixed-

00:09.0 IDE interface: NVIDIA Corporation MCP78S [GeForce 8200] SATA Controller (non-AHCI mode) (rev a2) (prog-if 85 [Master SecO PriO])
	Subsystem: Hewlett-Packard Company Device 360a
	Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 40
	I/O ports at 30f0 [size=8]
	I/O ports at 30e4 [size=4]
	I/O ports at 30e8 [size=8]
	I/O ports at 30e0 [size=4]
	I/O ports at 30d0 [size=16]
	Memory at c0004000 (32-bit, non-prefetchable) [size=8K]
	Capabilities: [44] Power Management version 2
	Capabilities: [8c] SATA HBA v1.0
	Capabilities: [b0] MSI: Enable+ Count=1/8 Maskable- 64bit+
	Capabilities: [ec] HyperTransport: MSI Mapping Enable+ Fixed+
	[b]Kernel driver in use: ahci[/b]

00:0a.0 Ethernet controller: NVIDIA Corporation MCP77 Ethernet (rev a2)
	Subsystem: Hewlett-Packard Company Device 360a
	Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 41
	Memory at c0009000 (32-bit, non-prefetchable) [size=4K]
	I/O ports at 30f8 [size=8]
	Memory at c0007c00 (32-bit, non-prefetchable) [size=256]
	Memory at c0007800 (32-bit, non-prefetchable) [size=16]
	Capabilities: [44] Power Management version 2
	Capabilities: [50] MSI: Enable+ Count=1/16 Maskable+ 64bit+
	Capabilities: [6c] HyperTransport: MSI Mapping Enable+ Fixed+
	Kernel driver in use: forcedeth

00:0b.0 PCI bridge: NVIDIA Corporation MCP78S [GeForce 8200] PCI Express Bridge (rev a1) (prog-if 00 [Normal decode])
	Flags: bus master, fast devsel, latency 0
	Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
	I/O behind bridge: 00004000-00004fff
	Memory behind bridge: c1000000-c1ffffff
	Prefetchable memory behind bridge: 00000000c4000000-00000000dfffffff
	Capabilities: [40] Subsystem: NVIDIA Corporation Device 0000
	Capabilities: [48] Power Management version 2
	Capabilities: [60] HyperTransport: MSI Mapping Enable+ Fixed-

00:14.0 PCI bridge: NVIDIA Corporation MCP78S [GeForce 8200] PCI Bridge (rev a1) (prog-if 00 [Normal decode])
	Flags: bus master, fast devsel, latency 0
	Bus: primary=00, secondary=07, subordinate=07, sec-latency=0
	Memory behind bridge: c2000000-c20fffff
	Capabilities: [40] Subsystem: NVIDIA Corporation Device 0000
	Capabilities: [48] Power Management version 3
	Capabilities: [50] MSI: Enable- Count=1/2 Maskable- 64bit+
	Capabilities: [60] HyperTransport: MSI Mapping Enable+ Fixed-
	Capabilities: [80] Express Root Port (Slot+), MSI 00
	Kernel driver in use: pcieport

00:18.0 Host bridge: Advanced Micro Devices [AMD] Family 11h Processor HyperTransport Configuration (rev 40)
	Flags: fast devsel
	Capabilities: [80] HyperTransport: Host or Secondary Interface

00:18.1 Host bridge: Advanced Micro Devices [AMD] Family 11h Processor Address Map
	Flags: fast devsel

00:18.2 Host bridge: Advanced Micro Devices [AMD] Family 11h Processor DRAM Controller
	Flags: fast devsel

00:18.3 Host bridge: Advanced Micro Devices [AMD] Family 11h Processor Miscellaneous Control
	Flags: fast devsel
	Capabilities: [f0] Secure device <?>
	Kernel driver in use: k10temp

00:18.4 Host bridge: Advanced Micro Devices [AMD] Family 11h Processor Link Control
	Flags: fast devsel

02:00.0 VGA compatible controller: NVIDIA Corporation C77 [GeForce 8200M G] (rev a2) (prog-if 00 [VGA controller])
	Subsystem: Hewlett-Packard Company Device 360a
	Flags: bus master, fast devsel, latency 0, IRQ 20
	Memory at c1000000 (32-bit, non-prefetchable) [size=16M]
	Memory at d0000000 (64-bit, prefetchable) [size=256M]
	Memory at c4000000 (64-bit, prefetchable) [size=32M]
	I/O ports at 4000 [size=128]
	[virtual] Expansion ROM at c6000000 [disabled] [size=128K]
	Capabilities: [60] Power Management version 2
	Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
	Kernel driver in use: nouveau

07:00.0 Network controller: Broadcom Corporation BCM4312 802.11b/g LP-PHY (rev 01)
	Subsystem: Hewlett-Packard Company BCM4312 802.11b/g Wireless LAN Controller
	Flags: bus master, fast devsel, latency 0, IRQ 23
	Memory at c2000000 (64-bit, non-prefetchable) [size=16K]
	Capabilities: [40] Power Management version 3
	Capabilities: [58] Vendor Specific Information: Len=78 <?>
	Capabilities: [e8] MSI: Enable- Count=1/1 Maskable- 64bit+
	Capabilities: [d0] Express Endpoint, MSI 00
	Capabilities: [100] Advanced Error Reporting
	Capabilities: [13c] Virtual Channel
	Capabilities: [160] Device Serial Number 40-24-00-ff-ff-2f-00-21
	Capabilities: [16c] Power Budgeting <?>
	Kernel driver in use: b43-pci-bridge

Offline

#15 2012-09-01 06:01:20

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [SOLVED]Mkinitcpio generates image without adding any modules.

Sounds like it is likely the state of your system that is causing issues.  Have you tried something as simple as reinstalling your kernel?

Offline

#16 2012-09-01 07:00:31

jithinkr
Member
Registered: 2011-06-01
Posts: 26

Re: [SOLVED]Mkinitcpio generates image without adding any modules.

@WonderWoofy

By reinstalling the kernel you mean to rollback the kernel to an earlier version?

Offline

#17 2012-09-01 07:24:02

jithinkr
Member
Registered: 2011-06-01
Posts: 26

Re: [SOLVED]Mkinitcpio generates image without adding any modules.

I tried downgrading to 3.4.9 from 3.5.3 but it failed as nvidia requires linux>=3.5.

What do I do next?

I guess the last option will be to reinstall from the 2012.08 image, but I would like to exhaust every other option before this.
And I am not sure if the issue will reappear on upgrading after reinstallation.

Also I am still using Grub legacy haven't upgraded to Grub 2.

Would this be causing any issue?

Offline

#18 2012-09-01 15:20:44

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [SOLVED]Mkinitcpio generates image without adding any modules.

Oh I don't think rolling back would be necessary, but I guess what I was thinking was maybe chroot into your system, do a pacman -R linux && pacman -S linux.  You know something *simple*... but if you already tried rolling back to 3.4.9 and then back to 3.5.3, that would in effect be achieving the same ting with more steps.

Offline

#19 2012-09-01 16:41:17

jithinkr
Member
Registered: 2011-06-01
Posts: 26

Re: [SOLVED]Mkinitcpio generates image without adding any modules.

Well downgrading didn't work, and so trying to remove it also won't I guess.

nvidia complains that linux is needed and hence can't be removed, so how should I proceed.

Offline

#20 2012-09-01 16:47:58

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: [SOLVED]Mkinitcpio generates image without adding any modules.

https://wiki.archlinux.org/index.php/Pa … g_packages

# man pacman
# pacman -Rdd linux

Last edited by DSpider (2012-09-01 16:49:02)


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#21 2012-09-01 16:53:15

ConnorBehan
Package Maintainer (PM)
From: Long Island NY
Registered: 2007-07-05
Posts: 1,359
Website

Re: [SOLVED]Mkinitcpio generates image without adding any modules.

Yeah, you don't need nvidia if you're just doing system recovery in a console. If you downgrade your kernel to make it the same version as the recovery CD and get the image generation to work that way, you'll be able to boot into your system again, upgrade the kernel properly and *then* have nvidia work.


6EA3 F3F3 B908 2632 A9CB E931 D53A 0445 B47A 0DAB
Great things come in tar.xz packages.

Offline

#22 2012-09-01 17:43:24

jithinkr
Member
Registered: 2011-06-01
Posts: 26

Re: [SOLVED]Mkinitcpio generates image without adding any modules.

I tried downgrading linux and mkinitcpio using -Udd flag for pacman to a previous version.

and then tried regenerate the images.

Still same warning. hmm

Offline

#23 2012-09-01 17:56:21

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: [SOLVED]Mkinitcpio generates image without adding any modules.

Um, pacman -Udd? Dafuq...

Dude.

# pacman -Rdd linux
# pacman -U /path/or/address/to/linux-*.xz

"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#24 2012-09-01 18:00:48

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [SOLVED]Mkinitcpio generates image without adding any modules.

How is that any different than just running -Udd?

This thread is useless without debug output. Use the latest kernel, rule out the preset.

mkinitcpio -g /boot/initramfs-linux.img -k /boot/vmlinuz-linux -v |& tee log

Post the log file.

Offline

#25 2012-09-01 18:41:29

jithinkr
Member
Registered: 2011-06-01
Posts: 26

Re: [SOLVED]Mkinitcpio generates image without adding any modules.

@falconindy

I updated to the latest kernel and then ran the command

mkinitcpio -g /boot/initramfs-linux.img -k /boot/vmlinuz-linux -v |& tee log

and here is the log file,

==> Starting build: 
  -> Running build hook: [base]
    adding file: /bin/busybox
    adding symlink: /usr/lib/libc.so.6 -> /usr/lib/libc-2.16.so
    adding file: /usr/lib/libc-2.16.so
    adding symlink: /lib/ld-linux-x86-64.so.2 -> /usr/lib/ld-2.16.so
    adding file: /usr/lib/ld-2.16.so
    adding symlink: /usr/bin/[ -> busybox
    adding symlink: /usr/bin/[[ -> busybox
    adding symlink: /usr/bin/ash -> busybox
    adding symlink: /usr/bin/awk -> busybox
    adding symlink: /usr/bin/basename -> busybox
    adding symlink: /usr/bin/cat -> busybox
    adding symlink: /usr/bin/chgrp -> busybox
    adding symlink: /usr/bin/chmod -> busybox
    adding symlink: /usr/bin/chown -> busybox
    adding symlink: /usr/bin/chroot -> busybox
    adding symlink: /usr/bin/clear -> busybox
    adding symlink: /usr/bin/cp -> busybox
    adding symlink: /usr/bin/cttyhack -> busybox
    adding symlink: /usr/bin/cut -> busybox
    adding symlink: /usr/bin/dd -> busybox
    adding symlink: /usr/bin/df -> busybox
    adding symlink: /usr/bin/dirname -> busybox
    adding symlink: /usr/bin/dmesg -> busybox
    adding symlink: /usr/bin/du -> busybox
    adding symlink: /usr/bin/echo -> busybox
    adding symlink: /usr/bin/egrep -> busybox
    adding symlink: /usr/bin/env -> busybox
    adding symlink: /usr/bin/expr -> busybox
    adding symlink: /usr/bin/false -> busybox
    adding symlink: /usr/bin/free -> busybox
    adding symlink: /usr/bin/getopt -> busybox
    adding symlink: /usr/bin/grep -> busybox
    adding symlink: /usr/bin/halt -> busybox
    adding symlink: /usr/bin/head -> busybox
    adding symlink: /usr/bin/hexdump -> busybox
    adding symlink: /usr/bin/ifconfig -> busybox
    adding symlink: /usr/bin/init -> busybox
    adding symlink: /usr/bin/install -> busybox
    adding symlink: /usr/bin/ip -> busybox
    adding symlink: /usr/bin/ipaddr -> busybox
    adding symlink: /usr/bin/iplink -> busybox
    adding symlink: /usr/bin/iproute -> busybox
    adding symlink: /usr/bin/iprule -> busybox
    adding symlink: /usr/bin/iptunnel -> busybox
    adding symlink: /usr/bin/kbd_mode -> busybox
    adding symlink: /usr/bin/kill -> busybox
    adding symlink: /usr/bin/killall -> busybox
    adding symlink: /usr/bin/less -> busybox
    adding symlink: /usr/bin/ln -> busybox
    adding symlink: /usr/bin/loadfont -> busybox
    adding symlink: /usr/bin/loadkmap -> busybox
    adding symlink: /usr/bin/losetup -> busybox
    adding symlink: /usr/bin/ls -> busybox
    adding symlink: /usr/bin/md5sum -> busybox
    adding symlink: /usr/bin/mkdir -> busybox
    adding symlink: /usr/bin/mkfifo -> busybox
    adding symlink: /usr/bin/mknod -> busybox
    adding symlink: /usr/bin/mktemp -> busybox
    adding symlink: /usr/bin/mv -> busybox
    adding symlink: /usr/bin/nc -> busybox
    adding symlink: /usr/bin/netstat -> busybox
    adding symlink: /usr/bin/nslookup -> busybox
    adding symlink: /usr/bin/openvt -> busybox
    adding symlink: /usr/bin/pgrep -> busybox
    adding symlink: /usr/bin/pidof -> busybox
    adding symlink: /usr/bin/ping -> busybox
    adding symlink: /usr/bin/ping6 -> busybox
    adding symlink: /usr/bin/poweroff -> busybox
    adding symlink: /usr/bin/printf -> busybox
    adding symlink: /usr/bin/ps -> busybox
    adding symlink: /usr/bin/pwd -> busybox
    adding symlink: /usr/bin/readlink -> busybox
    adding symlink: /usr/bin/reboot -> busybox
    adding symlink: /usr/bin/rm -> busybox
    adding symlink: /usr/bin/rmdir -> busybox
    adding symlink: /usr/bin/route -> busybox
    adding symlink: /usr/bin/sed -> busybox
    adding symlink: /usr/bin/seq -> busybox
    adding symlink: /usr/bin/setfont -> busybox
    adding symlink: /usr/bin/sh -> busybox
    adding symlink: /usr/bin/sha1sum -> busybox
    adding symlink: /usr/bin/sha256sum -> busybox
    adding symlink: /usr/bin/sha512sum -> busybox
    adding symlink: /usr/bin/sleep -> busybox
    adding symlink: /usr/bin/sort -> busybox
    adding symlink: /usr/bin/stat -> busybox
    adding symlink: /usr/bin/strings -> busybox
    adding symlink: /usr/bin/tac -> busybox
    adding symlink: /usr/bin/tail -> busybox
    adding symlink: /usr/bin/telnet -> busybox
    adding symlink: /usr/bin/test -> busybox
    adding symlink: /usr/bin/tftp -> busybox
    adding symlink: /usr/bin/touch -> busybox
    adding symlink: /usr/bin/true -> busybox
    adding symlink: /usr/bin/umount -> busybox
    adding symlink: /usr/bin/uname -> busybox
    adding symlink: /usr/bin/uniq -> busybox
    adding symlink: /usr/bin/uptime -> busybox
    adding symlink: /usr/bin/vi -> busybox
    adding symlink: /usr/bin/wc -> busybox
    adding symlink: /usr/bin/wget -> busybox
    adding symlink: /usr/bin/yes -> busybox
    adding file: /usr/bin/kmod
    adding symlink: /usr/lib/libkmod.so.2 -> /usr/lib/libkmod.so.2.1.3
    adding file: /usr/lib/libkmod.so.2.1.3
    adding symlink: /usr/lib/libz.so.1 -> /usr/lib/libz.so.1.2.7
    adding file: /usr/lib/libz.so.1.2.7
    adding symlink: /usr/bin/depmod -> kmod
    adding symlink: /usr/bin/insmod -> kmod
    adding symlink: /usr/bin/rmmod -> kmod
    adding symlink: /usr/bin/lsmod -> kmod
    adding symlink: /usr/bin/modprobe -> kmod
    adding symlink: /usr/bin/modinfo -> kmod
    adding file: /sbin/blkid
    adding symlink: /usr/lib/libblkid.so.1 -> /usr/lib/libblkid.so.1.1.0
    adding file: /usr/lib/libblkid.so.1.1.0
    adding symlink: /usr/lib/libuuid.so.1 -> /usr/lib/libuuid.so.1.3.0
    adding file: /usr/lib/libuuid.so.1.3.0
    adding file: /bin/mount
    adding symlink: /usr/lib/libmount.so.1 -> /usr/lib/libmount.so.1.1.0
    adding file: /usr/lib/libmount.so.1.1.0
    adding file: /sbin/switch_root
    adding symlink: /etc/mtab -> /proc/self/mounts
    adding file: /init_functions
    adding file: /init
    adding file: /usr/lib/modprobe.d/usb-load-ehci-first.conf
  -> Running build hook: [udev]
    adding file: /etc/udev/udev.conf
    adding file: /usr/bin/udevd
    adding symlink: /usr/lib/libacl.so.1 -> /usr/lib/libacl.so.1.1.0
    adding file: /usr/lib/libacl.so.1.1.0
    adding symlink: /usr/lib/librt.so.1 -> /usr/lib/librt-2.16.so
    adding file: /usr/lib/librt-2.16.so
    adding symlink: /usr/lib/libattr.so.1 -> /usr/lib/libattr.so.1.1.0
    adding file: /usr/lib/libattr.so.1.1.0
    adding symlink: /usr/lib/libpthread.so.0 -> /usr/lib/libpthread-2.16.so
    adding file: /usr/lib/libpthread-2.16.so
    adding file: /usr/bin/udevadm
    adding file: /usr/lib/udev/rules.d/50-udev-default.rules
    adding file: /usr/lib/udev/rules.d/60-persistent-storage.rules
    adding file: /usr/lib/udev/rules.d/80-drivers.rules
    adding file: /usr/lib/udev/ata_id
    adding file: /usr/lib/udev/scsi_id
    adding file: /hooks/udev
  -> Running build hook: [autodetect]
    caching 1 modules
  -> Running build hook: [pata]
  -> Running build hook: [scsi]
  -> Running build hook: [sata]
  -> Running build hook: [filesystems]
==> WARNING: No modules were added to the image. This is probably not what you want.
==> Creating gzip initcpio image: /boot/initramfs-linux.img
7675 blocks
==> Image generation successful

Offline

Board footer

Powered by FluxBB