public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Canek Peláez Valdés" <caneko@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Re: After /usr conflation: why not copy booting software to /sbin rather than initramfs?
Date: Thu, 29 Mar 2012 14:53:40 -0600	[thread overview]
Message-ID: <CADPrc80bYNGwPvHhj6oVHNh-tkknvNrjy0UigxH+uFVURQiJtA@mail.gmail.com> (raw)
In-Reply-To: <4F74C2FE.3030704@gmail.com>

On Thu, Mar 29, 2012 at 2:15 PM, Dale <rdalek1967@gmail.com> wrote:
> Canek Peláez Valdés wrote:
>
>> Can you try doing
>>
>> dracut -H /boot/initramfs-<kernel version here>
>>
>> ??
>>
>> The man page from dracut says that -H is for the "current host"
>> instead of a "generic host". Maybe the "generic host" configuration is
>> messing up something with su that your actual host configuration
>> needs.
>>
>> I use -H. As I have ben saying, my initramfs it's pretty up in sync
>> with my normal system.
>>
>> Regards.
>
>
> Notice, I make the distinction between Console and Konsole by making the
> first letter capitalized.  It kind of gets confusing.  :/
>
> I had to reboot so I made a new init thingy with the -H switch.  It
> works in Console but nothing root works in KDE.  I get the same error.
> Heck, Konsole won't even try to come up much less ask for my password.
> Krusader asks for password and says that su is not in the path.  This is
> similar to what I got when I was in a Console too.
>
> So, boot without init thingy, everything works fine.  Boot with the init
> thingy, I can't access things in KDE as root.  All I do is reboot.  I
> don't change or edit anything other than selecting a different entry in
> grub.
>
> I use Konsole when I emerge and such as that.  I use Krusader, since
> Konqueror developed a bug, to edit config files.  I don't care to switch
> to a Console to emerge something or edit a config file.  This is not
> going to work for me long term.
>
> Also, keep in mind, I boot the EXACT same kernel whether I use the init
> thingy or not.  All I do is remove the stuff the init thingy needs to
> work.
>
> Go figure.

I'm a little confused: you log in KDE as a regular user, open a
Konsole, type "su -", and what happens?

What do you mean with "Konsole won't even try to come up"?

In the shell that Krusader provides (which I assume you run as a
regular user), what it's the result of "which su"? And also, what
happens when (inside the shell from Krusader) you run /bin/su?

If not for the fact that you say that in a virtual console su works, I
would be willing to suggest that your initramfs never does the
switch_root, and so you end up with the minimal / from the initramfs,
and your normal /usr. That would be beyond bizarre, but if you *can*
use su in a virtual console, then it should be there.

I usally log in in GNOME, open a gnome-terminal, and set a fixed
number of tabs in gnome-terminal where I "su -", and work as root in
there. I also can run an X11 program as root with "su -lc
/usr/bin/gedit", but I almost never do that (although it works; I just
checked).

I don't think I understand how do you use su. Could you explain it to
me, please?

One last thing: create a  directory /tmp/whatever, and inside it
unpack your initramfs:

zcat /boot/init-thingie | cpio -i

Could you do a "ls -R /tmp/whatever" so we can see what actually ends
up in yout initramfs?

Regards.
-- 
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México



  reply	other threads:[~2012-03-29 20:55 UTC|newest]

