1 |
I've got (at least) two servers that lose their root partition after |
2 |
this upgrade. One of them has an HP cciss SCSI RAID controller; the |
3 |
other has a single IDE hard drive. Assuming the problem is something |
4 |
common, I'll stick to describing the one with the array for now. |
5 |
|
6 |
First of all, I didn't touch /etc/fstab: |
7 |
|
8 |
/dev/cciss/c0d0p2 /boot ext3 noauto,noatime 1 2 |
9 |
/dev/cciss/c0d0p3 / ext4 acl,noatime 0 1 |
10 |
/dev/cciss/c0d0p1 none swap sw 0 0 |
11 |
|
12 |
I built the kernel after a make oldconfig, and updated grub.conf: |
13 |
|
14 |
title Gentoo Linux 2.6.36-hardened-r6 |
15 |
root (hd0,1) |
16 |
kernel /kernel-2.6.36-hardened-r6 |
17 |
|
18 |
It's actually there: |
19 |
|
20 |
# /bin/ls /boot/kernel-2.6.36-hardened-r6 |
21 |
/boot/kernel-2.6.36-hardened-r6 |
22 |
|
23 |
But upon reboot, this happens: |
24 |
|
25 |
http://michael.orlitzky.com/images/untouched.jpg |
26 |
|
27 |
So, I tried it with root=/dev/cciss/c0d0p3: |
28 |
|
29 |
http://michael.orlitzky.com/images/with_root_param.jpg |
30 |
|
31 |
It clearly sees my partitions, since it lists them all. The root is |
32 |
ext4, which is compiled into the kernel: |
33 |
|
34 |
# grep EXT4 .config |
35 |
CONFIG_EXT4_FS=y |
36 |
CONFIG_EXT4_FS_XATTR=y |
37 |
CONFIG_EXT4_FS_POSIX_ACL=y |
38 |
# CONFIG_EXT4_FS_SECURITY is not set |
39 |
# CONFIG_EXT4_DEBUG is not set |
40 |
|
41 |
Now I'm at a loss. There must have been something else that I did during |
42 |
the make oldconfig that broke it. I keep my kernel configs in git, so |
43 |
here's the diff (with context stripped) from my previous kernel, |
44 |
2.6.32-hardened-r22. If anyone has any ideas, I'd appreciate it: |
45 |
|
46 |
+CONFIG_INSTRUCTION_DECODER=y |
47 |
-CONFIG_GENERIC_TIME=y |
48 |
+CONFIG_NEED_SG_DMA_LENGTH=y |
49 |
+CONFIG_HAVE_EARLY_RES=y |
50 |
+CONFIG_ARCH_HWEIGHT_CFLAGS="-fcall-saved-ecx -fcall-saved-edx" |
51 |
+CONFIG_CROSS_COMPILE="" |
52 |
+CONFIG_HAVE_KERNEL_LZO=y |
53 |
+CONFIG_PERF_EVENTS=y |
54 |
+CONFIG_HAVE_OPTPROBES=y |
55 |
+CONFIG_HAVE_REGS_AND_STACK_ACCESS_API=y |
56 |
+CONFIG_HAVE_HW_BREAKPOINT=y |
57 |
+CONFIG_HAVE_MIXED_BREAKPOINTS_REGS=y |
58 |
+CONFIG_HAVE_USER_RETURN_NOTIFIER=y |
59 |
+CONFIG_HAVE_PERF_EVENTS_NMI=y |
60 |
+CONFIG_INLINE_SPIN_UNLOCK=y |
61 |
+CONFIG_INLINE_SPIN_UNLOCK_IRQ=y |
62 |
+CONFIG_INLINE_READ_UNLOCK=y |
63 |
+CONFIG_INLINE_READ_UNLOCK_IRQ=y |
64 |
+CONFIG_INLINE_WRITE_UNLOCK=y |
65 |
+CONFIG_INLINE_WRITE_UNLOCK_IRQ=y |
66 |
+CONFIG_MUTEX_SPIN_ON_OWNER=y |
67 |
+CONFIG_NO_BOOTMEM=y |
68 |
-CONFIG_X86_L1_CACHE_BYTES=64 |
69 |
-CONFIG_X86_INTERNODE_CACHE_BYTES=64 |
70 |
+CONFIG_X86_INTERNODE_CACHE_SHIFT=7 |
71 |
-CONFIG_HAVE_MLOCK=y |
72 |
-CONFIG_HAVE_MLOCKED_PAGE_BIT=y |
73 |
-CONFIG_ACPI_DOCK=y |
74 |
+CONFIG_ACPI_HED=m |
75 |
+CONFIG_ACPI_APEI=y |
76 |
+CONFIG_ACPI_APEI_GHES=m |
77 |
+CONFIG_INTEL_IDLE=y |
78 |
+CONFIG_PCIEASPM=y |
79 |
+CONFIG_PCI_IOAPIC=y |
80 |
-CONFIG_PACKET_MMAP=y |
81 |
+ |
82 |
+ |
83 |
+ |
84 |
+CONFIG_NETFILTER_XT_MATCH_OSF=m |
85 |
-CONFIG_NETFILTER_XT_MATCH_OSF=m |
86 |
+CONFIG_RPS=y |
87 |
+ |
88 |
+CONFIG_SCSI_MOD=y |
89 |
+ |
90 |
+ |
91 |
- |
92 |
+CONFIG_VGA_ARB_MAX_GPUS=2 |
93 |
+CONFIG_USB_EHCI_TT_NEWSCHED=y |
94 |
- |
95 |
-CONFIG_INOTIFY=y |
96 |
+CONFIG_PAX_ELFRELOCS=y |
97 |
+CONFIG_DEFAULT_SECURITY_DAC=y |
98 |
+CONFIG_DEFAULT_SECURITY="" |
99 |
-CONFIG_CRYPTO_FIPS=y |
100 |
-CONFIG_CRYPTO_AEAD2=y |
101 |
-CONFIG_CRYPTO_BLKCIPHER=m |
102 |
-CONFIG_CRYPTO_BLKCIPHER2=y |
103 |
-CONFIG_CRYPTO_RNG=m |
104 |
-CONFIG_CRYPTO_RNG2=y |
105 |
-CONFIG_CRYPTO_PCOMP=y |
106 |
-CONFIG_CRYPTO_MANAGER=y |
107 |
-CONFIG_CRYPTO_MANAGER2=y |
108 |
-CONFIG_CRYPTO_WORKQUEUE=y |
109 |
-CONFIG_CRYPTO_ECB=m |
110 |
-CONFIG_CRYPTO_CRC32C_INTEL=m |
111 |
-CONFIG_CRYPTO_MD5=m |
112 |
-CONFIG_CRYPTO_SHA512=m |
113 |
+CONFIG_CRYPTO_AES_586=m |
114 |
-CONFIG_CRYPTO_DES=m |
115 |
-CONFIG_CRYPTO_ZLIB=y |
116 |
-CONFIG_CRYPTO_ANSI_CPRNG=m |
117 |
-CONFIG_ZLIB_INFLATE=y |
118 |
-CONFIG_ZLIB_DEFLATE=y |