1 |
On Wed, Mar 28, 2012 at 8:39 PM, Dale <rdalek1967@×××××.com> wrote: |
2 |
> Canek Peláez Valdés wrote: |
3 |
>> On Wed, Mar 28, 2012 at 7:53 PM, Dale <rdalek1967@×××××.com> wrote: |
4 |
>>> Alan Mackenzie wrote: |
5 |
>>> |
6 |
>>>> Incidentally, dracut says it won't work on a kernel without modules. I |
7 |
>>>> don't know if it's true or not. |
8 |
>>>> |
9 |
>>> |
10 |
>>> Oh really? I don't use modules and I am the one having issues with not |
11 |
>>> being able to su to root from a user. I wonder if that is related |
12 |
>>> somehow. o_O |
13 |
>> |
14 |
>> I don't use modules either (except scsi_wait_scan.ko; you cannot get |
15 |
>> rid of that one), I use dracut, and I can su just fine. |
16 |
>> |
17 |
>> Dale, can you please post the dracut comand you used to create your |
18 |
>> initramfs? Also, the DRACUT_MODULES you have defined, and the contents |
19 |
>> of /etc/dracut.conf? |
20 |
>> |
21 |
>> Not being able to su sounds incredible weird. |
22 |
>> |
23 |
>> Regards. |
24 |
> |
25 |
> |
26 |
> Here is one: |
27 |
> |
28 |
> root@fireball / # cat /etc/dracut.conf |
29 |
> |
30 |
> |
31 |
> # Sample dracut config file |
32 |
> |
33 |
> |
34 |
> |
35 |
> |
36 |
> |
37 |
> logfile=/var/log/dracut.log |
38 |
> |
39 |
> |
40 |
> fileloglvl=6 |
41 |
> |
42 |
> |
43 |
> |
44 |
> |
45 |
> |
46 |
> # Exact list of dracut modules to use. Modules not listed here are not |
47 |
> going |
48 |
> |
49 |
> # to be included. If you only want to add some optional modules use |
50 |
> |
51 |
> |
52 |
> # add_dracutmodules option instead. |
53 |
> |
54 |
> |
55 |
> #dracutmodules+="" |
56 |
> |
57 |
> |
58 |
> |
59 |
> |
60 |
> |
61 |
> # Dracut modules to omit |
62 |
> |
63 |
> |
64 |
> #omit_dracutmodules+="" |
65 |
> |
66 |
> |
67 |
> |
68 |
> # Dracut modules to add to the default |
69 |
> #add_dracutmodules+="lvm fstab-sys usrmount" |
70 |
> |
71 |
> # additional kernel modules to the default |
72 |
> #add_drivers+="" |
73 |
> |
74 |
> # list of kernel filesystem modules to be included in the generic initramfs |
75 |
> filesystems+="ext2 reiserfs ext3" |
76 |
> |
77 |
> # build initrd only to boot current hardware |
78 |
> #hostonly="yes" |
79 |
> # |
80 |
> |
81 |
> # install local /etc/mdadm.conf |
82 |
> mdadmconf="yes" |
83 |
> |
84 |
> # install local /etc/lvm/lvm.conf |
85 |
> lvmconf="yes" |
86 |
> |
87 |
> # A list of fsck tools to install. If it's not specified, module's hardcoded |
88 |
> # default is used, currently: "umount mount /sbin/fsck* xfs_db xfs_check |
89 |
> # xfs_repair e2fsck jfs_fsck reiserfsck btrfsck". The installation is |
90 |
> # opportunistic, so non-existing tools are just ignored. |
91 |
> #fscks="" |
92 |
> |
93 |
> # inhibit installation of any fsck tools |
94 |
> #nofscks="yes" |
95 |
> root@fireball / # |
96 |
> |
97 |
> +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
98 |
> |
99 |
> The command I use is: |
100 |
> |
101 |
> dracut /boot/initramfs-<kernel version here> |
102 |
> |
103 |
> I name each one according to kernel versions. I try to keep a few back |
104 |
> up kernels in case one gets borked or something. It makes cleaning |
105 |
> easier if I know which files belong to what. Anyway. |
106 |
> |
107 |
> I also looked back at the log for the last build. The only thing I |
108 |
> found that may resemble a error would be it skipping file systems that I |
109 |
> don't have installed or built into the kernel, in other words, things I |
110 |
> don't use to begin with. I didn't see it complain about anything |
111 |
> missing or broken. |
112 |
> |
113 |
> I agree it is weird that su to root doesn't work. I have not been able |
114 |
> to find anything related with SP, read as Google replacement search tool |
115 |
> www.startpage.com since Google got nosey. lol From what I have read, |
116 |
> it shouldn't matter but I can boot with the init thingy and it fails |
117 |
> everytime. When I boot without the init thingy, it works fine. Weird |
118 |
> is a good word to describe it. |
119 |
> |
120 |
> I noticed dracut just got updated. I have dracut-017-r3 installed now. |
121 |
> |
122 |
> I may stick a small drive in my old rig, x86, and try to figure this |
123 |
> mess out on it. Maybe try putting /usr and /var on LVM and really make |
124 |
> a mess of things. lol |
125 |
|
126 |
Can you try doing |
127 |
|
128 |
dracut -H /boot/initramfs-<kernel version here> |
129 |
|
130 |
?? |
131 |
|
132 |
The man page from dracut says that -H is for the "current host" |
133 |
instead of a "generic host". Maybe the "generic host" configuration is |
134 |
messing up something with su that your actual host configuration |
135 |
needs. |
136 |
|
137 |
I use -H. As I have ben saying, my initramfs it's pretty up in sync |
138 |
with my normal system. |
139 |
|
140 |
Regards. |
141 |
-- |
142 |
Canek Peláez Valdés |
143 |
Posgrado en Ciencia e Ingeniería de la Computación |
144 |
Universidad Nacional Autónoma de México |