Gentoo Archives: gentoo-user

From: "Canek Peláez Valdés" <caneko@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: After /usr conflation: why not copy booting software to /sbin rather than initramfs?
Date: Tue, 03 Apr 2012 01:03:08
Message-Id: CADPrc80N=gy2U10S1rNV5cdvRsPOqLapRBsWGMt2VHHzyQNAeg@mail.gmail.com
In Reply to: Re: [gentoo-user] Re: After /usr conflation: why not copy booting software to /sbin rather than initramfs? by Dale
1 On Mon, Apr 2, 2012 at 7:19 PM, Dale <rdalek1967@×××××.com> wrote:
2 > Canek Peláez Valdés wrote:
3 >> On Mon, Apr 2, 2012 at 5:21 PM, Dale <rdalek1967@×××××.com> wrote:
4 >>> Neil Bothwick wrote:
5 >>>> zgrep DEVTMP /proc/config.gz
6 >>>
7 >>>
8 >>> Ooops, it sort of snipped a bit much.  lol   Here you go:
9 >>>
10 >>> root@fireball / # zgrep DEVTMP /proc/config.gz
11 >>> # CONFIG_DEVTMPFS is not set
12 >>> root@fireball / #
13 >>>
14 >>> Looks like a nope to me.  ;-)
15 >>
16 >> That was the reason for asking for your /usr/src/linux/.config file.
17 >> The udev ebuild ask for:
18 >>
19 >> CONFIG_CHECK="~BLK_DEV_BSG ~DEVTMPFS ~HOTPLUG ~INOTIFY_USER ~NET
20 >> ~PROC_FS ~SIGNALFD ~SYSFS ~!IDE ~!SYSFS_DEPRECATED
21 >> ~!SYSFS_DEPRECATED_V2"
22 >>
23 >> The dracut ebuild ask for:
24 >>
25 >> CONFIG_CHECK="~BLK_DEV_INITRD ~DEVTMPFS ~MODULES"
26 >>
27 >> So please check that you have all those options (and don't have the
28 >> ones with !), recompile your kernel, and reboot.
29 >>
30 >> Also, the divergence between /boot/kernel... and (hd0,0)/kernel... in
31 >> your grub could be causing  funny things. Check that also.
32 >>
33 >> Regards.
34 >
35 >
36 > OK.  I hate modules.  Can they be built into the kernel?  The only
37 > module I have is nvidia for my video card.
38
39 MODULES is only for the kernel to be *able* to load modules, not to
40 *make* modules. If you use nvidia.ko, you must already have it. All
41 the options can be compiled into the kernel; I had them like that:
42
43 $ grep "BLK_DEV_BSG\\|DEVTMPFS\\|HOTPLUG\\|INOTIFY_USER\\|NET=\\|PROC_FS\\|SIGNALFD\\|SYSFS"
44 /usr/src/linux/.config
45 # CONFIG_SYSFS_DEPRECATED is not set
46 CONFIG_HOTPLUG=y
47 CONFIG_SIGNALFD=y
48 CONFIG_BLK_DEV_BSG=y
49 # CONFIG_BLK_DEV_BSGLIB is not set
50 # CONFIG_MEMORY_HOTPLUG is not set
51 CONFIG_HOTPLUG_CPU=y
52 CONFIG_ARCH_ENABLE_MEMORY_HOTPLUG=y
53 CONFIG_ACPI_HOTPLUG_CPU=y
54 # CONFIG_HOTPLUG_PCI is not set
55 CONFIG_NET=y
56 CONFIG_INET=y
57 CONFIG_WIRELESS_EXT_SYSFS=y
58 CONFIG_DEVTMPFS=y
59 CONFIG_DEVTMPFS_MOUNT=y
60 # CONFIG_SCSI_PROC_FS is not set
61 # CONFIG_ISCSI_BOOT_SYSFS is not set
62 CONFIG_ETHERNET=y
63 CONFIG_USB_USBNET=y
64 CONFIG_RTC_INTF_SYSFS=y
65 # CONFIG_DMI_SYSFS is not set
66 CONFIG_INOTIFY_USER=y
67 CONFIG_PROC_FS=y
68 CONFIG_SYSFS=y
69
70
71 >
72 > Also, if you can put this in one email, what about the /dev line in fstab?
73
74 /dev should not be in /etc/fstab; but since you had this error:
75
76 > switch_root: failed to mount moving /dev to /sysroot/dev: Invaild argument
77 > switch_root: forcing unmount of /dev
78 > switch_root: failed to unlink dev: Directory not empty
79
80 I thought that it was maybe because you had /dev on fstab. Now we
81 know it was because you didn't compile DEVTMPFS in your kernel.
82
83 > I didn't check the ebuild but I don't recall seeing anything when I
84 > emerged dracut either.  o_O   Maybe we are on to something here.  ^_O
85
86 The messages appear for sure; CONFIG_CHECK is defined in
87 /usr/portage/eclass/linux-info.eclass, and if a config option is
88 missing, a non-fatal warning will appear. If you have them, check your
89 emerge logs:
90
91 cat /var/log/portage/sys-fs\:udev-* | less
92
93 You can look for the string:
94
95 * Checking for suitable kernel configuration options...
96 [ ok ]
97
98 (Obviously that's in my case).
99
100 You could also reemerge udev and dracut; if you haven't changed your
101 kernel config options, they will complain loudly about it.
102
103 I think that will solve the mistery; however, we will not know until
104 you reboot and actually test it (after recompiling your kernel, of
105 course).
106
107 Regards.
108 --
109 Canek Peláez Valdés
110 Posgrado en Ciencia e Ingeniería de la Computación
111 Universidad Nacional Autónoma de México

Replies