Thread overview: 99+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-27 13:37 [gentoo-user] After /usr conflation: why not copy booting software to /sbin rather than initramfs? Alan Mackenzie
2012-03-27 13:48 ` Michael Mol
2012-03-27 14:02 ` Mike Edenfield
2012-03-27 14:19   ` Michael Mol
2012-03-27 14:26   ` Alan Mackenzie
2012-03-27 14:38     ` Mark Knecht
2012-03-27 14:46     ` Neil Bothwick
2012-03-27 17:55       ` [gentoo-user] " che
2012-03-27 18:41         ` Alan McKinnon
2012-03-28 18:43           ` che
2012-03-27 19:56         ` Mike Edenfield
2012-03-27 21:24           ` Alan Mackenzie
2012-03-27 21:41             ` Neil Bothwick
2012-03-27 22:01               ` Alan Mackenzie
2012-03-27 22:39                 ` Alan McKinnon
2012-03-27 23:32                   ` Alan Mackenzie
2012-03-28  7:47                     ` Neil Bothwick
2012-03-27 22:53                 ` Neil Bothwick
2012-03-27 21:48             ` Alan McKinnon
2012-03-27 22:35               ` Alan Mackenzie
2012-03-27 22:54                 ` Neil Bothwick
2012-03-27 22:55                 ` Alan McKinnon
2012-03-28 14:01                   ` Alan Mackenzie
2012-03-28 14:56                     ` Neil Bothwick
2012-03-28 17:07                       ` Alan Mackenzie
2012-03-28 17:40                         ` Mike Edenfield
2012-03-28 21:47                         ` Neil Bothwick
2012-03-28 22:45                           ` Peter Humphrey
2012-03-28 23:25                             ` Neil Bothwick
2012-03-29  1:53                         ` Dale
2012-03-29  2:07                           ` Canek Peláez Valdés
2012-03-29  2:39                             ` Dale
2012-03-29  5:08                               ` Canek Peláez Valdés
2012-03-29 20:15                                 ` Dale
2012-03-29 20:53                                   ` Canek Peláez Valdés [this message]
2012-04-02  7:41                                     ` Dale
2012-04-02 13:33                                       ` Canek Peláez Valdés
2012-04-02 19:54                                         ` Dale
2012-04-02 20:28                                           ` Canek Peláez Valdés
2012-04-02 21:21                                             ` Dale
2012-04-02 21:37                                               ` Canek Peláez Valdés
2012-04-03  0:19                                                 ` Dale
2012-04-02 22:08                                       ` Neil Bothwick
2012-04-02 22:21                                         ` Dale
2012-04-02 22:41                                           ` Canek Peláez Valdés
2012-04-03  0:19                                             ` Dale
2012-04-03  0:35                                               ` Pandu Poluan
2012-04-03  1:03                                                 ` Canek Peláez Valdés
2012-04-03  1:29                                                   ` Dale
2012-04-03  1:01                                               ` Canek Peláez Valdés
2012-04-03  1:19                                                 ` Dale
2012-04-03  2:08                                                   ` Dale
     [not found]                                                     ` <CADPrc81Q6Tmzpg0p7cbOYr8iXQFO_L4QGKid=LGZPXLB1dt5Xw@mail.gmail .com>
2012-04-03  2:43                                                     ` Canek Peláez Valdés
2012-04-03  3:12                                                       ` Dale
2012-04-03  5:32                                                         ` Dale
2012-04-03 12:46                                                         ` Mike Edenfield
2012-04-03 13:21                                                           ` Dale
2012-04-03 17:48                                                             ` Canek Peláez Valdés
2012-04-04  0:02                                                               ` Dale
2012-04-04  1:59                                                                 ` William Kenworthy
2012-04-04  2:55                                                                   ` Dale
2012-04-04  3:12                                                                     ` Dale
2012-04-04  3:19                                                                       ` Canek Peláez Valdés
2012-04-04  7:48                                                                         ` Dale
2012-04-04  9:05                                                                           ` Dale
2012-04-04  9:22                                                                             ` Neil Bothwick
2012-04-04  9:54                                                                               ` Dale
2012-04-04 11:22                                                                                 ` Neil Bothwick
2012-04-04 23:37                                                                                   ` Dale
2012-04-04 17:23                                                                                 ` Canek Peláez Valdés
2012-04-04 23:35                                                                                   ` Neil Bothwick
2012-04-04 23:39                                                                                   ` Dale
2012-03-29 21:11                                   ` Todd Goodman
2012-03-29 21:32                                     ` Dale
2012-03-30 13:48                                       ` Todd Goodman
2012-03-29 21:52                                   ` Mike Edenfield
2012-03-28  4:24                 ` Mike Edenfield
2012-03-28  4:55                   ` Canek Peláez Valdés
2012-03-28 17:27                     ` Mike Edenfield
2012-03-28  6:17                   ` Pandu Poluan
2012-03-28  6:19                     ` Pandu Poluan
2012-03-28  7:43                     ` Neil Bothwick
2012-03-29  2:16                       ` Dale
2012-03-29  8:52                         ` Neil Bothwick
2012-03-28 17:36                     ` Mike Edenfield
2012-03-29 15:56                   ` Alan Mackenzie
2012-03-29 16:35                     ` Neil Bothwick
2012-03-29 17:13                       ` Michael Mol
2012-03-29 18:11                         ` Neil Bothwick
2012-03-29 18:35                           ` Michael Mol
2012-03-30  0:04                             ` Neil Bothwick
2012-03-30  2:10                               ` Mike Edenfield
2012-03-30  3:17                                 ` Pandu Poluan
2012-03-30  0:10                             ` Neil Bothwick
2012-03-29 17:29                       ` Alan Mackenzie
2012-03-29 18:04                         ` Neil Bothwick
2012-03-29 18:10                     ` Mike Edenfield
2012-03-28 19:14           ` che
2012-03-27 15:30     ` [gentoo-user] " Mike Edenfield

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CADPrc80bYNGwPvHhj6oVHNh-tkknvNrjy0UigxH+uFVURQiJtA@mail.gmail.com \
    --to=caneko@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox