You are not logged in.

#26 2011-01-31 05:20:57

pntruongan
Member
Registered: 2011-01-31
Posts: 38

Re: Boot message: GLIB WARNING ** GLib - getpwuid_r()..[SOLVED]

goran'agar wrote:

I use this simple patch (to apply to /lib/initcpio/install/plymouth); inspired by the ubuntu bug aforementioned


--- plymouth.orig    2010-11-28 15:16:00.108000000 +0100
+++ plymouth    2010-11-28 15:24:14.500999903 +0100
@@ -39,6 +39,13 @@ install() {
         add_file $x
         done
     fi
+
+    # suppress a warning in glib (which the label control uses)
+    # about uid 0 by building a dummy NSS stack (LP #649917)
+    add_file /etc/passwd
+    add_file /etc/nsswitch.conf
+    add_binary /lib/libnss_files-2.12.1.so
+    add_file /lib/libnss_files.so.2
     
     SCRIPT='plymouth'
 }

Well, I tried to patch but failed. Could you please post the whole file /lib/initcpio/install/plymouth ?

Offline

#27 2011-01-31 14:21:21

welpert
Member
From: the Netherlands
Registered: 2011-01-11
Posts: 73

Re: Boot message: GLIB WARNING ** GLib - getpwuid_r()..[SOLVED]

Sorry man! sad I already removed everything in the meantime yesterday evening. Decided to clean up my system a bit after all the things I've played with recently. Maybe the guy above who also used the git version can do this?

Cheers!


“Great art is horseshit, buy tacos.” - Charles Bukowski

freenode/archlinux: nl-trisk

Offline

#28 2011-02-24 21:07:38

adyxax
Member
Registered: 2009-02-16
Posts: 2

Re: Boot message: GLIB WARNING ** GLib - getpwuid_r()..[SOLVED]

The patch works perfectly, one just have to read it and understand what it does. Just ensure the files you try to load in the patch exist, and if not fix the version for libnss (it's libnss_files-2.13.so at the time of my writing).

Offline

#29 2011-02-25 04:00:43

superchango
Member
From: Tenochtitlan
Registered: 2009-01-22
Posts: 131

Re: Boot message: GLIB WARNING ** GLib - getpwuid_r()..[SOLVED]

For anyone that don't know how patch the package, here is the necessary  file patched:

http://pastebin.com/AgmMeupC

It's a non-elegant method but it works xD. Here are all the steps for have Plymouth working:

1.- Install plymouth-git from AUR.
2.- Save the above patched file in you home with the name plymouth.
3.- Copy to /lib/initcpio/install/

#cp plymouth /lib/initcpio/install/

4.- Edit /etc/mkinitcpio.conf and add plymouth in HOOKS line, after base & udev, like this:

HOOKS="base udev plymouth ...

5.- Edit /boot/grub/menu.lst and add quiet splash in your kernel line, something like this:

title Arch Linux
root (hd0,0)
kernel /vmlinuz26 root=/dev/sda3 quiet splash ro
initrd /kernel26.img

6.- Regenerate you image kernel:

#mkinitcpio -p kernel26

7.- Profit!!

Bye!!

P.D. If in the step 6 you have an error about libnss_files-, check what is the version of this file that you have in /lib/ and only change it in Line 48 of my patched file & regenerate again the kernel image.


"Yo creo que los muertos son tiernos. ¿Nos besamos?"

Offline

#30 2011-02-26 14:25:51

welpert
Member
From: the Netherlands
Registered: 2011-01-11
Posts: 73

Re: Boot message: GLIB WARNING ** GLib - getpwuid_r()..[SOLVED]

Eh..

'lib/initcpio/install/plymouth: line 2: syntax error near unexpected token `{
'lib/initcpio/install/plymouth: line 2: `install() {

“Great art is horseshit, buy tacos.” - Charles Bukowski

freenode/archlinux: nl-trisk

Offline

#31 2011-04-30 21:54:49

Jrballesteros05
Member
From: Valledupar - Colombia
Registered: 2009-07-15
Posts: 12
Website

Re: Boot message: GLIB WARNING ** GLib - getpwuid_r()..[SOLVED]

welpert wrote:
goran'agar wrote:

I use this simple patch (to apply to /lib/initcpio/install/plymouth); inspired by the ubuntu bug aforementioned

...


Hey goran'agar,

I've applied the patch to plymouth-git, but it did not work for me. Well, just going to have to hang tight until a solution comes along smile

Thanks for the effort though!

Cheers

I just did what the wiki said:

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

Just only edit the file /lib/initcpio/install/plymouth and add the followings lines:

Add this 4 lines in /lib/initcpio/install/plymouth
add_file /etc/passwd
add_file /etc/nsswitch.conf
add_binary /lib/libnss_files-2.13.so
add_binary /lib/libnss_files.so.2

and run

mkinitcpio -p kernel26

I guess it has the same effect as the patch but you should try it smile.


Archlinux Colombia!!! smile

Offline

Board footer

Powered by FluxBB